[asterisk-users] Hangup check during long running macro called by M option on Dial

Valter Nogueira vgnogueira at gmail.com
Sat Jul 26 08:49:10 CDT 2014


I have built a dialplan which dial to someone with option M.

Dial (SIP/1000,,M(MYMACRO))

Both parties are SIP phones.

MYMACRO expects person on SIP/1000 dial 5 (using read) then exits - and
doing so it bridges my phone (SIP/2000) with SIP/1000.

If SIP/1000 hangs up before dial 5 - ok the call ends.

if SIP/2000 hangs up before SIP/1000 dial 5 - the macro is unaware and
keeps waiting SIP/1000 dial out 5. When it occurs the call ends. In the
meanwhile I got the following warning:

WARNING[4486]: chan_sip.c:4210 __sip_autodestruct: Autodestruct on dialog '
1826448978 at 192.168.2.121' with owner SIP/2000-00000014 in place (Method:
BYE). Rescheduling destruction for 10000 ms


I am using Asterisk 1.8

Thanks

Valter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140726/e1dadf26/attachment.html>


More information about the asterisk-users mailing list