提交 2d9184f6 authored 作者: Michael Jerris's avatar Michael Jerris

dont flood logs with eavesdrop messages (MODAPP-101)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8874 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 045a2999
...@@ -304,7 +304,9 @@ SWITCH_STANDARD_APP(eavesdrop_function) ...@@ -304,7 +304,9 @@ SWITCH_STANDARD_APP(eavesdrop_function)
} }
if (e_data.total) { if (e_data.total) {
for (x = 0; x < e_data.total && switch_channel_ready(channel); x++) { for (x = 0; x < e_data.total && switch_channel_ready(channel); x++) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Spy: %s\n", e_data.uuid_list[x]); /* If we have a group and 1000 concurrent calls, we will flood the logs. This check avoids this */
if ( !require_group )
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Spy: %s\n", e_data.uuid_list[x]);
if ((file = switch_channel_get_variable(channel, "eavesdrop_indicate_new"))) { if ((file = switch_channel_get_variable(channel, "eavesdrop_indicate_new"))) {
switch_ivr_play_file(session, NULL, file, NULL); switch_ivr_play_file(session, NULL, file, NULL);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论