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.