Caller hangup during Dial Macro (Asterisk 1.6.1)

rolandsmith
Joined: Mon 07 of Dec, 2009

Caller hangup during Dial Macro (Asterisk 1.6.1)

Posted:Mon 07 of Dec, 2009 (13:18 UTC)
If the caller hangs up whilst a Dial macro is executing, I do not see the hangup until the Macro finishes.
How can I terminate the Macro when caller clears? Or should I use a different technique?
E.g. Caller (A) rings IVR which answers and performs dial to (B).
B answers and is played announcements etc from the Dial Macro. B also asked to press * to accept call.
If A clears after B answers but before B presses *, the call is only cleared once the Macro ends.
This is particularly painful where B is an external ACD queue.
I.e. ACD system answers. After some time queuing, an agent is passwed the call, presses * to accept call, only to be presented with a 'dead line' because A has hung up.