Hi,

On Mon, 22 Nov 2004 19:14:20 +0100, duncan wrote:
...
> i had similar strange problems when using "" inside agi functions
> 
> always use ''

Irrelevant as "" vs. '' inside AGI functions has nothing to do with Asterisk or
Asterisk::AGI as it is just Perl interpreted related.


> and never use $agi->verbose (as this always gave me strange 
> behaviour as well).

Cannot it be related to the SIGPIPE problem I reported before without any
response?


BTW is Asterisk::AGI still maintained?


Regards,
Lace
--- Begin Message ---
Hi,

there is no warning about SIGHUP - when the line hangups itself Asterisk::AGI
starts to return -1, that is fine.

Unfortunately the AGI script will also get SIGHUP which will terminate it by
default, it took me a while to figure out this silent script dying.

Workaround:
        use Carp qw(confess cluck);

        # We will really get SIGHUP on the line hangup.
        for (qw(HUP PIPE)) {
                $SIG{$_}=eval "sub { cluck 'Got signal SIG$_'; };";
                }


It would be nice to include it to some README or so.


Regards,
Lace

-- 
Jan Kratochvil; Captive: free r/w NTFS Filesystem; http://www.jankratochvil.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--- End Message ---

Reply via email to