diff --git a/src/switch_ivr.c b/src/switch_ivr.c index c328e177f1..24f177355a 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -2946,7 +2946,7 @@ SWITCH_DECLARE(void) switch_ivr_delay_echo(switch_core_session_t *session, uint3 } - qlen = delay_ms / (interval) / 2; + qlen = delay_ms / (interval); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Setting delay to %dms (%d frames)\n", delay_ms, qlen); jb = stfu_n_init(qlen, qlen, read_impl.samples_per_packet, read_impl.samples_per_second, 0);