[reSIProcate] Method converting SipMessage to char*
Tuan Viet Nguyen
ntvietv at yahoo.com
Thu Jul 5 02:50:36 CDT 2007
Yes, it does, I forgot to dereference the pointer :)
Thanks very much
Viet
----- Original Message ----
From: Jason Fischl <jason at counterpath.com>
To: Tuan Viet Nguyen <ntvietv at yahoo.com>
Cc: Scott Godin <slgodin at icescape.com>; Justin Matthews <jmatthewsr at gmail.com>; resiprocate-devel at list.resiprocate.org
Sent: Wednesday, July 4, 2007 2:34:55 PM
Subject: Re: [reSIProcate] Method converting SipMessage to char*
It does.
By any chance were you doing this on a SipMessage*. If so, you need to
dereference the pointer.
On 7/4/07, Tuan Viet Nguyen <ntvietv at yahoo.com> wrote:
>
> Hello,
>
> The first one worked but not the second one. SipMessage doesn't have the
> "<<" method.
>
> Thanks
> Viet
>
>
> ----- Original Message ----
> From: Tuan Viet Nguyen <ntvietv at yahoo.com>
> To: Scott Godin <slgodin at icescape.com>; Justin Matthews
> <jmatthewsr at gmail.com>;
> resiprocate-devel at list.resiprocate.org
> Sent: Tuesday, July 3, 2007 5:11:45 PM
> Subject: Re: [reSIProcate] Method converting SipMessage to char*
>
>
> 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*
>
>
>
>
> 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.
>
> ________________________________
> Expecting? Get great news right away with email Auto-Check.
> Try the Yahoo! Mail Beta.
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>
> ________________________________
> Choose the right car based on your needs. Check out Yahoo! Autos new Car
> Finder tool.
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070705/4b220490/attachment.htm>
More information about the resiprocate-devel
mailing list