[asterisk-users] AGI Problem

Mehmet Avcioglu mehmet at activecom.net
Sat Sep 24 08:38:49 CDT 2011


Thanks for the help. 48 times out of 18000 should be ignorable in most cases but it required human intervention 48 times.:) Obviously if there is no other way I'll find a way to automate that human intervention somehow.. Thanks again.

--
Mehmet

On Sep 24, 2011, at 4:34 PM, Sam Govind wrote:

> Should we consider it ignorable or you are still interested in resolving ! Best of Luck in any case !
> 
> On Sat, Sep 24, 2011 at 6:16 PM, Mehmet Avcioglu <mehmet at activecom.net> wrote:
> 
> Out of about 18000 instances this problem occurred 48 times yesterday. So it has been pretty much impossible for me to replicate it under test conditions.
> 
> Thanks
> 
> --
> Mehmet
> 
> On Sep 24, 2011, at 4:00 PM, Sam Govind wrote:
> 
>> Thats wicked !! hmmm stop your asterisk (if u can afford) and run it like "asterisk -cvvvvvg" and then make a call.. see whats your AGI doing in there !!
>> 
>> On Sat, Sep 24, 2011 at 5:43 PM, Mehmet Avcioglu <mehmet at activecom.net> wrote:
>> 
>> 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'
>> 
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>               http://www.asterisk.org/hello
>> 
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>> 
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>               http://www.asterisk.org/hello
>> 
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110924/7541782b/attachment.htm>


More information about the asterisk-users mailing list