[mod_dptools]: wait_for_silence does not allow the listen_hits parameter to be a value of 0

This commit is contained in:
Andrey Volk
2019-10-15 20:55:34 +04:00
parent 623fecd599
commit e51bbea7ca
2 changed files with 13 additions and 5 deletions

View File

@@ -4591,7 +4591,7 @@ SWITCH_STANDARD_APP(wait_for_silence_function)
timeout_ms = switch_atoui(argv[3]);
}
if (thresh > 0 && silence_hits > 0 && listen_hits > 0) {
if (thresh > 0 && silence_hits > 0 && listen_hits >= 0) {
switch_ivr_wait_for_silence(session, thresh, silence_hits, listen_hits, timeout_ms, argv[4]);
return;
}