[reSIProcate] How do I obtain textual representation of an "sdp" record.
Hi,
I have a "SiPMessage" I get back from onConnected after a sucessful Invite.
I get my Sdp record like this...
SdpContents *sdp = (SdpContents *)msg.getContents();
I want to somehow convert this into a "Char *" pointing to
text not unlike what you see below. Or at least return
a Data object, which I can just get it from the c_str()
method.. There is an "information" method that returns
a Data, is that it?
What is the proper syntax for constructing this code?
Yea - I know it might fall in the category of C++ question,
but I'm out of town and don't happen to have my trusty
C++ reference book handy.
v=0
o=- 0 0 IN IP4 192.168.2.102
s=WhitePhone Mac
c=IN IP4 192.168.2.102
b=CT:1000
t=0 0
m=audio 5004 RTP/AVP 3 101
a=fmtp:101 0-15
a=rtpmap:3 gsm/8000
a=rtpmap:101 telephone-event/8000
John