From 1918f29671e9f3d510b7314c12f344bed83ec521 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 19 Jan 2017 10:51:24 -0600 Subject: [PATCH] FS-9958 --- src/switch_resample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_resample.c b/src/switch_resample.c index 4a1bebedfd..1338303309 100644 --- a/src/switch_resample.c +++ b/src/switch_resample.c @@ -503,7 +503,7 @@ SWITCH_DECLARE(switch_status_t) switch_agc_feed(switch_agc_t *agc, int16_t *data agc->score_over = 0; } - if (agc->score_avg < agc->energy_avg - agc->margin && agc->score_avg > agc->low_energy_point) { + if (agc->score_avg < agc->energy_avg - agc->margin && (agc->vol < 0 || agc->score_avg > agc->low_energy_point)) { agc->score_under++; } else { agc->score_under = 0;