Thats wicked !! hmmm stop your asterisk (if u can afford) and run it like &quot;asterisk -cvvvvvg&quot; and then make a call.. see whats your AGI doing in there !!<br><br><div class="gmail_quote">On Sat, Sep 24, 2011 at 5:43 PM, Mehmet Avcioglu <span dir="ltr">&lt;<a href="mailto:mehmet@activecom.net">mehmet@activecom.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div><br></div><div>Thanks for the response.</div><div><br></div><div>Asterisk logs the execution of the AGI and script completed messages within the same second, so less than a second. </div>
<div><br></div><font color="#888888"><div>--</div><div>Mehmet</div></font><div class="im"><br><div><div>On Sep 24, 2011, at 3:34 PM, Sam Govind wrote:</div><br><blockquote type="cite">How much time your AGI is taking? Check if it is completing its task and not killed by asterisk. I guess we&#39;ve 6~7 seconds before asterisk kills all call channel and related tasks.<br>
<br><div class="gmail_quote">On Sat, Sep 24, 2011 at 3:21 PM, Mehmet Avcioglu <span dir="ltr">&lt;<a href="mailto:mehmet@activecom.net" target="_blank">mehmet@activecom.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex"><div><br>
On Sep 23, 2011, at 8:01 PM, Mehmet Avcioglu wrote:<br>
&gt; I have an AGI script that occasionally disappears without completing its action and asterisk logs the following.<br>
&gt;<br>
&gt;  &lt;Local/0123456@context-f46e;1&gt;AGI Script script.php completed, returning 4<br>
&gt;  Spawn extension (context, 0123456, 2) exited non-zero on &#39;Local/0123456@context-f46e;1&#39;<br>

<br>
</div>I also changed the dialplan and added a line to print AGISTATUS, but when this &quot;returning 4&quot; happens, asterisk stops there and doesn&#39;t execute any further dialplan actions, so I don&#39;t even see AGISTATUS value.<br>


<br>
exten =&gt; h,1,AGI(script.php,${ANSWEREDTIME},,,)<br>
exten =&gt; h,n,NoOp(${AGISTATUS})<br>
<br>
Executing [h@context:1] AGI(&quot;Local/0123456@context-4b79;1&quot;, &quot;script.php,13,,,&quot;) in new stack<br>
&lt;Local/0123456@context-4b79;1&gt;AGI Script script.php completed, returning 4<br>
Spawn extension (context, h, 1) exited non-zero on &#39;Local/0123456@context-4b79;1&#39;</blockquote></div></blockquote></div></div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>