[sr-dev] Bug in sdp parser

Daniel-Constantin Mierla miconda at gmail.com
Mon Oct 8 15:58:05 CEST 2012


Hello,

missed this message -- crazy autumn so far -- it is good to re-ask after 
a while if no answer is given, sometimes there are so many messages is 
short interval.

Go ahead and commit the patch.

Thanks,
Daniel

On 9/6/12 5:41 PM, Vicente Hernando wrote:
> 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.
>
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - http://asipto.com/u/katu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20121008/7fd56734/attachment.htm>


More information about the sr-dev mailing list