[sr-dev] git:master:1399714f: tm: new weight-based call-termination distribution

Henning Westerholt hw at skalatan.de
Tue Dec 17 19:29:44 CET 2019


Module: kamailio
Branch: master
Commit: 1399714fbba63732f94eb8034dabb1e565ca832a
URL: https://github.com/kamailio/kamailio/commit/1399714fbba63732f94eb8034dabb1e565ca832a

Author: Marco Capetta <mcapetta at sipwise.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2019-12-17T19:29:36+01:00

tm: new weight-based call-termination distribution

Extended t_load_contacts function with the parameter 'mode'.
It can be used to define the algorithm to use for ordering
the contacts.
If 0, or missing, the standard algorithm with be used.
If 1, the new weight-based algorithm will be used.
The new algorithm uses the q value as the weight of the branch.
Higher is the q value, higher is the probability to be tried
as first. Equals q values means equals probability to be tried.
Branches with q values equals to 0 or lower are not considered by
the ordering algorithm, but just added at the end of the list
as backup option if all other branches fail.

---

Modified: src/modules/tm/doc/functions.xml
Modified: src/modules/tm/t_serial.c
Modified: src/modules/tm/t_serial.h
Modified: src/modules/tm/tm.c

---

Diff:  https://github.com/kamailio/kamailio/commit/1399714fbba63732f94eb8034dabb1e565ca832a.diff
Patch: https://github.com/kamailio/kamailio/commit/1399714fbba63732f94eb8034dabb1e565ca832a.patch




More information about the sr-dev mailing list