Search code examples
sippjsip

PJSUA: verbosity of debug information on the application console


If I create an application using PJSUA, then after the pjsua_create() system call, a huge amount of debugging information falls onto the console of my application. This is convenient at the development stage, but after it interferes with the work with programm.

How can you predefine verbosity level of this debugging information? So that when pjsua_create() is called, it is already set.

Thank you for the informative answers.


Solution

  • You can do this by calling pj_log_set_level(int level) (link) for example before pj_init(). Also you can define PJ_LOG_MAX_LEVEL const in config_site.h with value suited to your needs at compilation time.

    This also may be interesting for you (link).