<br>Hi,<br>
<br>
Thanks for your reply. Dont the messages logged in /var/log/asterisk/messages contain error messages also dumped in tty9.<br>
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. <br>
Shutting down asterisk might not be an option, especially since I dont
know how to reproduce the problem, it just happens sporadically.<br>
<br>
<br>
Regards,<br>
Danish<br><div><span class="gmail_quote">On 6/8/06, <b class="gmail_sendername">Josh McAllister</b> <<a href="mailto:josh@singletouch.net">josh@singletouch.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">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.</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Josh McAllister</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">
<div>
<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" size="2" width="100%">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asterisk-users-bounces@lists.digium.com</a>] <b><span style="font-weight: bold;">On Behalf Of
</span></b><span id="st" name="st" class="st">Danish</span> Samad<br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, June 08, 2006 8:25
AM<br>
<b><span style="font-weight: bold;">To:</span></b>
<a href="mailto:asterisk-users@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asterisk-users@lists.digium.com</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [Asterisk-Users] how to
identify agi crash cause</span></font></p>
</div></div><div><span class="e" id="q_10bb49fa99aabdd5_1">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi,<br>
<br>
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.<br>
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.<br>
<br>
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.<br>
<br>
Any help will be appreciated.<br>
<br>
Regards,<br>
Danish</span></font></p>
</span></div><div></div>
</div>
</div>
</div><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --
<br><br>Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br></blockquote></div><br>