<div dir="ltr">Sorry you know i'm student and i'm the end of my studies i must present a memory on taxing voip services</div><br><div class="gmail_quote"><div dir="ltr">Le mar. 18 sept. 2018 à 19:11, Matthew Fredrickson <<a href="mailto:matt@fredricknet.net">matt@fredricknet.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hey,<div dir="auto"><br></div><div dir="auto">I would suggest starting a new thread with this question instead of inserting this into another existing thread like this.</div><div dir="auto"><br></div><div dir="auto">Matthew Fredrickson</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 18, 2018, 11:16 AM modou lo <<a href="mailto:mlo6552@gmail.com" target="_blank">mlo6552@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Please can i ask you i want to know which code can help me to provide the taxation of voip/toip services in asterisk</div><br><div class="gmail_quote"><div dir="ltr">Le mar. 18 sept. 2018 à 01:36, Patrick Wakano <<a href="mailto:pwakano@gmail.com" rel="noreferrer" target="_blank">pwakano@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks everyone for the answers!</div><div>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.</div><div>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.....<br></div><div><br></div><div>Kind regards,</div><div>Patrick Wakano<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, 15 Sep 2018 at 03:56, Eric Wieling <<a href="mailto:ewieling@nyigc.com" rel="noreferrer" target="_blank">ewieling@nyigc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don't know AGIspeedy, but I have some PHP scripts where I set a <br>
connect timeout using streams.<br>
<br>
Example using https, but should be easily adaptable to non-s http.:<br>
<br>
$pbxsh_bin = @file_get_contents("<a href="https://blah.blah.blah" rel="noreferrer noreferrer" target="_blank">https://blah.blah.blah</a>", FALSE, <br>
@stream_context_create(array('https' => array('timeout' => 5, <br>
"verify_peer"=>false, "verify_peer_name"=>false))));<br>
<br>
On 09/14/2018 01:40 PM, Carlos Chavez wrote:<br>
> On 9/13/2018 8:04 PM, Patrick Wakano wrote:<br>
> <br>
>> Hello list,<br>
>> Hope you all doing well!<br>
>><br>
>> Recently, I had an issue with a FastAGI PHP script, which under some <br>
>> specific situation would run into an infinity loop, consuming all CPU <br>
>> resources. This also was preventing Asterisk to terminated the call <br>
>> properly because it was waiting for the AGI to return... The <br>
>> application uses AGIspeedy to process the AGI calls, not sure if this <br>
>> can be affecting this situation somehow....<br>
>> Due to this problem I started looking for some option to timeout the <br>
>> AGI call and return to the dialplan after XYZ seconds and so this <br>
>> would protect Asterisk preventing the dialplan to get stuck due to <br>
>> some external script problem that is actually outside of Asterisk <br>
>> control. Does Asterisk provide some control of this sort? I searched <br>
>> around and could not find any.....<br>
>> Any idea is appreciated!<br>
>><br>
>> Kind regards<br>
>> Patrick Wakano<br>
>><br>
> <br>
> I think this is what you may be looking for:<br>
> <br>
> <a href="http://php.net/manual/en/function.set-time-limit.php" rel="noreferrer noreferrer" target="_blank">http://php.net/manual/en/function.set-time-limit.php</a><br>
> <br>
<br>
-- <br>
<a href="http://help.nyigc.net/" rel="noreferrer noreferrer" target="_blank">http://help.nyigc.net/</a><br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Astricon is coming up October 9-11! Signup is available at: <a href="https://www.asterisk.org/community/astricon-user-conference" rel="noreferrer noreferrer" target="_blank">https://www.asterisk.org/community/astricon-user-conference</a><br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</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" rel="noreferrer noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Astricon is coming up October 9-11! Signup is available at: <a href="https://www.asterisk.org/community/astricon-user-conference" rel="noreferrer noreferrer" target="_blank">https://www.asterisk.org/community/astricon-user-conference</a><br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</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" rel="noreferrer noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Astricon is coming up October 9-11! Signup is available at: <a href="https://www.asterisk.org/community/astricon-user-conference" rel="noreferrer noreferrer" target="_blank">https://www.asterisk.org/community/astricon-user-conference</a><br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</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" rel="noreferrer noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Astricon is coming up October 9-11! Signup is available at: <a href="https://www.asterisk.org/community/astricon-user-conference" rel="noreferrer" target="_blank">https://www.asterisk.org/community/astricon-user-conference</a><br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</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" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>