How much time your AGI is taking? Check if it is completing its task and not killed by asterisk. I guess we'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"><<a href="mailto:mehmet@activecom.net">mehmet@activecom.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
On Sep 23, 2011, at 8:01 PM, Mehmet Avcioglu wrote:<br>
> I have an AGI script that occasionally disappears without completing its action and asterisk logs the following.<br>
><br>
> <Local/0123456@context-f46e;1>AGI Script script.php completed, returning 4<br>
> Spawn extension (context, 0123456, 2) exited non-zero on 'Local/0123456@context-f46e;1'<br>
<br>
<br>
</div>I also changed the dialplan and added a line to print AGISTATUS, but when this "returning 4" happens, asterisk stops there and doesn't execute any further dialplan actions, so I don't even see AGISTATUS value.<br>
<br>
exten => h,1,AGI(script.php,${ANSWEREDTIME},,,)<br>
exten => h,n,NoOp(${AGISTATUS})<br>
<br>
Executing [h@context:1] AGI("Local/0123456@context-4b79;1", "script.php,13,,,") in new stack<br>
<Local/0123456@context-4b79;1>AGI Script script.php completed, returning 4<br>
Spawn extension (context, h, 1) exited non-zero on 'Local/0123456@context-4b79;1'<br>
<div><div></div><div class="h5"><br>
--<br>
Mehmet<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>
</div></div></blockquote></div><br>