use of org.pjsip.pjsua2.LogConfig in project vialer-android by VoIPGRID.
the class SipConfig method setSipLogging.
/**
* Configure the logger for the PJSIP library.
* @param endpointConfig
*/
private void setSipLogging(EpConfig endpointConfig) {
endpointConfig.getLogConfig().setLevel(SipConstants.SIP_LOG_LEVEL);
endpointConfig.getLogConfig().setConsoleLevel(SipConstants.SIP_CONSOLE_LOG_LEVEL);
LogConfig logConfig = endpointConfig.getLogConfig();
mSipLogWriter = new SipLogWriter();
mSipLogWriter.enabledRemoteLogging(mRemoteLogger);
logConfig.setWriter(mSipLogWriter);
logConfig.setDecor(logConfig.getDecor() & ~(pj_log_decoration.PJ_LOG_HAS_CR.swigValue() | pj_log_decoration.PJ_LOG_HAS_NEWLINE.swigValue()));
}
Aggregations