[reSIProcate] sdp session creation.
John Draper
lists at webcrunchers.com
Sat Dec 10 18:27:44 CST 2005
Alan Hawrylyshen wrote:
I think I figured out why I'm not posting to the list. I often
send my Email from my other account, and mail to individuals
goes through, but the list mail bounces when I send from any
address other then "lists at webcrunchers.com", so it never
winds up on the list. Sorry - I'll try to remember to send
from "lists" this time.
> testSdp.cxx --
> sdp.session().connection().getAddress() = Data("10.1.1.1");
> etc.
Aha... and that assumes that if I have a char *ip
I can do....
sdp.session().connection().getAddress() = Data(ip);
In this block... from testSdp.cxx
{
Data txt("v=0\r\n"
"o=1900 369696545 369696545 IN IP4 192.168.2.15\r\n"
"s=X-Lite\r\n"
"c=IN IP4 192.168.2.15\r\n"
"t=0 0\r\n"
"m=audio 8000 RTP/AVP 8 3 98 97 101\r\n"
"a=rtpmap:8 pcma/8000\r\n"
"a=rtpmap:3 gsm/8000\r\n"
"a=rtpmap:98 iLBC\r\n"
"a=rtpmap:97 speex/8000\r\n"
"a=rtpmap:101 telephone-event/8000\r\n"
"a=fmtp:101 0-15\r\n");
HeaderFieldValue hfv(txt.data(), txt.size());
Mime type("application", "sdp");
SdpContents sdp(&hfv, type);
assert(sdp.session().media().front().codecs().size() == 4);
}
This asserts codec size is 4, but which one of these entries above
specify a "4" - I don't see a "4" anywhere in the above "sdp" record,
why is that? Where did the 4 come from?
BTW - I want to thank you very much for clarifying this for me.
I've never used the "Data" object before.
Some examples I've found are most helpful.
John
More information about the resiprocate-devel
mailing list