[SR-Users] LCR weight

Juha Heinanen jh at tutpro.com
Tue Jan 8 05:50:19 CET 2013


Ricardo Martinez writes:

> I have a doubt about the WEIGHT value  in the LCR module.  In the past we
> used the Kamailio version 1.5.2 and in that version LCR weight was
> calculated by a little script called lcr_weight_script.php.  There was not
> “percent” values like 50% and 50% for two gateways despite that  the
> probabilities were numbers calculated by the script.  My question is  : For
> Kamailio version 3.2.4  do I have to use the same script to calculate the
> weight?? I was almost sure that the weight column was a probability
> value.

there is a script and kamctl command also in 3.x.  see lcr README.

> For example if I have 3 gateways, with 50% 25% and 25%
> 
> The weight column should be : 50, 25 and 25 ? or 45, 32 and 32 as the
> script indicates???

use values that the 3.x script or kamctl command shows to produce
the desired probabilities.

-- juha



More information about the sr-users mailing list