From c4bd342bdaae6f8881b0099d596e8309997121cb Mon Sep 17 00:00:00 2001 From: karl anderson Date: Thu, 2 Apr 2015 19:03:41 -0400 Subject: [PATCH] FS-7771 #resolve set a channel var if the recording is terminated due to silence hits --- src/switch_ivr_play_say.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index 506597b263..efd0fbaa0e 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -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 {