Merge pull request #318 in FS/freeswitch from ~LAZEDO/freeswitch:feature/silence_hits_exausted to master

* commit 'c4bd342bdaae6f8881b0099d596e8309997121cb':
  FS-7771 #resolve
This commit is contained in:
Mike Jerris 2015-07-03 15:11:27 -05:00
commit 1a47cd0d44
1 changed files with 3 additions and 0 deletions

View File

@ -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 {