[sr-dev] git:master:1d6c1d74: dispatcher: relative weight distribution added

Savolainen Dmitri savolainen at erinaco.ru
Thu Jun 25 18:57:37 CEST 2015


Module: kamailio
Branch: master
Commit: 1d6c1d74ab028ca0d75c6cd9f6466a255b93d2d2
URL: https://github.com/kamailio/kamailio/commit/1d6c1d74ab028ca0d75c6cd9f6466a255b93d2d2

Author: Savolainen Dmitri <savolainen at erinaco.ru>
Committer: Savolainen Dmitri <savolainen at erinaco.ru>
Date: 2015-06-20T22:02:28+03:00

dispatcher: relative weight distribution added

- it is possible to assign "rweight" (relative weight) param to each host in destination group.
rweight is in the integer range from 1 to 100.
Active host usage probability is  rweight/(sum of all active host rweights in destination group).
So INACTIVE/DISABLED destinations are removed from probability calculation.

---

Modified: modules/dispatcher/dispatch.c
Modified: modules/dispatcher/dispatch.h
Modified: modules/dispatcher/dispatcher.c

---

Diff:  https://github.com/kamailio/kamailio/commit/1d6c1d74ab028ca0d75c6cd9f6466a255b93d2d2.diff
Patch: https://github.com/kamailio/kamailio/commit/1d6c1d74ab028ca0d75c6cd9f6466a255b93d2d2.patch




More information about the sr-dev mailing list