[Freeswitch-users] switch.conf.xml sessions-per-second issue

Anthony Minessale anthony.minessale at gmail.com
Wed Jan 13 20:56:12 MSK 2016


All calls beyond the configured max sps will receive a 503.
For each 1 second period you can have up to 10 calls.  If you are sending
20 cps, 10 of them more or less depending on timing will receive 503 and at
least 10 will succeed.
There is no way to change it other than hacking code.


On Tue, Jan 12, 2016 at 10:02 AM, Michael Jerris <mike at jerris.com> wrote:

>
> > On Jan 12, 2016, at 2:55 AM, Grant Bagdasarian <GB at cm.nl> wrote:
> >
> > Hello Alex,
> >
> > Yes, I need FS to always send a reply when it starts rate-limiting and
> rejecting calls.
> > How do I change the algorithm used for rejecting calls during
> rate-limiting?
> >
>
> Change it to what?  A reply should already be sent.
>
>
> > Regards,
> >
> > Grant
> >
> > -----Original Message-----
> > From: freeswitch-users-bounces at lists.freeswitch.org [mailto:
> freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Alex Balashov
> > Sent: Tuesday, January 12, 2016 2:33 AM
> > To: freeswitch-users at lists.freeswitch.org
> > Subject: Re: [Freeswitch-users] switch.conf.xml sessions-per-second issue
> >
> > Hello,
> >
> > On 01/11/2016 09:04 AM, Grant Bagdasarian wrote:
> >
> >> Does FS always reply with a 503 Maximum Calls In Progress regardless
> >> of the amount of calls attempts?
> >
> > What do you mean by "always"? That's rather confusing in light of your
> next question:
> >
> >> So if the sessions-per-second is 10 and I generate 20 CPS, the
> >> remaining
> >> 10 will get a 503?
> >>
> >> Does this also apply to an higher number of attempts?
> >
> > If you generate 20 CPS and Freeswitch uses a "taildrop"-style algorithm
> to reject the "remaining" 10, that's certainly not "always".
> >
> > What is the actual question being asked here? It sounds like it's about
> the algorithm Freeswitch uses to determine which calls to reject once a
> rate limit is reached?
> >
> > -- Alex
> >
> > --
> > Alex Balashov | Principal | Evariste Systems LLC
> > 303 Perimeter Center North, Suite 300
> > Atlanta, GA 30346
> > United States
> >
> > Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
> > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > 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
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > 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
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> 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
>



-- 
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

☞ http://freeswitch.org/http://cluecon.com/http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
<http://freeswitch.org/g+>*

ClueCon Weekly Development Call
☎ sip:888 at conference.freeswitch.org  ☎ +19193869900

https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160113/a547aceb/attachment-0001.html 


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