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