[sr-dev] Bug in sdp parser

Vicente Hernando vhernando at systemonenoc.com
Thu Sep 6 17:41:16 CEST 2012


Hello,

if we have a SDP content like this one:

       v=0
       o=alice 2890844526 2890844527 IN IP4 host.example.com
       s=
       c=IN IP4 session.foo.org
       t=0 0
       m=audio 49170 RTP/AVP 97
       c=IN IP4 stream.bar.org
       a=rtpmap:97 iLBC/8000
       m=audio 49170 RTP/AVP 97
       a=rtpmap:97 iLBC/8000
       m=audio 49170 RTP/AVP 97
       c=IN IP4 bar.baz.net
       a=rtpmap:97 iLBC/8000


When parsing this function three streams are created:

first one will have ip_addr string equal to "stream.bar.org"

second one: "stream.bar.org"   <-- Wrong! it is using same as first one, 
instead using session default

third one: "bar.baz.net"


Attached patch solves it.

Kind regards,
Vicente.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdp_parser_bug.patch
Type: text/x-diff
Size: 408 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20120906/e5e470ae/attachment.patch>


More information about the sr-dev mailing list