[asterisk-users] AGI Problem

Mehmet Avcioglu mehmet at activecom.net
Sat Sep 24 05:21:47 CDT 2011


On Sep 23, 2011, at 8:01 PM, Mehmet Avcioglu wrote:
> I have an AGI script that occasionally disappears without completing its action and asterisk logs the following.
> 
>  <Local/0123456 at context-f46e;1>AGI Script script.php completed, returning 4
>  Spawn extension (context, 0123456, 2) exited non-zero on 'Local/0123456 at context-f46e;1'


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.

exten => h,1,AGI(script.php,${ANSWEREDTIME},,,)
exten => h,n,NoOp(${AGISTATUS})

Executing [h at context:1] AGI("Local/0123456 at context-4b79;1", "script.php,13,,,") in new stack
<Local/0123456 at context-4b79;1>AGI Script script.php completed, returning 4
Spawn extension (context, h, 1) exited non-zero on 'Local/0123456 at context-4b79;1'

--
Mehmet


More information about the asterisk-users mailing list