void _belle_sip_log(belle_sip_log_level lev, const char *fmt, va_list args) { int ortp_level; switch(lev) { case BELLE_SIP_LOG_FATAL: ortp_level=ORTP_FATAL; break; case BELLE_SIP_LOG_ERROR: ortp_level=ORTP_ERROR; break; case BELLE_SIP_LOG_WARNING: ortp_level=ORTP_WARNING; break; case BELLE_SIP_LOG_MESSAGE: ortp_level=ORTP_MESSAGE; break; case BELLE_SIP_LOG_DEBUG: default: ortp_level=ORTP_DEBUG; break; } if (ortp_log_level_enabled(ortp_level)){ ortp_logv(ortp_level,fmt,args); } }
void alsa_error_log_handler(const char *file, int line, const char *function, int err, const char *fmt, ...) { va_list args; va_start (args, fmt); ortp_logv(ORTP_MESSAGE, fmt, args); va_end (args); }