[asterisk-dev] AGI and DeadAGI
Matthew Nicholson
mnicholson at digium.com
Tue Jul 24 11:58:47 CDT 2007
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.
--
Matthew Nicholson
Digium
More information about the asterisk-dev
mailing list