<div dir="ltr">Hi,<br><br>I have a kamailio with the dispatcher module setup. I use:<br><br>    ds_select_dst("1", "9");<br><br>to load balance between 3 gateways.<br><br>My database looks like this:<br>

<br>id  setid  destination  flags priority  attrs<div><br></div><div>5 1 sip:1.1.1.1 0 0 weight=10</div><div>8 1 sip:1.1.1.2 0 0 weight=45</div><div>9 1 sip:1.1.1.3 0 0 weight=45</div><div><br></div><div>As I understand it, most of the calls should be split evenly between gateways 8 and 9, and some calls (around 10%) going to gateway 5.</div>

<div><br></div><div>Well, gateway 8 gets 99% of the calls. I am using kamailio 4.1 and I really cannot understand why this is happening. Running ds_list shows me that all gateays and weights are correctly parsed into kamailio.</div>

<div><br></div><div>This is the result of my ds_list:<br><br>SET:: 1<br>URI:: sip:1.1.1.1 flags=AP priority=0 attrs=weight=10<br>URI:: sip:1.1.1.2 flags=AP priority=0 attrs=weight=45<br>URI:: sip:1.1.1.3 flags=AP priority=0 attrs=weight=45<br>

</div><div><br></div><div>I have tried changing the priority to 100, or to 1 in every gateway, and the result is still the same. I have tried adding ; after the weight parameter, the colon is gone in the ds_list once kamailio parses it.</div>

<br>If, keeping the same database, I use ds_select_dst("1", "0") the calls are split evenly across all 3 gateways. This is great, but not what I want, but it at least proves that something is working.<br>

<br>Is there anything else I can try?<br><br>Thanks a lot for the help!<br><br>Alex<br><br><br></div>