提交 c4bd342b authored 作者: karl anderson's avatar karl anderson 提交者: Luis Azedo

FS-7771 #resolve

set a channel var if the recording is terminated due to silence hits
上级 cde97028
......@@ -604,6 +604,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se
switch_channel_set_variable(channel, "RECORD_DATE", NULL);
}
switch_channel_set_variable(channel, "silence_hits_exhausted", "false");
if (!asis) {
codec_name = "L16";
if (switch_core_codec_init(&codec,
......@@ -761,6 +763,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se
if (score < fh->thresh) {
if (!--fh->silence_hits) {
switch_channel_set_variable(channel, "silence_hits_exhausted", "true");
break;
}
} else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论