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

Author: Donat Zenichev <dzenic...@sipwise.com>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2024-11-22T11:19:49+01:00

rtpengine: use to-tag for NG message when rtpp-flags

Always use to-tag for NG message with rtpp-flags,
if presented. This change is caused by the processing
logic being moved to rtpengine with rtpp-flags.

---

Modified: src/modules/rtpengine/rtpengine.c

---

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

---

diff --git a/src/modules/rtpengine/rtpengine.c 
b/src/modules/rtpengine/rtpengine.c
index 7626af31f88..1d710b30324 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -3187,7 +3187,7 @@ static bencode_item_t 
*rtpp_function_call(bencode_buffer_t *bencbuf,
         */
 
        /* affects to-tag parsing */
-       ng_flags.to = (op == OP_DELETE) ? 0 : 1;
+       ng_flags.to = (!parse_by_module || op != OP_DELETE) ? 1 : 0;
 
        /* module specific parsing */
        if(parse_by_module && flags && parse_flags(&ng_flags, msg, &op, 
flags->s))

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to