Re: [asterisk-users] Perl AGI defunct process

2008-08-20 Thread Ruddy Gbaguidi
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
>
>
>
> _
>
> [EMAIL PROTECTED] 
> 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
>   


___
-- 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


Re: [asterisk-users] Perl AGI defunct process

2008-08-19 Thread Darren Sessions

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



_

[EMAIL PROTECTED]
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

Re: [asterisk-users] Perl AGI defunct process

2008-08-19 Thread Igor A. Goncharovsky
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


Re: [asterisk-users] Perl AGI defunct process

2008-08-19 Thread Ruddy Gbaguidi
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.

Eric "ManxPower" Wieling wrote:
> Your script is not catching SIGHUP, which is what Asterisk uses to tell 
> the AGI the channel went away.
>
> Ruddy Gbaguidi wrote:
>   
>> Hi all.
>> I'm using asterisk 1.4.21.2 and when I run
>> ps -ef |grep defunct,
>> I can see a lot of my perl agi still pending there.
>> The channel has been cleaned up in asterisk.
>> I don't have this kind of problem with python or php.
>>
>> I'm using ubuntu ...
>> Anyone has an idea ?
>> I've tried export LD_ASSUME_KERNEL=2.4.1  but after that I fail to even 
>> start asterisk.
>> 
>
>
>   
> 
>
>
> 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
>   


___
-- 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


Re: [asterisk-users] Perl AGI defunct process

2008-08-19 Thread Eric "ManxPower" Wieling
Your script is not catching SIGHUP, which is what Asterisk uses to tell 
the AGI the channel went away.

Ruddy Gbaguidi wrote:
> Hi all.
> I'm using asterisk 1.4.21.2 and when I run
> ps -ef |grep defunct,
> I can see a lot of my perl agi still pending there.
> The channel has been cleaned up in asterisk.
> I don't have this kind of problem with python or php.
> 
> I'm using ubuntu ...
> Anyone has an idea ?
> I've tried export LD_ASSUME_KERNEL=2.4.1  but after that I fail to even 
> start asterisk.


-- 
Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS, 
T-1, PRI, Frame Relay, Linux, and network design.  Based near 
Birmingham, AL.  Now accepting clients worldwide.

___
-- 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


[asterisk-users] Perl AGI defunct process

2008-08-19 Thread Ruddy Gbaguidi
Hi all.
I'm using asterisk 1.4.21.2 and when I run
ps -ef |grep defunct,
I can see a lot of my perl agi still pending there.
The channel has been cleaned up in asterisk.
I don't have this kind of problem with python or php.

I'm using ubuntu ...
Anyone has an idea ?
I've tried export LD_ASSUME_KERNEL=2.4.1  but after that I fail to even 
start asterisk.

Thanks

___
-- 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