Module: sip-router Branch: master Commit: 971386c346d72a016d00c8808059bd4f0a050059 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=971386c3...
Author: Vicente Hernando vhernando@systemonenoc.com Committer: Vicente Hernando vhernando@systemonenoc.com Date: Fri Sep 7 07:01:11 2012 -0400
core: Fix parser sdp bug. Reset connection IP for each stream.
If connection IP is not reset, then when a stream has no IP connection, it uses former stream one instead of session default one.
---
parser/sdp/sdp.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/parser/sdp/sdp.c b/parser/sdp/sdp.c index fb51f3f..134a676 100644 --- a/parser/sdp/sdp.c +++ b/parser/sdp/sdp.c @@ -449,6 +449,8 @@ static int parse_sdp_session(str *sdp_body, int session_num, str *cnt_disp, sdp_ /* c2p will point to per-media "c=" */ c2p = find_sdp_line(m1p, m2p, 'c');
+ sdp_ip.s = NULL; + sdp_ip.len = 0; if (c2p) { /* Extract stream address */ tmpstr1.s = c2p;