[OpenSIPS-Users] Routing Rules ratio

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Mar 25 18:07:50 CET 2013


Hi Khaled,

The sum of weights does not have to equal 100 :)....weight are numbers 
to give the ratio between the elements - please read more on weights, in 
general.

Now, first of all, to have weights used, you need to set the 
corresponding flag in do_routing (see W - 
http://www.opensips.org/html/docs/modules/1.9.x/drouting.html#id293614). 
If no weight is set, 0 is assumed -> it will never be used.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/25/2013 01:16 PM, M.Khaled W Chehab wrote:
>
> Hi,
>
> what will be the routing rule scenario(dr_rules) if i add 
>  (gwlist)gw1=30,gw2=40,gw3 ,would be a percentage balance here or it 
> will go for priority ?
>
> since gw3 has no = value  and what if the sum of the gwlist  equal  
> ration value > 100 for ex (gw1=20,gw2=80,gw3=10)?
>
> Khaled Chehab
>
> Senior NGN Engineer
>
> Description: icucall
>
> Operations Office - Lebanon
>
> Office    : +961 1 515155 ext 300
>
> Mobile  : +961 3 045212
>
> E-mail    : kchehab at icucall.com
>
> MSN ID :khalidchehab at hotmail.com
>
> Skype    : k_chehab
>
> Web Site: http://www.icucall.com
>
> http://www.allohi.com
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130325/4fe09c05/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 5316 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20130325/4fe09c05/attachment.png>


More information about the Users mailing list