[sr-dev] git:master:7265f1cf: tsilo: Add support of a lookup and branch creating by contact

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


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

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

tsilo: Add support of a lookup and branch creating by contact

Improvement of the TSILO module, which allows to run a lookup using the provided RURI,
but only to create a new branch for the Contact, which is set in the currently processed REGISTER.
Or optionally a Contact URI value given as a parameter to the function.
If the Contact URI for a lookup, is given as a parameter,
it is possible to provide it as a pseudo-variable.

Hence it is now possible to append new branch(es) for only UAC(s)
getting REGISTERED at the moment of calling 'ts_append_by_contact()'.

Previously it was only possible to call 'ts_append()' and create new branches
for all previously present location records (for this specific URI), which was in some circumstsances undersired.

New script functions introduced:
- ts_append_by_contact(table, ruri [, contact])

New module functions introduced:
- w_ts_append_by_contact2() / ki_ts_append_by_contact()
- w_ts_append_by_contact3 / ki_ts_append_by_contact_uri()
- ts_append_by_contact() / ts_append_by_contact_to()

Backwards compatibility is saved, the new functionality is not overlapping with
the previously existing implementation, hence it only acts when the new script function
ts_append_by_contact() is used.

The documentation has been updated accordingly.

---

Modified: src/modules/tsilo/doc/tsilo.xml
Modified: src/modules/tsilo/doc/tsilo_admin.xml
Modified: src/modules/tsilo/ts_append.c
Modified: src/modules/tsilo/ts_append.h
Modified: src/modules/tsilo/tsilo.c

---

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




More information about the sr-dev mailing list