[SR-Users] doubt using rate limit

Daniel-Constantin Mierla miconda at gmail.com
Tue May 24 13:16:48 CEST 2016


Hello,

for how long you got this 20req/second?

The module is not counting like continuous time, but more like traffic
on each second, iirc.

Cheers,
Daniel


On 23/05/16 11:24, david escartin wrote:
> Hello all
>
> i have a quick question about using module ratelimit on kamailio 4.2
> or 4.4.
> on tests made before running it  on production, i set the RED
> algorithm with a limit of 10 calls per second, but i saw the call
> limitation was not done until we got more than 20 calls per second or
> so on the queue. we didnt get any INVITE discarded.
> after surpassing around 20 INV/sec, it's true the algorithm starts to
> work fine and only 10INV/sec are passed more or less
>
> on production i have no easy way to check this behaviour, besides it's
> a feature barely used.
>
> so i only want to know if this behaviour is known, or if i'm missing
> soemthing
>
> my config is like this
>
> modparam("ratelimit", "timer_interval", 5)
> modparam("ratelimit", "queue", "4:INVITE")
> modparam("ratelimit", "pipe", "4:RED:10")
>
> route[RATE_LIMIT] {
>     $var(limitation)="4";
>     if (!rl_check("$var(limitation)")) {
>         send_reply("505","Limiting");
>         xlog("L_INFO","Call $ci / Call-ID $ci: ratelimit was reached,
> rejecting with 505\n");
>         route(CLEAR);
>         exit;
>     } 
> }
>
>
> thanks a lot and regards
> david escartin
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160524/9130eb5d/attachment.html>


More information about the sr-users mailing list