mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
tweak the v21 detector to detect an additional pattern of hits and misses
........ Merged revisions 342605 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@342606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -631,7 +631,7 @@ static int v21_detect(struct ast_dsp *dsp, v21_detect_state_t *s, int16_t *amp,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hit) {
|
if (hit) {
|
||||||
if (s->miss_count == 3) {
|
if (s->miss_count == 3 || (s->hit_count == 1 && s->miss_count == 2)) {
|
||||||
s->hit_count++;
|
s->hit_count++;
|
||||||
} else {
|
} else {
|
||||||
s->hit_count = 1;
|
s->hit_count = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user