<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>for how long you got this 20req/second?</p>
<p>The module is not counting like continuous time, but more like
traffic on each second, iirc.</p>
<p>Cheers,<br>
Daniel</p>
<br>
<div class="moz-cite-prefix">On 23/05/16 11:24, david escartin
wrote:<br>
</div>
<blockquote cite="mid:1463995446.2891.20.camel@systemonenoc.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="GtkHTML/4.8.4">
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>