[SR-Users] Dispatcher algorithm 9 ignores weight=xx attribute
alexrecarey at gmail.com
Fri Sep 5 01:36:59 CEST 2014
I have a kamailio with the dispatcher module setup. I use:
to load balance between 3 gateways.
My database looks like this:
id setid destination flags priority attrs
5 1 sip:220.127.116.11 0 0 weight=10
8 1 sip:18.104.22.168 0 0 weight=45
9 1 sip:22.214.171.124 0 0 weight=45
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.
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.
This is the result of my ds_list:
URI:: sip:126.96.36.199 flags=AP priority=0 attrs=weight=10
URI:: sip:188.8.131.52 flags=AP priority=0 attrs=weight=45
URI:: sip:184.108.40.206 flags=AP priority=0 attrs=weight=45
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.
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.
Is there anything else I can try?
Thanks a lot for the help!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sr-users