#### Pre-Submission Checklist
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #2167
#### Description
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.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2178
-- Commit Summary --
* tm: new weight-based call-termination distribution
-- File Changes --
M src/modules/tm/doc/functions.xml (33)
M src/modules/tm/t_serial.c (266)
M src/modules/tm/t_serial.h (7)
M src/modules/tm/tm.c (9)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2178.patch
https://github.com/kamailio/kamailio/pull/2178.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2178