Re: [SR-Users] LCR weight parameter

2011-11-22 Thread Juha Heinanen
Fabian Borot writes: > 3 gws inside same group, and assuming the higher the weight the higher > the capacity > > gw 1 with weight 20 > gw 2 with weight 30 > gw 3 with weight 60 > > I would like to send more calls to gw 3, then gw 2 then gw 1 > but if when I do a load_gws, and I randomize the

Re: [SR-Users] LCR weight parameter

2011-11-22 Thread Fabian Borot
thank you Juha, I understand the purpose and that is how I intend to use it, [more weights for gws with more capacity] but I guess I should have rephrase my question as: what is the purpose of the "randomized" weight value then? when you randomize it then the weight parameter becomes useless.

Re: [SR-Users] LCR weight parameter

2011-11-22 Thread Juha Heinanen
Fabian Borot writes: > The help file for versions 3.1 and 3.2 also says "randomized weight", > does it really work on those versions? yes it does. > or do you mean the "priority" column on the "lcr_rule_target" table > instead? yes. > This may be a dumb question but since I don't get it I have

Re: [SR-Users] LCR weight parameter

2011-11-22 Thread Fabian Borot
Thanks Juha, I figured that the avp reordering would be something like that. The help file for versions 3.1 and 3.2 also says "randomized weight", does it really work on those versions? this is from 3.2 *** When the function load_gws() is called, matching gateways (that a

[SR-Users] LCR weight parameter

2011-11-22 Thread Juha Heinanen
Fabian Borot writes: > 1- since it is "randomized", does this mean that the weight parameter > actually can not guarantee that the weight value can decide how > gateways are ordered? it is a randomized weight, not an absolute priority. > 2- once I have the gws on the avp, is it posible to re-ord

[SR-Users] LCR weight parameter

2011-11-22 Thread Fabian Borot
Hello On kamailio 1.5.2, I need to choose the gw from a group according to its weight. After trying unsuccessfully with different values I realized that the help guide says that the load_gw functions can return gateways according to "gateway's randomized weight within its group". So, I