[reSIProcate] Method converting SipMessage to char*

Tuan Viet Nguyen ntvietv at yahoo.com
Tue Jul 3 16:11:45 CDT 2007


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

Viet

----- Original Message ----
From: Scott Godin <slgodin at icescape.com>
To: Justin Matthews <jmatthewsr at gmail.com>; Tuan Viet Nguyen <ntvietv at yahoo.com>; resiprocate-devel at list.resiprocate.org
Sent: Tuesday, July 3, 2007 4:54:30 PM
Subject: RE: [reSIProcate] Method converting SipMessage to char*




 
 


<!--
 _filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
 _filtered {font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
a:link, span.MsoHyperlink
	{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;text-decoration:underline;}
span.EmailStyle17
	{font-family:"Verdana", "sans-serif";color:navy;font-weight:normal;font-style:normal;text-decoration:none none;}
span.EmailStyle18
	{font-family:"Calibri", "sans-serif";color:#1F497D;}
.MsoChpDefault
	{font-size:10.0pt;}
 _filtered {margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{}
-->






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" on Yahoo! TV.
 













 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070703/95bcf5de/attachment.htm>


More information about the resiprocate-devel mailing list