<div dir="ltr">Thanks Daniel and Alex,<div><br></div><div>I will submit a request for it. It will definitely be a helpful addition as it helps people implement various overload control mechanism where many of them require tuning the rate. In the meantime I will do as Alex suggested to use my own counters to keep track of messages and limit them properly.</div>

<div><br></div><div>Cheers,</div><div>Alireza</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 15, 2014 at 10:23 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div><div class="h5"><br>
<br>
On 14/08/14 18:49, AliReza Khoshgoftar Monfared wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list,<br>
<br>
A quick question,<br>
<br>
What is the best way to limit the rate of the kamailio,<br>
Say I want it to process only 200 INVITEs per second<br>
<br>
I know this can be done using ratelimit module, but what if I want to change this rate dynamically? say, in an overload control scenario, I am getting a recommended rate piggybacked in my replies, and I read it, then how can I change the messge processing rate of kamailio in runtime inside my script?<br>


<br>
Is there a way to change the rate using ratelimit but inside script as messages come?<br>
<br>
The RPC function (rl.set_pipe) does it, but can I call it inside my script?<br>
</blockquote></div></div>
you can use exec module to execute an external command (kamctl ... or kamcmd ...). Also, utils or some embedded interpreter can be used to make http requests (to xmlrpc).<br>
<br>
On the other hand, pipelimit (which is intended to be more dynamic), got the option to define pipes dinammicaly. Adding support to change the limit should be easy -- I will look into it if nobody else sends a patch meanwhile (and could be better to add a feature request on tracker, not to forget about it) -- however, it is only in devel version.<br>


<br>
Cheers,<br>
Daniel<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/<u></u>miconda</a><br>
Next Kamailio Advanced Trainings 2014 - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</div></div></blockquote></div><br></div>