[Asterisk-Users] agi scripting in perl - dealiing withunexpected disconnects gracefully / spurious DTMF

James Golovich james at wwnet.net
Thu Feb 19 11:13:22 MST 2004


Also since you are using Asterisk::AGI you can register a callback that
gets called when most of the AGI commands return error/hangup.

James

On Thu, 19 Feb 2004, Tim Petlock wrote:

> Thanks - that gave me the basis for a couple of google searches.
> Near the top of the script I put in
> $SIG{HUP} = \&exitGracefully;
> 
> and I added a subroutine that looks like this:
> 
> sub exitGracefully {
> 	exit(0);
> }
> 
> It now kills itself off without needing to be killed and take * with it.
> 
> THANKS!!!
> 
> -Tim
> 




More information about the asterisk-users mailing list