<!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 Daniel<BR>
<BR>
i had the call rate for some minutes actually.<BR>
maybe 4-5min and all the time the behaviour was like that. it's true that in that kamailio there wa no any other traffic, only those test calls i set with a sipp to simulate the load<BR>
<BR>
best regards<BR>
david<BR>
<BR>
<BR>
<BR>
<BR>
Hello,
<PRE>

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

-- 
Daniel-Constantin Mierla
<A HREF="http://www.asipto.com/">http://www.asipto.com</A> - <A HREF="http://www.kamailio.org/">http://www.kamailio.org</A>
<A HREF="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</A> - <A HREF="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</A>
</PRE>
</BODY>
</HTML>