Module: kamailio
Branch: master
Commit: 5cd02f5653e9b9f523a62a0dae78b801f962ce8e
URL:
https://github.com/kamailio/kamailio/commit/5cd02f5653e9b9f523a62a0dae78b80…
Author: Donat Zenichev <dzenichev(a)sipwise.com>
Committer: Richard Fuchs <rfuchs(a)sipwise.com>
Date: 2024-03-21T11:04:53-04:00
rtpengine: add flags processing on the daemon side
Introduce a versatile behavior of the rtpengine module
in terms of ability to parse flags on rtpengine side,
instead of module. Previous behavior is also kept.
General points:
- rtpengine daemon supports rtpp flags processing from now on
- module still provides in the bencode (when calling daemon):
call-id, to/from tags, viabranch (so identification call data)
- even though the module's interface is updated,
a backwards compatibility is given, so no obligatory changes
from kamailio script users required
- each rtpengine module's function which takes rtpp flags
as a parameter, now is able to get a third parameter `viabranch`,
which is used to detect, which approach to use (older/newer):
- without the viabranch - older one used
- with the viabrnach - new one used, so rtpp flags parsing on
rtpengine side
The goal (for the future) is to deprecate processing of option flags
on the module side and only parse them using rtpengine.
This brings a list of benifits, such as:
- no need to keep in sync rtpengine and module (for specific flags)
- support of different rtpp flag string formats (raw), so that,
for example, kamailio script users can use plain text or
bencode dictionary like format, when providing flags from
the kamailio script
---
Modified: src/modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5cd02f5653e9b9f523a62a0dae78b80…
Patch:
https://github.com/kamailio/kamailio/commit/5cd02f5653e9b9f523a62a0dae78b80…