Ok, I think I got it. Can you verify I got it :) I can use this code to limit my gateways <extension name="outbound"> <condition field="destination_number" expression="^1?[2-9]\d{2}[2-9]\d{6}$"> <action application="limit_execute" data="hash outbound carrier1 5 bridge sofia/gateway/carrier1/${destination_number}" /> <action application="limit_execute" data="hash outbound carrier2 5 bridge sofia/gateway/carrier2/${destination_number}" /> </condition> </extension> And this code for my customers 5 ports <action application="limit" data="hash outbound customerxxx 5 !NORMAL_TEMPORARY_FAILURE" /> 5 cps <action application="limit" data="hash outbound customerxxx 5/1 !NORMAL_TEMPORARY_FAILURE" /> How do I add CPS to the gateways using the above example? Is this right? <extension name="outbound"> <condition field="destination_number" expression="^1?[2-9]\d{2}[2-9]\d{6}$"> <action application="limit_execute" data="hash outbound carrier1 5, hash outbound carrier1 5/1 bridge sofia/gateway/carrier1/${destination_number}" /> </condition> </extension> From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Matt Williams Sent: Tuesday, October 22, 2013 6:06 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Limit help 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. Thank You, Matthew Williams IKN Network Operations On Tue, Oct 22, 2013 at 11:21 AM, Andre Demattia <andretodd@verizon.net <mailto:andretodd@verizon.net> > wrote: Can I use limit_execute for a outbound gateway in place of the loop back option? _____ From: Matt Williams <mailto:matt@williamsmjw.com> Sent: 10/22/2013 12:01 PM To: FreeSWITCH Users Help <mailto:freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Limit help 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 http://wiki.freeswitch.org/wiki/Limit#Using_limit_with_per-gateway_or_per-us er_channel_limits On Tue, Oct 22, 2013 at 10:40 AM, Andre Demattia <andretodd@verizon.net <mailto:andretodd@verizon.net> > wrote: Hi, how do I set the CPS and Port limits on a bridge Can I set both on one application or do I need to set 2 limits? 5 ports <action application="limit" data="hash outbound customerxxx 5 !NORMAL_TEMPORARY_FAILURE" /> 5 cps <action application="limit" data="hash outbound customerxxx 5/1 !NORMAL_TEMPORARY_FAILURE" /> Can I do this for both 5 ports and 5 cps? <action application="limit" data="hash outbound customerxxx 5 5/1 !NORMAL_TEMPORARY_FAILURE" /> 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. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org