You are using PSTN trunks or digital trunks ?

If you are using PSTN, check 14-02-12, Detect Network Disconnect Signal and 14-02-18, Busy Tone Detection on Talking

Test it.