[reSIProcate] media-specific connection addresses
Hi
I'm playing around with adding connections to each media in SDP that
we're building. I am seeing SDP like this in the resiprocate v1.0
trace file:
s=SIP Engine
c=IN IP4 10.1.100.106
t=0 0
m=audio 58024 RTP/AVP 103 0 8 102 18 98 99 106 13 105
c=IN IP4 10.1.100.106
a=rtpmap:103 ISAC/16000
So, when I am processing the offer inside my onOffer() handler, I expect that:
media.GetConnections.size() == 1
media.getConnections().front().getAddress().c_str() == "10.1.100.106";
I am seeing some strange behavior in debug mode compiled with VS2003 -
what happens is that everything works fine if I'm running under the
debugger, but if I trace out these values without running under the
debugger I am getting junk back(for the address; the size is correctly
1). Has anyone seen something like this and konw what I am doing
wrong? Perhaps it has something to do with lazy parsing?
Thanks,
Neal