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/fef4cb0c/attachment.htm
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@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Danish Samad Sent: Thursday, June 08, 2006 8:25 AM To: asterisk-users@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/1681e43f/attachment.htm
Unfortunately, STDERR from AGI scripts does not make it to *'s log files. You can work around this by starting Asterisk under screen. Take a look at the AGI wiki under "CLI output" for more info. http://www.voip-info.org/wiki-Asterisk+AGI Be warned though, that when you re-attach to Asterisk's screen make sure you detatch the screen, and do not Ctrl-C or exit the asterisk console as that will shutdown asterisk. Josh McAllister ________________________________ From: Danish Samad [mailto:danishsamad@gmail.com] Sent: Thursday, June 08, 2006 11:37 AM Hi, Thanks for your reply. Dont the messages logged in /var/log/asterisk/messages contain error messages also dumped in tty9. If not how can I view the messages on the tty9 console, The problem is the server is hosted remotely and all I have is ssh access. Shutting down asterisk might not be an option, especially since I dont know how to reproduce the problem, it just happens sporadically. Regards, Danish On 6/8/06, Josh McAllister <josh@singletouch.net> wrote: 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@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Danish Samad Sent: Thursday, June 08, 2006 8:25 AM To: asterisk-users@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 _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060608/56d85740/attachment.htm
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@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@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Danish Samad Sent: Thursday, June 08, 2006 8:25 AM To: asterisk-users@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
Lan
2006-Jun-08 12:34 UTC
[Asterisk-Users] Question about SIP or IAX2 or both for Asterisk.
Dear Friends and Supporters! I have successfully installed the asterisk at home, and it is working perfectly with sip and iax2 users. However, I am wondering that should we use only sip or only iax2? If we use both of them, does it take a lots of cpu resources to translate between sip with iax2 users? Your opinions will be very appreciated! Regards, Lan. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060608/dcb7129d/attachment.htm
On Thu, Jun 08, 2006 at 11:59:53AM -0600, Douglas Garstang wrote:> 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.asterisk -r ? Tweak logger.conf? Make sure it is daemonized? -- Tzafrir Cohen sip:tzafrir@local.xorcom.com icq#16849755 iax:tzafrir@local.xorcom.com +972-50-7952406 tzafrir.cohen@xorcom.com http://www.xorcom.com
Sharon Lim
2006-Jun-08 18:21 UTC
[Asterisk-Users] Question about SIP or IAX2 or both for Asterisk.
Hi there, SIP more commanly used and it is a openstandard. Meanwhile IAX2 is a protocol on asterisk. I dont think it will effect the cpu resources cause they are bid with the same codecs like G711 and etc..so if you used SIP or IAX2 it also refer to the same codecs...so dont think it will take a lots of cpu resources. Correct me if i am wrong. Thanks. Have a nice day! On 6/9/06, Lan <mapsair@hotmail.com> wrote:> > Dear Friends and Supporters! > > I have successfully installed the asterisk at home, and it is working > perfectly with sip and iax2 users. However, I am wondering that should we > use only sip or only iax2? If we use both of them, does it take a lots of > cpu resources to translate between sip with iax2 users? > > Your opinions will be very appreciated! > > Regards, > > Lan. > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060608/a28a8d29/attachment.htm