<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="ES-CL" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span lang="EN-US">Hello.</span></p><p class="MsoNormal"><span lang="EN-US">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. </span></p>
<p class="MsoNormal"><span lang="EN-US">For example if I have 3 gateways, with 50% 25% and 25%</span></p><p class="MsoNormal"><span lang="EN-US">The weight column should be : 50, 25 and 25 ? or 45, 32 and 32 as the script indicates???</span></p>
<p class="MsoNormal"><span lang="EN-US">[root@vlcr utils]# ./lcr_weight_test.sh 45 32 32 </span></p><p class="MsoNormal"><span lang="EN-US">weight 45 probability 0.5235</span></p><p class="MsoNormal"><span lang="EN-US">weight 32 probability 0.2352</span></p>
<p class="MsoNormal"><span lang="EN-US">weight 32 probability 0.2413</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">Please enlighten me here.</span></p><p class="MsoNormal">
<span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">Thanks</span></p><p class="MsoNormal"><span lang="EN-US">Ricardo.-</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p></div></body></html>