[asterisk-users] AGI timeout option

modou lo mlo6552 at gmail.com
Tue Sep 18 13:31:12 CDT 2018


Sorry you know i'm student and i'm the end of my studies i must present a
memory on taxing voip services

Le mar. 18 sept. 2018 à 19:11, Matthew Fredrickson <matt at fredricknet.net> a
écrit :

> Hey,
>
> I would suggest starting a new thread with this question instead of
> inserting this into another existing thread like this.
>
> Matthew Fredrickson
>
> On Tue, Sep 18, 2018, 11:16 AM modou lo <mlo6552 at gmail.com> wrote:
>
>> Please can i ask you i want to know which code can help me to provide the
>> taxation of voip/toip services in asterisk
>>
>> Le mar. 18 sept. 2018 à 01:36, Patrick Wakano <pwakano at gmail.com> a
>> écrit :
>>
>>> Thanks everyone for the answers!
>>> I did explored some options at the PHP level and probably will do
>>> something in this direction, but in fact what I was really looking was
>>> something in the Asterisk side, not in the script side.
>>> Because in my opinion regardless of the language or AGI type, Asterisk
>>> itself should be able to timeout a long running script and return to the
>>> dialplan. However looks like there is nothing of this sort.....
>>>
>>> Kind regards,
>>> Patrick Wakano
>>>
>>> On Sat, 15 Sep 2018 at 03:56, Eric Wieling <ewieling at nyigc.com> wrote:
>>>
>>>> I don't know AGIspeedy, but I have some PHP scripts where I set a
>>>> connect timeout using streams.
>>>>
>>>> Example using https, but should be easily adaptable to non-s http.:
>>>>
>>>> $pbxsh_bin = @file_get_contents("https://blah.blah.blah", FALSE,
>>>> @stream_context_create(array('https' => array('timeout' => 5,
>>>> "verify_peer"=>false, "verify_peer_name"=>false))));
>>>>
>>>> On 09/14/2018 01:40 PM, Carlos Chavez wrote:
>>>> > On 9/13/2018 8:04 PM, Patrick Wakano wrote:
>>>> >
>>>> >> Hello list,
>>>> >> Hope you all doing  well!
>>>> >>
>>>> >> Recently, I had an issue with a FastAGI PHP script, which under some
>>>> >> specific situation would run into an infinity loop, consuming all
>>>> CPU
>>>> >> resources. This also was preventing Asterisk to terminated the call
>>>> >> properly because it was waiting for the AGI to return... The
>>>> >> application uses AGIspeedy to process the AGI calls, not sure if
>>>> this
>>>> >> can be affecting this situation somehow....
>>>> >> Due to this problem I started looking for some option to timeout the
>>>> >> AGI call and return to the dialplan after XYZ seconds and so this
>>>> >> would protect Asterisk preventing the dialplan to get stuck due to
>>>> >> some external script problem that is actually outside of Asterisk
>>>> >> control. Does Asterisk provide some control of this sort? I searched
>>>> >> around and could not find any.....
>>>> >> Any idea is appreciated!
>>>> >>
>>>> >> Kind regards
>>>> >> Patrick Wakano
>>>> >>
>>>> >
>>>> > I think this is what you may be looking for:
>>>> >
>>>> > http://php.net/manual/en/function.set-time-limit.php
>>>> >
>>>>
>>>> --
>>>> http://help.nyigc.net/
>>>>
>>>> --
>>>> _____________________________________________________________________
>>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>>>
>>>> Astricon is coming up October 9-11!  Signup is available at:
>>>> https://www.asterisk.org/community/astricon-user-conference
>>>>
>>>> Check out the new Asterisk community forum at:
>>>> https://community.asterisk.org/
>>>>
>>>> New to Asterisk? Start here:
>>>>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>>>
>>>> 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 --
>>>
>>> Astricon is coming up October 9-11!  Signup is available at:
>>> https://www.asterisk.org/community/astricon-user-conference
>>>
>>> Check out the new Asterisk community forum at:
>>> https://community.asterisk.org/
>>>
>>> New to Asterisk? Start here:
>>>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>>
>>> 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 --
>>
>> Astricon is coming up October 9-11!  Signup is available at:
>> https://www.asterisk.org/community/astricon-user-conference
>>
>> Check out the new Asterisk community forum at:
>> https://community.asterisk.org/
>>
>> New to Asterisk? Start here:
>>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>
>> 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 --
>
> Astricon is coming up October 9-11!  Signup is available at:
> https://www.asterisk.org/community/astricon-user-conference
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> 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/20180918/7230cd72/attachment.html>


More information about the asterisk-users mailing list