[asterisk-users] Reliably detecting hangup

Chris Nestrud ccn at panix.com
Mon Feb 5 09:12:37 MST 2007


Hello list,

I have an application which is one large AGI. My extensions.conf
answers, calls the AGI, and hangs up the call. A second AGI is set to be
called if hangup is detected.

exten => s,1,answer
exten => s,n,agi(appmain)
exten => s,n,hangup
exten => h,1,agi(after_hangup)

The appmain AGI uses Exec to run other programs, including meetme. If a
caller hangs up while the meetme program is running, it appears that
control is not returned to the appmain AGI and the after_hangup AGI is not
called.

What is the best way to reliably detect when a caller has hung up and
perform an action at that time?

Chris
-- 
Chris Nestrud
Email: ccn at panix.com



More information about the asterisk-users mailing list