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 <bog...@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@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users