Hi Bogdan,<br><br>I agree with you. But I have seen that RATELIMIT module is doing something like that. Can we use that module for each gateway by identifying the gateway at run-time, like<br><br>after LB selected the destination, we can have something like<br>
if($du == <sip:some gateway>) {<br> <br><pre class="programlisting"><font style="font-family: arial narrow,sans-serif;" size="2">if (!rl_check_pipe("1") {<br>                rl_drop(); <br>                exit; <br>        };</font><br></pre>
}<br><br>where the pipe is with some cps value and INVITE queue. Is this will be efficient.<br><br>Regards<br>Rajib<br><br><div class="gmail_quote">On Mon, Feb 15, 2010 at 6:58 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Rajib,<br>
<br>
LB module is doing routing based on the load as current ongoing calls per destination.<br>
<br>
To compute the CPS for a destination can be a bit tricky - there is no module for doing it, Probably you can try to count the call using some shared mem variable (directly in script) and to try to calculate on the fly the CPS, but as said, does not seams an easy one (from mathematical perspective).<br>
<br>
Regards,<br>
Bogdan<div><div></div><div class="h5"><br>
<br>
rajib deka wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br>
Is it possible to route calls based on cps rate using OpenSIPS load balancer module. We have an enterprise implementation here using OpsnSIPS load_balancer, which is handling 100 cps using our different trunks. So we want to place calls according to trunks cps capacity. Is there any other module to handle this situation. your suggestion will be much appreciable. <br>
-- <br>
Rajib Deka<br>
Software Engineer<br>
Servion Global Solution<br>
Chennai, India<br>
<br>
Mobile No: + 91 80157 09130<br>
</blockquote>
<br>
<br></div></div><font color="#888888">
-- <br>
Bogdan-Andrei Iancu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Rajib Deka<br>Software Engineer<br>Servion Global Solution<br>Chennai, India<br><br>Mobile No: + 91 80157 09130<br>