<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff size=2>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
</FONT></SPAN></DIV>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff size=2>1)
shut Asterisk down</FONT></SPAN></DIV>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff size=2>2)
restart the Asterisk console</FONT></SPAN></DIV>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff size=2>3)
reproduce the problem</FONT></SPAN></DIV>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff size=2>4)
shut asterisk down again and </FONT></SPAN></DIV>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff size=2>5)
Restart Asterisk. </FONT></SPAN></DIV>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff
size=2>"enterprise grade".....Digium calls it.</FONT></SPAN></DIV>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff
size=2>Doug.</FONT></SPAN></DIV>
<DIV><SPAN class=541375717-08062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Josh McAllister
[mailto:josh@singletouch.net]<BR><B>Sent:</B> Thursday, June 08, 2006 10:46
AM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial
Discussion<BR><B>Subject:</B> RE: [Asterisk-Users] how to identify agi crash
cause<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Josh
McAllister<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Danish 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>
asterisk-users@lists.digium.com<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Asterisk-Users] how to identify
agi crash cause</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal 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<o:p></o:p></SPAN></FONT></P></DIV></DIV></BLOCKQUOTE></BODY></HTML>