[reSIProcate] Method converting SipMessage to char*
Scott Godin
slgodin at icescape.com
Tue Jul 3 09:54:30 CDT 2007
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 at list.resiprocate.org
[mailto:resiprocate-devel-bounces at list.resiprocate.org] On Behalf Of
Justin Matthews
Sent: Tuesday, July 03, 2007 10:45 AM
To: 'Tuan Viet Nguyen'; resiprocate-devel at list.resiprocate.org
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 at list.resiprocate.org
[mailto:resiprocate-devel-bounces at list.resiprocate.org] On Behalf Of
Tuan Viet Nguyen
Sent: Tuesday, July 03, 2007 7:59 AM
To: resiprocate-devel at list.resiprocate.org
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"
<http://us.rd.yahoo.com/evt=49979/*http:/tv.yahoo.com/> on Yahoo! TV.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070703/3f85ac98/attachment.htm>
More information about the resiprocate-devel
mailing list