dispatcher module doing wrong when skipping inactive
nodes on weighted
load distribution usage ( alg 9 )
here:
https://github.com/kamailio/kamailio/blob/master/modules/dispatcher/dispatc…
loop iterates over possible destinations to get first active after
previously computed destination if it inactive.
this works for all balancing algorythms except of 9 (weighted balancing),
because on failover it ignores idx->wlist array and chooses next
destination ignoring weights.
thus we will get all traffic for inactive destination on the destination
which next by destinations index.
suggested patch changes behavior to continue to iterate over idx->wlist
on inactive destinations skipping for alg 9.
please, examine and apply.
--
Regards
Michael Furmur
_______________________________________________
sr-dev mailing list
sr-dev(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev