[OpenSIPS-Users] Route calls based on CPS rate

Ovidiu Sas osas at voipembedded.com
Mon Feb 15 18:15:20 CET 2010


Yes, you can use the ratelimit module to control the cps.
You will need to assign a pipe for each outbound destination.

Regards,
Ovidiu Sas

On Mon, Feb 15, 2010 at 11:50 AM, rajib deka <rajibdk at gmail.com> wrote:
> Hi Bogdan,
>
> 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
>
> after LB selected the destination, we can have something like
> if($du == <sip:some gateway>) {
>
>
> if (!rl_check_pipe("1") {
> 		rl_drop();
> 		exit;
> 	};
>
> }
>
> where the pipe is with some cps value and INVITE queue. Is this will be
> efficient.
>
> Regards
> Rajib
>
> On Mon, Feb 15, 2010 at 6:58 PM, Bogdan-Andrei Iancu
> <bogdan at voice-system.ro> wrote:
>>
>> Hi Rajib,
>>
>> LB module is doing routing based on the load as current ongoing calls per
>> destination.
>>
>> 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).
>>
>> Regards,
>> Bogdan
>>
>> rajib deka wrote:
>>>
>>> Hello all,
>>> 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.
>>> --
>>> Rajib Deka
>>> Software Engineer
>>> Servion Global Solution
>>> Chennai, India
>>>
>>> Mobile No: + 91 80157 09130
>>
>>
>> --
>> Bogdan-Andrei Iancu
>> www.voice-system.ro
>>
>
>
>
> --
> Rajib Deka
> Software Engineer
> Servion Global Solution
> Chennai, India
>
> Mobile No: + 91 80157 09130
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>



More information about the Users mailing list