On Sat, 2008-11-29 at 10:41 -0500, Scott Lawrence wrote: > On Fri, 2008-11-28 at 11:23 +0530, VG wrote: > > Hi, > > > > I like to print a sip message in log file. > > > > But i did not find any inbuilt function regarding it. > > > > Please tell me if there is any method to convert a sip message into char* > > for logging purpose. > > SipMessage::getBytes
Which is inherited from HttpMessage::getBytes. Note that both versions of this method return a pointer to allocated memory which the caller must free. (Though in a debugging environment, you can omit freeing it, since you won't call getBytes very many times.) Dale _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
