Hi

On Mon, Nov 22, 2004 at 07:57:41PM +0100, Jan Kratochvil wrote:
> Hi,
> 
> The last patch was broken (untested...), fixed, sorry.
> 
> 
> Lace

> --- Asterisk/AGI.pm-orig      2003-08-07 20:04:01.000000000 +0200
> +++ Asterisk/AGI.pm   2004-11-22 19:49:41.402891515 +0100
> @@ -190,6 +190,40 @@
>       return $ret;
>  }
>  
> +=item $AGI->hangup_aware()
> +
> +Prevent automatic termination of the AGI script on the line hangup.

I'm probably a ibt ignorant here, but if this is the case you should
call DeadAGI and not AGI from Asterisk, right? 

> +You should call this function if you need to take care of special cleanup
> +functions _after_ the line has been hungup.
> +
> +You must carefully check all the returns codes to terminate properly on
> +returned -1 (line hangup) values, otherwise a lot of stale processes remain 
> on
> +your system running.
> +
> +WARNING: Modifies Perl $SIG{"HUP"} and $SIG{"PIPE"} handlers!

When exactly is SIGPIPE sent? When is SIGHUP sent in such a scenario?

-- 
Tzafrir Cohen         sip:[EMAIL PROTECTED]
icq#16849755          iax:[EMAIL PROTECTED]
+972-50-7952406          jabber:[EMAIL PROTECTED]
[EMAIL PROTECTED]     http://www.xorcom.com

Reply via email to