提交 4307bee1 authored 作者: Ken Rice's avatar Ken Rice

FS-4100 --resolve

上级 40c255b4
...@@ -669,7 +669,7 @@ SWITCH_STANDARD_SCHED_FUNC(zrtp_cache_save_callback) ...@@ -669,7 +669,7 @@ SWITCH_STANDARD_SCHED_FUNC(zrtp_cache_save_callback)
zrtp_status_t status = zrtp_status_ok; zrtp_status_t status = zrtp_status_ok;
status = zrtp_def_cache_store(zrtp_global); status = zrtp_def_cache_store(zrtp_global);
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Saving ZRTP cache: %s\n", zrtp_status_ok == status ? "OK" : "FAIL"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Saving ZRTP cache: %s\n", zrtp_status_ok == status ? "OK" : "FAIL");
task->runtime = switch_epoch_time_now(NULL) + 900; task->runtime = switch_epoch_time_now(NULL) + 900;
} }
...@@ -828,7 +828,7 @@ static void zrtp_event_callback(zrtp_stream_t *stream, unsigned event) ...@@ -828,7 +828,7 @@ static void zrtp_event_callback(zrtp_stream_t *stream, unsigned event)
static void zrtp_logger(int level, const char *data, int len, int offset) static void zrtp_logger(int level, const char *data, int len, int offset)
{ {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s", data); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s", data);
} }
#endif #endif
...@@ -869,7 +869,7 @@ SWITCH_DECLARE(void) switch_rtp_init(switch_memory_pool_t *pool) ...@@ -869,7 +869,7 @@ SWITCH_DECLARE(void) switch_rtp_init(switch_memory_pool_t *pool)
} else { } else {
switch_core_set_variable("zrtp_enabled", NULL); switch_core_set_variable("zrtp_enabled", NULL);
zrtp_on = 0; zrtp_on = 0;
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_CRIT, "ZRTP init failed!\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "ZRTP init failed!\n");
} }
} }
...@@ -4080,12 +4080,12 @@ static int rtp_common_write(switch_rtp_t *rtp_session, ...@@ -4080,12 +4080,12 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
case zrtp_status_ok: case zrtp_status_ok:
break; break;
case zrtp_status_drop: case zrtp_status_drop:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Error: zRTP protection drop with code %d\n", stat); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error: zRTP protection drop with code %d\n", stat);
ret = (int) bytes; ret = (int) bytes;
goto end; goto end;
break; break;
case zrtp_status_fail: case zrtp_status_fail:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Error: zRTP protection fail with code %d\n", stat); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error: zRTP protection fail with code %d\n", stat);
break; break;
default: default:
break; break;
...@@ -4412,12 +4412,12 @@ SWITCH_DECLARE(int) switch_rtp_write_manual(switch_rtp_t *rtp_session, ...@@ -4412,12 +4412,12 @@ SWITCH_DECLARE(int) switch_rtp_write_manual(switch_rtp_t *rtp_session,
case zrtp_status_ok: case zrtp_status_ok:
break; break;
case zrtp_status_drop: case zrtp_status_drop:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Error: zRTP protection drop with code %d\n", stat); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error: zRTP protection drop with code %d\n", stat);
ret = (int) bytes; ret = (int) bytes;
goto end; goto end;
break; break;
case zrtp_status_fail: case zrtp_status_fail:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Error: zRTP protection fail with code %d\n", stat); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error: zRTP protection fail with code %d\n", stat);
break; break;
default: default:
break; break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论