<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Ok, I think I got it. Can you verify I got it </span><span style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>J</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I can use this code to limit my gateways<o:p></o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'>&lt;extension name=&quot;outbound&quot;&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'>&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^1?[2-9]\d{2}[2-9]\d{6}$&quot;&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;action application=&quot;limit_execute&quot; data=&quot;hash outbound carrier1 5 bridge sofia/gateway/carrier1/${destination_number}&quot; /&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;action application=&quot;limit_execute&quot; data=&quot;hash outbound carrier2 5 bridge sofia/gateway/carrier2/${destination_number}&quot; /&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'>&nbsp; &lt;/condition&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'>&lt;/extension&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>And this code for my customers<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>5 ports<br>&lt;action application=&quot;limit&quot; data=&quot;hash outbound customerxxx 5 !NORMAL_TEMPORARY_FAILURE&quot; /&gt;<br><br>5 cps<br>&lt;action application=&quot;limit&quot; data=&quot;hash outbound customerxxx&nbsp; 5/1 !NORMAL_TEMPORARY_FAILURE&quot; /&gt;<br><br><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>How do I add CPS to the gateways using the above example? Is this right?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'>&lt;extension name=&quot;outbound&quot;&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'>&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^1?[2-9]\d{2}[2-9]\d{6}$&quot;&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application=&quot;limit_execute&quot; data=&quot;hash outbound carrier1 5, <b><i>hash outbound carrier1 5/1</i></b> bridge sofia/gateway/carrier1/${destination_number}&quot; /&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'>&nbsp; &lt;/condition&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Courier New"'>&lt;/extension&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><br><br></span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Matt Williams<br><b>Sent:</b> Tuesday, October 22, 2013 6:06 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Limit help<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></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.&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><div><p class=MsoNormal>Thank You,<o:p></o:p></p></div><p class=MsoNormal>Matthew Williams<br>IKN Network Operations<o:p></o:p></p><div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>On Tue, Oct 22, 2013 at 11:21 AM, Andre Demattia &lt;<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>&gt; wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Can I use limit_execute for a outbound gateway in place of the loop back option?<o:p></o:p></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:12.0pt'><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From: </span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><a href="mailto:matt@williamsmjw.com" target="_blank">Matt Williams</a></span><br><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Sent: </span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>10/22/2013 12:01 PM</span><br><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>To: </span></b><span style='font-size:11.0pt;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:11.0pt;font-family:"Calibri","sans-serif"'>Subject: </span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Re: [Freeswitch-users] Limit help</span><o:p></o:p></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&nbsp;<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> <o:p></o:p></p><div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>On Tue, Oct 22, 2013 at 10:40 AM, Andre Demattia &lt;<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>&gt; wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><div><p class=MsoNormal><span style='font-size:11.0pt;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>&lt;action application=&quot;limit&quot; data=&quot;hash outbound customerxxx 5<br>!NORMAL_TEMPORARY_FAILURE&quot; /&gt;<br><br>5 cps<br>&lt;action application=&quot;limit&quot; data=&quot;hash outbound customerxxx&nbsp; 5/1<br>!NORMAL_TEMPORARY_FAILURE&quot; /&gt;<br><br>Can I do this for both 5 ports and 5 cps?<br><br>&lt;action application=&quot;limit&quot; data=&quot;hash outbound customerxxx 5&nbsp; 5/1<br>!NORMAL_TEMPORARY_FAILURE&quot; /&gt;<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.<o:p></o:p></span></p></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><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><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">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">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><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></body></html>