<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.8.4">
</HEAD>
<BODY>
Hello all<BR>
<BR>
i have a quick question about using module ratelimit on kamailio 4.2 or 4.4.<BR>
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.<BR>
after surpassing around 20 INV/sec, it's true the algorithm starts to work fine and only 10INV/sec are passed more or less<BR>
<BR>
on production i have no easy way to check this behaviour, besides it's a feature barely used.<BR>
<BR>
so i only want to know if this behaviour is known, or if i'm missing soemthing<BR>
<BR>
my config is like this<BR>
<BR>
modparam("ratelimit", "timer_interval", 5)<BR>
modparam("ratelimit", "queue", "4:INVITE")<BR>
modparam("ratelimit", "pipe", "4:RED:10")<BR>
<BR>
route[RATE_LIMIT] {<BR>
    $var(limitation)="4";<BR>
    if (!rl_check("$var(limitation)")) {<BR>
        send_reply("505","Limiting");<BR>
        xlog("L_INFO","Call $ci / Call-ID $ci: ratelimit was reached, rejecting with 505\n");<BR>
        route(CLEAR);<BR>
        exit;<BR>
    }  <BR>
}<BR>
<BR>
<BR>
thanks a lot and regards<BR>
david escartin<BR>
<BR>
</BODY>
</HTML>