<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p><span>Hi,</span></p>
<p><span><br>
</span></p>
<p><span>just a small question regarding the ratelimit module. I am confused by the documentation:<br>
</span></p>
<p><span><br>
</span></p>
<p><span>rl_check():<br>
</span></p>
<p><span><br>
</span></p>
<p><i><span>"Note that the limit should be specified as per-second, not per-timer_interval."</span></i></p>
<p><br>
</p>
<p><br>
</p>
<p>But at the timer_interval modparam it says:</p>
<p><i><br>
</i></p>
<p><i>"<span>All amounts of messages have to be divided by this timer to get a messages per second value.
</span>"</i></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>So which one is true, e.g. if i want to limit to 50 cps (and the default timer_interval is 10 seconds) would i just do something like:</p>
<p><br>
</p>
<p></p>
<div>if (!rl_check("$avp(carriername)", "50", "RED")) {<br>
</div>
...<br>
<p></p>
<p><br>
</p>
<p>Or</p>
<p><br>
</p>
<p></p>
<div>if (!rl_check("$avp(carriername)", "500", "RED")) {<br>
</div>
<p></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Thanks.</p>
<p><br>
</p>
<p>BR<br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;">
<p><span lang="fr"><font size="3" face="Calibri,Arial,Helvetica,sans-serif" color="black"><span dir="ltr" id="divtagdefaultwrapper" style="font-size:12pt"><font face="Calibri,Arial,Helvetica,sans-serif"></font></span></font></span></p>
<font size="3" face="Calibri,Arial,Helvetica,sans-serif" color="black"><font face="Calibri,Arial,Helvetica,sans-serif">
<div style="margin:0"><font size="1" face="Arial" color="#222222"><span style="font-size:11px; font-weight:normal"><span style="background-color:white"></span></span></font></div>
</font></font>
<p class="x_MsoNormal" style="margin-bottom:13.5pt"><span style="color:#1F497D">Max Mühlbronner<br>
------<br>
42com Telecommunication GmbH<b><br>
</b>Straße der Pariser Kommune 12-16<br>
10243 Berlin<br>
<br>
Fon: +49-(0)30-2434299-28<br>
Fax: +49-(0)30-2434299-99<br>
E-Mail: mm@42com.com<br>
Web: </span><u><span style="color:blue"><a href="http://www.42com.com/" target="_blank" id="LPNoLP"><span style="color:blue">www.42com.com</span></a></span></u></p>
<p class="x_MsoNormal"><span style="font-size:10.0pt; color:#1F497D"><br>
</span><span style="font-size:9.0pt; color:#1F497D">Firmenangaben/Company information:<br>
Handelsregister/Commercial register: Amtsgericht Berlin HRB 99071 B<br>
Umsatzsteuer-ID/VAT-ID: DE223812306<br>
Geschäftsführer/CEO: Thomas Reinig, Alexander Reinig<br>
<br>
Diese E-Mail enthält Informationen von 42com Telecommunication GmbH. Diese sind möglicherweise vertraulich und ausschließlich für den Adressaten bestimmt. Sollten Sie diese elektronische Nachricht irrtümlicherweise erhalten haben, so informieren Sie uns bitte
unverzüglich telefonisch oder per E-Mail.<br>
<br>
</span><span style="font-size:9.0pt; color:#1F497D" lang="EN-US">This message is intended only for the use of the individual or entity to which it is addressed. If you have received this message by mistake, please notify us immediately.</span><span style="color:#1F497D" lang="EN-US"></span></p>
<p></p>
</div>
</div>
</div>
</body>
</html>