From eaeb44fae24c1a82b0863e5240bab47567b5fe89 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 14 Apr 2020 09:15:27 -0400 Subject: [PATCH] TT#79601 add rtpengine flags for all commands Change-Id: I5eedb196c5c620a0dd7278f5421c1dba06aa65d5 --- debian/patches/series | 1 + .../rtpengine-flags-for-everything.patch | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 debian/patches/sipwise/rtpengine-flags-for-everything.patch diff --git a/debian/patches/series b/debian/patches/series index 98f4d2473..d18883ff5 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -67,6 +67,7 @@ upstream/tm-do-not-set-msg-tcp-connection-id-in-the-dst-info.patch ### relevant for upstream sipwise/fix_error_in_cfgt_module.patch sipwise/pv_headers-store-To-info-in-xavp_parsed_name.r-on-re.patch +sipwise/rtpengine-flags-for-everything.patch ## sipwise/pv_headers-full-rework.patch sipwise/pua_dialoginfo-refresh_pubruri_avps_flag.patch diff --git a/debian/patches/sipwise/rtpengine-flags-for-everything.patch b/debian/patches/sipwise/rtpengine-flags-for-everything.patch new file mode 100644 index 000000000..5ce4726f4 --- /dev/null +++ b/debian/patches/sipwise/rtpengine-flags-for-everything.patch @@ -0,0 +1,25 @@ +--- a/src/modules/rtpengine/rtpengine.c ++++ b/src/modules/rtpengine/rtpengine.c +@@ -2401,8 +2401,9 @@ + bencode_list_add_string(item, "load limit"); + + body.s = NULL; ++ ng_flags.flags = bencode_list(bencbuf); ++ + if (op == OP_OFFER || op == OP_ANSWER) { +- ng_flags.flags = bencode_list(bencbuf); + ng_flags.direction = bencode_list(bencbuf); + ng_flags.replace = bencode_list(bencbuf); + ng_flags.rtcp_mux = bencode_list(bencbuf); +@@ -2428,11 +2429,6 @@ + else + bencode_dictionary_add_str(ng_flags.dict, "sdp", &body); + } +- else if (op == OP_BLOCK_DTMF || op == OP_BLOCK_MEDIA || op == OP_UNBLOCK_DTMF +- || op == OP_UNBLOCK_MEDIA || op == OP_START_FORWARDING || op == OP_STOP_FORWARDING) +- { +- ng_flags.flags = bencode_list(bencbuf); +- } + + /*** parse flags & build dictionary ***/ +