From 310fef6a6604079c9a1629cf1952cf26fbb1248a Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Thu, 21 Nov 2024 17:05:51 +0100 Subject: [PATCH] MT#61441 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. Change-Id: Ib656fdccbd366053bab37ef04c48659a6fd3acc1 (cherry picked from commit e527845822b8d52946b33796b08c47e1593401cc) (cherry picked from commit dccf1e3ca13015310f132ac197c72911f1c00820) --- debian/patches/series | 1 + ...ways_add_totag_to_ng_message_when_rtpp_flags.patch | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 debian/patches/sipwise/rtpengine_always_add_totag_to_ng_message_when_rtpp_flags.patch diff --git a/debian/patches/series b/debian/patches/series index dffaea85b..6aa2f8bc8 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -53,6 +53,7 @@ sipwise/cfgutils-allow-lock_set_size-14.patch sipwise/pua-get_record_puadb-add-pres_uri-to-the-query.patch sipwise/pua_dialoginfo-use_uuid.patch ### active development +sipwise/rtpengine_always_add_totag_to_ng_message_when_rtpp_flags.patch # ### Don't just put stuff in any order ### use gbp pq import/export tooling to help maintain patches diff --git a/debian/patches/sipwise/rtpengine_always_add_totag_to_ng_message_when_rtpp_flags.patch b/debian/patches/sipwise/rtpengine_always_add_totag_to_ng_message_when_rtpp_flags.patch new file mode 100644 index 000000000..c126b1ad8 --- /dev/null +++ b/debian/patches/sipwise/rtpengine_always_add_totag_to_ng_message_when_rtpp_flags.patch @@ -0,0 +1,11 @@ +--- a/src/modules/rtpengine/rtpengine.c ++++ b/src/modules/rtpengine/rtpengine.c +@@ -3179,7 +3179,7 @@ static bencode_item_t *rtpp_function_cal + */ + + /* 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))