[Freeswitch-users] Limit help

Andre andretodd at verizon.net
Wed Oct 23 03:09:52 MSD 2013


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 at lists.freeswitch.org
[mailto:freeswitch-users-bounces at 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 at verizon.net
<mailto:andretodd at verizon.net> > wrote:

Can I use limit_execute for a outbound gateway in place of the loop back
option?

  _____  

From: Matt Williams <mailto:matt at williamsmjw.com> 
Sent: 10/22/2013 12:01 PM
To: FreeSWITCH Users Help <mailto:freeswitch-users at 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 at verizon.net
<mailto:andretodd at 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 at freeswitch.org <mailto:consulting at freeswitch.org> 
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
<mailto:FreeSWITCH-users at 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 at freeswitch.org <mailto:consulting at freeswitch.org> 
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
<mailto:FreeSWITCH-users at lists.freeswitch.org> 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131022/b6fd85fe/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list