<div dir="ltr"><div class="gmail_extra"><div><div>You need to call limit twice because you are limiting to separate instances.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><p class="MsoNormal"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"><extension name="outbound"><u></u><u></u></span></p><p class="MsoNormal">
<span lang="EN" style="font-size:10pt;font-family:'Courier New'"> <condition field="destination_number" expression="^1?[2-9]\d{2}[2-9]\d{6}$"></span></p></div></blockquote><div> <action application="limit" data="hash outbound carrier1 5/1 transfer_to XML context"/></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><p class="MsoNormal">
<span lang="EN" style="font-size:10pt;font-family:'Courier New'"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"> <action application="limit_execute" data="hash outbound carrier1 5 bridge sofia/gateway/carrier1/${destination_number}" /><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"> </condition><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"></extension></span></p></div></blockquote><div><div><br></div></div></div>
<br><br><div class="gmail_quote">On Tue, Oct 22, 2013 at 6:09 PM, Andre <span dir="ltr"><<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Ok, I think I got it. Can you verify I got it </span><span style="font-size:11pt;font-family:Wingdings;color:rgb(31,73,125)">J</span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I can use this code to limit my gateways<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"><extension name="outbound"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"> <condition field="destination_number" expression="^1?[2-9]\d{2}[2-9]\d{6}$"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"> <action application="limit_execute" data="hash outbound carrier1 5 bridge sofia/gateway/carrier1/${destination_number}" /><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"> <action application="limit_execute" data="hash outbound carrier2 5 bridge sofia/gateway/carrier2/${destination_number}" /><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"> </condition><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"></extension><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">And this code for my customers<u></u><u></u></span></p>
<div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">5 ports<br>
<action application="limit" data="hash outbound customerxxx 5 !NORMAL_TEMPORARY_FAILURE" /><br><br>5 cps<br><action application="limit" data="hash outbound customerxxx 5/1 !NORMAL_TEMPORARY_FAILURE" /><br>
<br><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p></div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">How do I add CPS to the gateways using the above example? Is this right?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><br></p></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><br>
<br></span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p><p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Matt Williams<br>
<b>Sent:</b> Tuesday, October 22, 2013 6:06 PM</span></p><div><div><br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Limit help<u></u><u></u></div></div><p></p><div><div>
<p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">You can use limit_execute to execute any application you wish. The best way to wrap your head around how simple and useful the limit application is to use is to play with it a little while. Everything should click into place. <u></u><u></u></p>
</div><div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><div><p class="MsoNormal">Thank You,<u></u><u></u></p></div><p class="MsoNormal">Matthew Williams<br>IKN Network Operations<u></u><u></u></p><div><div>
<p class="MsoNormal"><u></u> <u></u></p></div></div></div><p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p><div><p class="MsoNormal">On Tue, Oct 22, 2013 at 11:21 AM, Andre Demattia <<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>> wrote:<u></u><u></u></p>
<blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><div><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">Can I use limit_execute for a outbound gateway in place of the loop back option?<u></u><u></u></span></p>
</div></div><div><div class="MsoNormal" align="center" style="text-align:center"><hr size="3" width="100%" align="center"></div><p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From: </span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"><a href="mailto:matt@williamsmjw.com" target="_blank">Matt Williams</a></span><br>
<b><span style="font-size:11pt;font-family:Calibri,sans-serif">Sent: </span></b><span style="font-size:11pt;font-family:Calibri,sans-serif">10/22/2013 12:01 PM</span><br>
<b><span style="font-size:11pt;font-family:Calibri,sans-serif">To: </span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"><a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">FreeSWITCH Users Help</a></span><br>
<b><span style="font-size:11pt;font-family:Calibri,sans-serif">Subject: </span></b><span style="font-size:11pt;font-family:Calibri,sans-serif">Re: [Freeswitch-users] Limit help</span><u></u><u></u></p>
</div><div><div><div><p class="MsoNormal">You need to set your CPS and port limits separately. You can set limits per gateway the same way you would limit any application. It is not bound to any specific application. The values you use are completely arbitrary. That said here is an example from the Wiki <a href="http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-user_channel_limits" target="_blank">http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-user_channel_limits</a> <u></u><u></u></p>
<div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><div><p class="MsoNormal"><u></u> <u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p><div><p class="MsoNormal">On Tue, Oct 22, 2013 at 10:40 AM, Andre Demattia <<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>> wrote:<u></u><u></u></p>
<blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><div><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">Hi, how do I set the CPS and Port limits on a bridge<br>
<br>Can I set both on one application or do I need to set 2 limits?<br><br>5 ports<br><action application="limit" data="hash outbound customerxxx 5<br>!NORMAL_TEMPORARY_FAILURE" /><br><br>5 cps<br>
<action application="limit" data="hash outbound customerxxx 5/1<br>!NORMAL_TEMPORARY_FAILURE" /><br><br>Can I do this for both 5 ports and 5 cps?<br><br><action application="limit" data="hash outbound customerxxx 5 5/1<br>
!NORMAL_TEMPORARY_FAILURE" /><br><br>Also how do I do the same on a gateway? I need to make sure I don't send too many calls to the provider.<u></u><u></u></span></p></div></div></div><p class="MsoNormal" style="margin-bottom:12pt">
<br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><u></u><u></u></p>
</blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div><p class="MsoNormal" style="margin-bottom:12pt"><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>