[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 committed 2021-10-23 21:59:49 +03:00
1 parent 623fecd599
commit e51bbea7ca
2 files changed
+13 -5

No files matched your search

@@ -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;
}