Blob Blame History Raw
From: Eric Tamme <eric.tamme@onsip.com>
Date: Wed, 18 Feb 2015 07:37:46 -0700
Subject: [PATCH] fixed bitmask to cover all 3 bits vs. 1st and 3rd. Thanks to
 eldonogithub.


diff --git a/modules/rtpengine/rtpengine.c b/modules/rtpengine/rtpengine.c
index ed4e2fe..3254850 100644
--- a/modules/rtpengine/rtpengine.c
+++ b/modules/rtpengine/rtpengine.c
@@ -1251,7 +1251,7 @@ static bencode_item_t *rtpe_function_call(bencode_buffer_t *bencbuf, struct sip_
 		bencode_dictionary_add(ng_flags.dict, "replace", ng_flags.replace);
 	if ((ng_flags.transport & 0x100))
 		bencode_dictionary_add_string(ng_flags.dict, "transport-protocol",
-				transports[ng_flags.transport & 0x005]);
+				transports[ng_flags.transport & 0x007]);
 	if (ng_flags.rtcp_mux && ng_flags.rtcp_mux->child)
 		bencode_dictionary_add(ng_flags.dict, "rtcp-mux", ng_flags.rtcp_mux);