I'm using CSipSimple for android and trying to set log callback to receive pjsip library log messages. In log configuration there is a function setCb but I don't understand how declare callback and use it.
pjsua_logging_config logCfg = new pjsua_logging_config();
logCfg.setLevel(1);
logCfg.setMsg_logging(pjsuaConstants.PJ_TRUE);
logCfg.setCb(?????);
In CSipSimple pjsua_logging_config setCb declared as:
public void setCb(SWIGTYPE_p_f_int_p_q_const__char_int__void value) {
pjsuaJNI.pjsua_logging_config_cb_set(swigCPtr, this, SWIGTYPE_p_f_int_p_q_const__char_int__void.getCPtr(value));
In pjsip - http://www.pjsip.org/pjsip/docs/html/structpjsua__logging__config.htm
Thanks for any help.