[Asterisk-Users] how to identify agi crash cause

Douglas Garstang dgarstang at oneeighty.com
Thu Jun 8 10:59:53 MST 2006


I have only seen Asterisk send stdout to the console, which is _extremely_ annoying. If your running a system in production mode, and your having a problem, you have to 
 
1) shut Asterisk down
2) restart the Asterisk console
3) reproduce the problem
4) shut asterisk down again and 
5) Restart Asterisk. 
 
"enterprise grade".....Digium calls it.
 
Doug.
 

-----Original Message-----
From: Josh McAllister [mailto:josh at singletouch.net]
Sent: Thursday, June 08, 2006 10:46 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] how to identify agi crash cause



STDERR from your agi will be shown on asterisk's tty. If you're using safe-asterisk to start, I believe this is redirected to tty9... Or, if you can afford to take asterisk down momentarily, you could just start asterisk without backgrounding it and you'll see what your script has to say there.

 

Josh McAllister

 


  _____  


From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Danish Samad
Sent: Thursday, June 08, 2006 8:25 AM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] how to identify agi crash cause

 

Hi,

 I have a custom agi which at times does not exit gracefull and crashes in between. The logging options are set to the maximum but I dont see something conclusive in the asterisk log.
I have noticed it crash after issuing the "SAY NUMBER" and "GET DATA" agi commands and the agi is spawned with no apparent reason after that. I tried running the application locally and debugged but could not reproduce the problem.

 I also tried enabling core file generation by specifying the following command in /etc/profile "ulimit -c unlimited > /dev/null 2>&1" but to no avail, I did not get any core file in /tmp or other locations. Can any one suggest a way to get a core dump of crashing agi's or some other way I can isolate the problem.

Any help will be appreciated.

Regards,
Danish

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060608/5d171da8/attachment.htm


More information about the asterisk-users mailing list