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

RE: [reSIProcate] How do I extract an "sdp" record into a string.


hi john draper,
using following code u r able to get whole Sdp in form of char*.

sdp = new SdpContents(hfv, type);

char *mysdpAsString = (char*) Data::from(*sdp).c_str();

regards,
parag patel

-----Original Message-----
From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx]On Behalf Of John
Draper
Sent: Monday, October 31, 2005 2:46 PM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] How do I extract an "sdp" record into a string.


Hi,

I have a pointer to a "SdpContents" object,  like so:

   sdp = new SdpContents(hfv, type);

Now I want to put this into a string,  how do I do it?

  char *mysdpAsString = <what do I do here?>

John
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel