<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body text="#000000" bgcolor="#FFFFFF"><br>
Sorry for the thread hijack, but on the other hand, is it possible to 
limit the number of outgoing CPS? Don't seem to see that either in the 
wiki or a way to make it work.<br>
<br>
<div class="moz-signature">-- <br>Thanks,<br>



Muhammad Naseer Bhatti<br>


<br>


</div>
<br>
<br>
Alex Ynema wrote:
<blockquote 
cite="mid:CAN-21F4S2HNYdfJeoY=Hp6Lc1cXku6=fh0uZCXeonM9yJVqS2g@mail.gmail.com"
 type="cite">
  <div dir="ltr"><span 
style="font-family:arial,sans-serif;font-size:13px">Cheers Avi I've now 
changed that to hash as I don't need it to be persistent.</span><div 
style="font-family:arial,sans-serif;font-size:13px">

What should I see in the clie to confirm this is working without 
attempting 150+ calls</div><div 
style="font-family:arial,sans-serif;font-size:13px"><br><div>Basically 
I've added this to my default.xml</div><div><br>
</div>
<div><div>&nbsp; &nbsp; &lt;action application="set" 
data="destnum=${destination_number}" /&gt;</div><div>&nbsp; &nbsp; &lt;action 
application="bridge" 
data="loopback/context/zetta-cisco-1,loopback/context/zetta-cisco-2" 
/&gt;</div>

<div><br></div><div>&nbsp; &nbsp; &lt;extension name="zetta-cisco-1"&gt;</div><div>&nbsp;
 &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" 
expression="zetta-cisco-1"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action 
application="limit" data="hash outgoing zetta-cisco-1 150" /&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bridge" 
data="sofia/gateway/zetta-cisco-1/${destnum}" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 
&lt;/condition&gt;</div><div>&nbsp; &nbsp; &lt;/extension&gt;</div><div>&nbsp; &nbsp; 
&lt;extension name="zetta-cisco-2"&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" 
expression="zetta-cisco-2"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action 
application="limit" data="hash outgoing zetta-cisco-2 150" /&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bridge" 
data="sofia/gateway/zetta-cisco-2/${destnum}" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 
&lt;/condition&gt;</div><div>&nbsp; &nbsp; &lt;/extension&gt;</div></div></div></div>
  <div class="gmail_extra">

<br clear="all"><div><br><div><div><span 
style="border-collapse:collapse"><span lang="EN-US"><font face="'times 
new roman', serif"><font color="#999999"><b>Alex Ynema</b></font></font></span><span
 lang="EN-US"><font face="'times new roman', serif"><font 
color="#999999"><b>&nbsp;</b>|&nbsp;</font></font></span><span lang="EN-US"><font 
face="'times new roman', serif"><font color="#999999">IT Consultant</font></font></span><span
 lang="EN-US"><font face="'times new roman', serif"><font 
color="#999999"><br>

</font></font></span><span lang="EN-US"><font face="'times new roman', 
serif"><font color="#999999"><a moz-do-not-send="true" 
href="mailto:alex@opensystems.net.au" target="_blank">alex@opensystems.net.au</a><br></font></font></span></span></div>

<div><br></div><font face="'times new roman', serif"><font 
color="#999999">Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016</font></font></div><div><font
 face="'times new roman', serif"><font color="#999999">Office: +61 8 
9427 2500<br>

Mobile: +61 404 796 894<br></font></font><div><font color="#999999" 
face="'times new roman', serif"><br></font><div><font color="#999999" 
face="'times new roman', serif">IT Consultant for Open Systems Support<br>

</font><div><font face="'times new roman', serif"><font color="#999999"><a
 moz-do-not-send="true" href="http://www.opensystems.net.au/" 
target="_blank">www.opensystems.net.au</a></font></font></div></div></div></div></div>
<br><br><div class="gmail_quote">On 29 May 2013 14:13, Avi Marcus <span 
dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:avi@avimarcus.net" 
target="_blank">avi@avimarcus.net</a>&gt;</span> wrote:<br><blockquote 
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc 
solid;padding-left:1ex"><div dir="ltr">... just note that's stored in a 
database (db) not ram (hash) so if you don't need to share it / have 
persistence, just store it in ram.<div><br clear="all"><div><div 
dir="ltr"><span 
style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div>



</div><br><div class="gmail_quote">On Wed, May 29, 2013 at 9:07 AM, Alex
 Ynema <span dir="ltr">&lt;<a moz-do-not-send="true" 
href="mailto:alex@opensystems.net.au" target="_blank">alex@opensystems.net.au</a>&gt;</span>
 wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span 
style="font-family:arial,sans-serif;font-size:13px">I've implemented 
this in default.xml hoping to limit each of my two gateways to 150.&nbsp;</span><div
 style="font-family:arial,sans-serif;font-size:13px">





Based on what's in&nbsp;<a moz-do-not-send="true" 
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>&nbsp;so
 hopefully that works.<div>





<div><br></div><div><div>&nbsp; &nbsp; &lt;extension name="zetta-cisco-1"&gt;</div><div>&nbsp;
 &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" 
expression="zetta-cisco-1"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action 
application="limit" data="db outgoing zetta-cisco-1 150" /&gt;</div>





<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bridge" 
data="sofia/gateway/zetta-cisco-1/${destnum}" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 
&lt;/condition&gt;</div><div>&nbsp; &nbsp; &lt;/extension&gt;</div><div>&nbsp; &nbsp; 
&lt;extension name="zetta-cisco-2"&gt;</div>





<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" 
expression="zetta-cisco-2"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action 
application="limit" data="db outgoing zetta-cisco-2 150" /&gt;</div>





<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bridge" 
data="sofia/gateway/zetta-cisco-2/${destnum}" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 
&lt;/condition&gt;</div><div>&nbsp; &nbsp; &lt;/extension&gt;</div></div></div></div></div>





<div class="gmail_extra"><div><br clear="all"><div><div class="im"><br><div><div><span
 style="border-collapse:collapse"><span lang="EN-US"><font face="'times 
new roman', serif"><font color="#999999"><b>Alex Ynema</b></font></font></span><span
 lang="EN-US"><font face="'times new roman', serif"><font 
color="#999999"><b>&nbsp;</b>|&nbsp;</font></font></span><span lang="EN-US"><font 
face="'times new roman', serif"><font color="#999999">IT Consultant</font></font></span><span
 lang="EN-US"><font face="'times new roman', serif"><font 
color="#999999"><br>





</font></font></span><span lang="EN-US"><font face="'times new roman', 
serif"><font color="#999999"><a moz-do-not-send="true" 
href="mailto:alex@opensystems.net.au" target="_blank">alex@opensystems.net.au</a><br></font></font></span></span></div>





<div><br></div><font face="'times new roman', serif"><font 
color="#999999">Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016</font></font></div></div><div><div
 class="im"><font face="'times new roman', serif"><font color="#999999">Office:
 <a moz-do-not-send="true" href="tel:%2B61%208%209427%202500" 
value="+61894272500" target="_blank">+61 8 9427 2500</a><br>





Mobile: <a moz-do-not-send="true" href="tel:%2B61%20404%20796%20894" 
value="+61404796894" target="_blank">+61 404 796 894</a><br></font></font></div><div><font
 color="#999999" face="'times new roman', serif"><br>



</font><div class="im"><div><font color="#999999" face="'times new 
roman', serif">IT Consultant for Open Systems Support<br>

</font><div><font face="'times new roman', serif"><font color="#999999"><a
 moz-do-not-send="true" href="http://www.opensystems.net.au/" 
target="_blank">www.opensystems.net.au</a></font></font></div></div></div></div></div></div>
<br><br></div><div><div><div class="gmail_quote"><div class="im">On 29 
May 2013 13:59, Alex Ynema <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:alex@opensystems.net.au" target="_blank">alex@opensystems.net.au</a>&gt;</span>
 wrote:<br>

</div><blockquote class="gmail_quote" style="margin:0 0 0 
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div 
class="im">Hi,<div>I'm trying to figure out how to limit the number of 
calls a Gateway is allowed to use. Our Sip provider has provided up with
 200 which I need to set within the system somehow.</div>

<div>What's the best way to handle it for an outgoing only system.</div>




<div>I've been trying to figure out how how to configure '<span 
style="line-height:19.046875px;font-size:13px;font-family:sans-serif">Rate
 limiting concurrent outgoing calls via a provider</span>' which is 
mentioned in the wiki a bit but nothing specific on what to actually do.</div>






</div><div><div><div class="im"><br><div><div><span 
style="border-collapse:collapse"><span lang="EN-US"><font face="'times 
new roman', serif"><font color="#999999"><b>Alex Ynema</b></font></font></span><span
 lang="EN-US"><font face="'times new roman', serif"><font 
color="#999999"><b>&nbsp;</b>|&nbsp;</font></font></span><span lang="EN-US"><font 
face="'times new roman', serif"><font color="#999999">IT Consultant</font></font></span><span
 lang="EN-US"><font face="'times new roman', serif"><font 
color="#999999"><br>






</font></font></span><span lang="EN-US"><font face="'times new roman', 
serif"><font color="#999999"><a moz-do-not-send="true" 
href="mailto:alex@opensystems.net.au" target="_blank">alex@opensystems.net.au</a><br></font></font></span></span></div>






<div><br></div><font face="'times new roman', serif"><font 
color="#999999">Level 1, 409-411 Oxford Street, Mount Hawthorne WA 6016</font></font></div></div><div><div
 class="im"><font face="'times new roman', serif"><font color="#999999">Office:
 <a moz-do-not-send="true" href="tel:%2B61%208%209427%202500" 
value="+61894272500" target="_blank">+61 8 9427 2500</a><br>






Mobile: <a moz-do-not-send="true" href="tel:%2B61%20404%20796%20894" 
value="+61404796894" target="_blank">+61 404 796 894</a><br></font></font></div><div><font
 color="#999999" face="'times new roman', serif"><br>



</font><div class="im"><div><font color="#999999" face="'times new 
roman', serif">IT Consultant for Open Systems Support<br>


</font><div><font face="'times new roman', serif"><font color="#999999"><a
 moz-do-not-send="true" href="http://www.opensystems.net.au/" 
target="_blank">www.opensystems.net.au</a></font></font></div></div></div></div></div></div>
</div></div></blockquote></div><br></div></div></div>
<br><div class="im">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" 
target="_blank">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" 
target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" href="http://www.freeswitch.org" 
target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" 
target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true" 
href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true" 
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" 
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true" 
href="http://lists.freeswitch.org/mailman/options/freeswitch-users" 
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org" 
target="_blank">http://www.freeswitch.org</a><br>
<br></div></blockquote></div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" 
target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" href="http://www.freeswitch.org" 
target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" 
target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true" 
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true" 
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" 
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true" 
href="http://lists.freeswitch.org/mailman/options/freeswitch-users" 
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org" 
target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>


  <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
</body></html>