From: Matthew Nicholson Date: Thu, 27 Oct 2011 20:10:12 +0000 (+0000) Subject: tweak the v21 detector to detect an additional pattern of hits and misses X-Git-Tag: 10.0.0-rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16a68810bf2a935c52329c65439c5ea70989b9f9;p=thirdparty%2Fasterisk.git tweak the v21 detector to detect an additional pattern of hits and misses git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@342605 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/dsp.c b/main/dsp.c index 7ce4bf0c86..53172d925a 100644 --- a/main/dsp.c +++ b/main/dsp.c @@ -629,7 +629,7 @@ static int v21_detect(struct ast_dsp *dsp, v21_detect_state_t *s, int16_t *amp, } if (hit) { - if (s->miss_count == 3) { + if (s->miss_count == 3 || (s->hit_count == 1 && s->miss_count == 2)) { s->hit_count++; } else { s->hit_count = 1;