mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Merged revisions 328162 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.10 ........ r328162 | mnicholson | 2011-07-14 12:46:32 -0500 (Thu, 14 Jul 2011) | 3 lines tune the v21 preamble detector to properly detect the desired sequence of hits and misses ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@328163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -624,10 +624,10 @@ static int v21_detect(struct ast_dsp *dsp, v21_detect_state_t *s, int16_t *amp,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hit) {
|
if (hit) {
|
||||||
if (s->hit_count == 0 || s->miss_count == 3) {
|
if (s->miss_count == 3) {
|
||||||
s->hit_count++;
|
s->hit_count++;
|
||||||
} else {
|
} else {
|
||||||
s->hit_count = 0;
|
s->hit_count = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
s->miss_count = 0;
|
s->miss_count = 0;
|
||||||
|
Reference in New Issue
Block a user