[asterisk-dev] AGI and DeadAGI

Peter Beckman beckman at angryox.com
Tue Jul 24 12:17:35 CDT 2007


On Tue, 24 Jul 2007, Matthew Nicholson wrote:

> Matt Riddell wrote:
>>
>> Are we fine using AGI in this situation?  If so, I'll update the wiki to
>> be a bit more verbose.
>>
>
> A running AGI script should not be terminated when the line is hung up.
>  Asterisk should send the script SIGHUP when it closes the pipe to the
> script.  After the SIGHUP is sent, attempts to communicate with asterisk
> will result in SIGPIPE.
>
> Properly handling SIGHUP and SIGPIPE should prevent your scripts from
> automatically getting terminated.

  If I'm using AGI() and there is a hangup or a disconnect or congestion, do
  I get a final status of the call?  Or must I then use a dialplan that
  executes deadAGI() in order to get the channel variables such as
  DIALSTATUS in order to do custom CDRs and such?

Beckman
---------------------------------------------------------------------------
Peter Beckman                                                  Internet Guy
beckman at angryox.com                                 http://www.angryox.com/
---------------------------------------------------------------------------
** PLEASE NOTE PurpleCow.com IS NOW AngryOx.com DO NOT USE PurpleCow.com **
** PurpleCow.com is now owned by City Auto Credit LLC as of May 23, 2007 **
---------------------------------------------------------------------------



More information about the asterisk-dev mailing list