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

Re: [reSIProcate] Method converting SipMessage to char*


Thanks for your answers, I'll try both of them.

Viet

----- Original Message ----
From: Scott Godin <slgodin@xxxxxxxxxxxx>
To: Justin Matthews <jmatthewsr@xxxxxxxxx>; Tuan Viet Nguyen <ntvietv@xxxxxxxxx>; resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
Sent: Tuesday, July 3, 2007 4:54:30 PM
Subject: RE: [reSIProcate] Method converting SipMessage to char*

There is also the following helper to make things easier:

const char* toString = resip::Data::from(myMsg).c_str()

http://www.resiprocate.org/Data_Overview

 

Scott

 

 

From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx] On Behalf Of Justin Matthews
Sent: Tuesday, July 03, 2007 10:45 AM
To: 'Tuan Viet Nguyen'; resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [reSIProcate] Method converting SipMessage to char*

 

Something like this will work:

 

resip::SipMsg *myMsg;

resip::Data data;

resip::DataStream myStream(data);

 

myMsg->encode(myStream);

myStream.flush();

 

const char * toString = data.c_str();

         

 


From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx] On Behalf Of Tuan Viet Nguyen
Sent: Tuesday, July 03, 2007 7:59 AM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] Method converting SipMessage to char*

 

Hello,

Is there a method to convert SipMessage to char* ?

Thanks,
Viet

 


TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.




Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.