0
我正在用PJSIP製作我自己的應用程序,而PJ_LOG不起作用(調用作品)。PJSIP不記錄(Android)
代碼在下方,請幫助! 謝謝!
status = pjsua_create();
if (status != PJ_SUCCESS) error_exit("Error in pjsua_create()", status);
/* Init pjsua */
{
pjsua_config cfg;
pjsua_logging_config log_cfg;
pjsua_config_default(&cfg);
pjsua_logging_config_default(&log_cfg);
cfg.cb.on_incoming_call = &on_incoming_call;
cfg.cb.on_call_media_state = &on_call_media_state;
cfg.cb.on_call_state = &on_call_state;
__android_log_print(ANDROID_LOG_DEBUG,"INIT","PJ_LOG_MAX_LEVEL %d", PJ_LOG_MAX_LEVEL); //PRINT 5!!!
status = pjsua_init(&cfg, &log_cfg, 0);
if (status != PJ_SUCCESS) error_exit("Error in pjsua_init()", status);
}
__android_log_print(ANDROID_LOG_DEBUG,"INIT","PJ_LOG_MAX_LEVEL %d", PJ_LOG_MAX_LEVEL);//PRINT 5!!!
PJ_LOG(1,(THIS_FILE, "Trying log %d", 1));//NOT PRINTING
PJ_LOG(2,(THIS_FILE, "Trying log %d", 2));
PJ_LOG(3,(THIS_FILE, "Trying log %d", 3));
PJ_LOG(4,(THIS_FILE, "Trying log %d", 4));
你可以幫我編譯PJSIP –