[asterisk-users] AGI <==> DeadAGI

Steve Edwards asterisk.org at sedwards.com
Sun May 2 15:52:37 CDT 2010


On Sat, 1 May 2010, SIP wrote:

[snip]

> We run DeadAGI for a considerable number of calls since it has the 
> ability to run post-hangup cleanup no matter which side hangs up (unlike 
> AGI).

[snip]

When a channel hangs up, Asterisk sends a SIGHUP signal to the AGI. If the 
AGI did not establish a handler for the SIGHUP, the AGI exits. If the AGI 
established a handler, the AGI can choose to ignore the signal or execute 
appropriate code -- like clean up files, write a CDR to the database, etc.

If the AGI is started when the channel is "live," you should use agi() and 
catch signals appropriately. If the AGI is started when the channel is 
"dead," you should use deadagi().

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list