< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] SDP Contents not getting created.....


Leon Thrane wrote:

Also, I see my mail client has eliminated the newlines in my original
snippet. Here it is again hopefully with newlines.

UInt64 sessionId = time (0); // note that this really should be an NTP
time value SdpContents::Session::Origin sdpOrigin ("-", sessionId,
sessionId, SdpContents::IP4, <ip-address>);

SdpContents::Session sdpSession(0, sdpOrigin , "-");

sdpSession.connection () = SdpContents::Session::Connection
(SdpContents::IP4, <ip-address>);

sdpSession.addTime (SdpContents::Session::Time (0, 0));

SdpContents::Session::Medium sdpMedium ("audio", 10000, 0, "RTP/AVP");

sdpMedium.addCodec (SdpContents::Session::Codec::ULaw_8000);

sdpSession.addMedium (sdpMedium);

SdpContents sdpOffer;

sdpOffer.session () = sdpSession;
Actually, the other message came through OK.... Thanx... this was most helpful.

John