Print Data Packet in Console

15 views
Skip to first unread message

Fatemeh

unread,
Jun 14, 2011, 2:52:54 AM6/14/11
to Siphon
Hi dears,
I need to log data packet and check it, I checked PJSIP functions and
found PJ_Log, I used it but this did not log on console( I added this
code in pjsua_im.c file in pjsua_im_send function)

PJ_LOG(1,(THIS_FILE,
"UDP Packet \'%s\'",
im_data));

I did test level 2,3,4;
I'm not sure how can I do that and using PJ_LOG is true or not. Can I
use NSLog in PJSip Libs?
Thanks for your help.

Samuel Vinson

unread,
Jun 15, 2011, 4:44:07 PM6/15/11
to sip...@googlegroups.com
Hi,

This is a pjsip question ;-)
You have to define the console log level to enable the log in the console.

Regards

Samuel

2011/6/14 Fatemeh <fa.sh...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Siphon" group.
To post to this group, send email to sip...@googlegroups.com.
To unsubscribe from this group, send email to siphon+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/siphon?hl=en.


Reply all
Reply to author
Forward
0 new messages