<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C4FED6.B7252DA0">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="time"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:PunctuationKerning/>
  <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
  <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
  <w:Compatibility>
   <w:SpaceForUL/>
   <w:BalanceSingleByteDoubleByteWidth/>
   <w:DoNotLeaveBackslashAlone/>
   <w:ULTrailSpace/>
   <w:DoNotExpandShiftReturn/>
   <w:AdjustLineHeightInTable/>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:ApplyBreakingRules/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:&#26032;&#32048;&#26126;&#39636;;
        panose-1:2 2 3 0 0 0 0 0 0 0;
        mso-font-alt:PMingLiU;
        mso-font-charset:136;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:3 137232384 22 0 1048577 0;}
@font-face
        {font-family:"\@&#26032;&#32048;&#26126;&#39636;";
        panose-1:2 2 3 0 0 0 0 0 0 0;
        mso-font-charset:136;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:3 137232384 22 0 1048577 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:none;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:&#26032;&#32048;&#26126;&#39636;;
        mso-font-kerning:1.0pt;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        mso-style-noshow:yes;
        mso-ansi-font-size:9.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-fareast-font-family:&#26032;&#32048;&#26126;&#39636;;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
 /* Page Definitions */
 @page
        {mso-page-border-surround-header:no;
        mso-page-border-surround-footer:no;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:42.55pt;
        mso-footer-margin:49.6pt;
        mso-paper-source:0;
        layout-grid:18.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=ZH-TW link=blue vlink=purple style='tab-interval:24.0pt;text-justify-trim:
punctuation'>

<div class=Section1 style='layout-grid:18.0pt'>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>Hi
all, I have a very simple AGI program in Java, but it &#8220;sometimes&#8221; <span
class=SpellE>hangup</span> before the whole process is completed.<span
style='mso-spacerun:yes'>&nbsp; </span>Looking at the /<span class=SpellE>var</span>/log/asterisk/full,
I found the following:<o:p></o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>AGI
<span class=SpellE>Tx</span> &gt;&gt; <span class=SpellE>agi_enhanced</span>:
0.0<o:p></o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>AGI
<span class=SpellE>Tx</span> &gt;&gt; <span class=SpellE>agi_accountcode</span>:<o:p></o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>AGI
<span class=SpellE><span class=GramE>Tx</span></span> &gt;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>AGI
Rx &lt;&lt; STREAM FILE beep &quot;&quot;<o:p></o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>Jan
20 </span></font><st1:time Hour="7" Minute="32"><font size=1 face=Arial><span
 lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>07:32:30</span></font></st1:time><font
size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:
10.0pt;font-family:Arial'> <span class=GramE>WARNING[</span>-169026640]: Wait
failed (No such file or directory)<o:p></o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>Jan
20 </span></font><st1:time Hour="7" Minute="32"><font size=1 face=Arial><span
 lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>07:32:30</span></font></st1:time><font
size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:
10.0pt;font-family:Arial'> <span class=GramE>VERBOSE[</span>-169026640]: AGI <span
class=SpellE>Tx</span> &gt;&gt; 200 result=-1 <span class=SpellE>endpos</span>=2880<o:p></o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>Jan
20 </span></font><st1:time Hour="7" Minute="32"><font size=1 face=Arial><span
 lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>07:32:30</span></font></st1:time><font
size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:
10.0pt;font-family:Arial'> <span class=GramE>VERBOSE[</span>-169026640]: AGI <span
class=SpellE>Tx</span> &gt;&gt; 200 result=-1 <span class=SpellE>endpos</span>=2880<o:p></o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'><span
style='mso-spacerun:yes'>&nbsp; </span>== Spawn extension (<span class=SpellE>voip</span>-test,
1444, 1) exited non-zero on 'IAX2/andy@192.168.0.1:4569/2'<o:p></o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>What
could be causing this?<span style='mso-spacerun:yes'>&nbsp; </span>The <span
class=SpellE><span class=GramE>hangup</span></span><span class=GramE> only
happen</span> sometimes, and I still cannot catch the <span class=SpellE>patten</span>.<o:p></o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'>Pleas
help, thanks!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;mso-bidi-font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>