How to print SIP message text in pjsip_tx_data?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello allo PJSIP experts,


I have now a problem with logging SIP messages, which are sent out.


I am using the following code to do it at this moment:
PJ_LOG(5,(tsx->obj_name, "===>Raw data:\n%s", (tdata &&
tdata->buf.start)?tdata->buf.start:"NULL"));

but sometime it gets "NULL" back, and sometimes it works fine.


Must I call "pjsip_tx_data_invalidate_msg" before using the buf?

Is there any other way to printf the SIP message out?


Thanks a lot

Regards,

Pai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130304/157809c7/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux