[SR-Users] doubt using rate limit

david escartin descartin at systemonenoc.com
Mon May 23 11:24:06 CEST 2016


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

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


More information about the sr-users mailing list