[sr-dev] git:master: rtpengine: fix encoding of "direction" flag

Richard Fuchs rfuchs at sipwise.com
Tue Sep 16 16:41:48 CEST 2014


Module: sip-router
Branch: master
Commit: 640206f068ec5c52edd4c23399a99ef8a9e3b753
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=640206f068ec5c52edd4c23399a99ef8a9e3b753

Author: Richard Fuchs <rfuchs at sipwise.com>
Committer: Richard Fuchs <rfuchs at sipwise.com>
Date:   Tue Sep 16 10:41:43 2014 -0400

rtpengine: fix encoding of "direction" flag

---

 modules/rtpengine/rtpengine.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/rtpengine/rtpengine.c b/modules/rtpengine/rtpengine.c
index 063e3d1..b5960b2 100644
--- a/modules/rtpengine/rtpengine.c
+++ b/modules/rtpengine/rtpengine.c
@@ -1236,12 +1236,13 @@ static int parse_flags(struct ng_flags_parse *ng_flags, struct sip_msg *msg, enu
 				break;
 
 			case 9:
-				if (str_eq(&key, "RTP/SAVPF")) {
+				if (str_eq(&key, "RTP/SAVPF"))
 					ng_flags->transport = 0x103;
-					goto next;
-				}
 				else if (str_eq(&key, "direction"))
 					bencode_list_add_str(ng_flags->direction, &val);
+				else
+					goto generic;
+				goto next;
 				break;
 
 			case 10:




More information about the sr-dev mailing list