From: Anthony Minessale Date: Thu, 19 Jan 2017 16:51:24 +0000 (-0600) Subject: FS-9958 X-Git-Tag: v1.8.0~901 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1918f29671e9f3d510b7314c12f344bed83ec521;p=thirdparty%2Ffreeswitch.git FS-9958 --- 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;