[asterisk-users] AGI Problem
Mehmet Avcioglu
mehmet at activecom.net
Sat Sep 24 07:43:05 CDT 2011
Thanks for the response.
Asterisk logs the execution of the AGI and script completed messages within the same second, so less than a second.
--
Mehmet
On Sep 24, 2011, at 3:34 PM, Sam Govind wrote:
> 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.
>
> On Sat, Sep 24, 2011 at 3:21 PM, Mehmet Avcioglu <mehmet at activecom.net> wrote:
>
> 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'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110924/b2d0be5d/attachment.htm>
More information about the asterisk-users
mailing list