[sr-dev] git:master:cb1b78e7: tm: merge t_append_branches() and t_append_branch_by_contact()

Victor Seva linuxmaniac at torreviejawireless.org
Fri Nov 19 09:19:02 CET 2021

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

Author: Donat Zenichev <dzenichev at sipwise.com>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2021-11-19T09:18:55+01:00

tm: merge t_append_branches() and t_append_branch_by_contact()

Because the implementation of the functions
't_append_branches()' and 't_append_branch_by_contact()' is pretty
much the same, it's proposed to merge them into one:

The way how the function acts now depends on if the contact
parameter of str type is given or not (empty or not).
If the contact parameter is given, then only a desired location
is meant for appending. If not found in the location table,
an append will not happen for this AOR.

Otherwise create branches for all existing location records
of this particular AOR. Search for locations is done in the location table.


Modified: src/modules/tm/t_append_branches.c
Modified: src/modules/tm/t_append_branches.h
Modified: src/modules/tm/tm_load.c
Modified: src/modules/tm/tm_load.h


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

More information about the sr-dev mailing list