[asterisk-users] Perl AGI defunct process

Ruddy Gbaguidi plugworld at micnes.com
Thu Aug 21 00:40:20 CDT 2008


Worked like a charm
Thanks you all
Darren Sessions wrote:
> Ruddy,
>
> I've used deadagi for years with perfect success.
>
> If it's a perl agi module, you need to make absolutely sure that 
> you're using 'use strict' and 'use warnings' in the main agi file -as 
> well- as any includes. You'll need to test your agi while in console 
> mode, so any of the perl warning messages that get sent to the console 
> are visible. You'll want to get rid of any errors and warnings.
>
> In addition, I've setup my agi scripts to execute cleanup functions 
> when they detect any kind of sig message just for good measure.
>
> $SIG{INT}   = 'cleanup';
> $SIG{TERM}  = 'cleanup';
> $SIG{QUIT}  = 'cleanup';
> $SIG{HUP}   = "IGNORE";
>
> With this approach, as I said before, I've ran perl agi apps in very 
> high call volumes at various companies for years without any issues.
>
> Hope this helps.
>
>  - Darren
>
>
>
> _____________________________
>
> dmsessions at gmail.com <mailto:dmsessions at gmail.com>
> http://www.darrensessions.com
> _____________________________
>
>
>
>
> On Aug 19, 2008, at 10:20 PM, Igor A. Goncharovsky wrote:
>
>> Hi!
>>
>> Ruddy Gbaguidi wrote:
>>> I'm using DeadAgi and has set AGISIGHUP to no because I don't want my
>>> script to stop if the user hangs up.
>>> But when it reach the end of the script, the child process should die.
>>> And I don't see why I only have this trouble with perl agis.
>>>
>> Can you check if your script realy don't get SIGHUP?
>> Some time ago I have problem with that setting AGISIGHUP to 'no' have no
>> effect.
>>
>> -- 
>> Best regards,
>> Igor A. Goncharovsky
>>
>>
>> _______________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
>> Register Now: http://www.astricon.net
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> ------------------------------------------------------------------------
>
>
> Internal Virus Database is out of date.
> Checked by AVG. 
> Version: 8.0.100 / Virus Database: 269.23.16/1448 - Release Date: 5/16/2008 7:42 PM
>   




More information about the asterisk-users mailing list