[Asterisk-Users] AGI Scripts Terminate too Soon

Douglas Garstang dgarstang at oneeighty.com
Mon Feb 27 14:03:04 MST 2006


Ok, here's a weird one.

I have an AGI script where one user calls another. The call is answered. Everything is peachy. If the call is terminated by the CALLEE hanging up the call, then Asterisk returns control back to where the Dial() command left off, and I can check the return code of Dial(), ${DIALSTATUS} etc. That's all great.

HOWEVER, if the CALLER hangs up the call, it seems as if Asterisk immediately kills the AGI script. My script seems to terminate immediately and therefore execution does not continue after the Dial() command. Because of this, I cannot do any post call processing, or even check the return code from Dial() or ${DIALSTATUS}. I don't know yet, but this may prevent me from being able to put calls through to voicemail as well.

Anyone seen this? It's a consistent problem.



More information about the asterisk-users mailing list