projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0efa5c5
)
Fix excessive fax detection (Thanks Steve Underwood!!!)
author
Mark Spencer
<markster@digium.com>
Sun, 25 Jan 2004 19:51:01 +0000
(19:51 +0000)
committer
Mark Spencer
<markster@digium.com>
Sun, 25 Jan 2004 19:51:01 +0000
(19:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2068
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
dsp.c
patch
|
blob
|
history
diff --git
a/dsp.c
b/dsp.c
index
60d7ed1
..
b72063a
100755
(executable)
--- a/
dsp.c
+++ b/
dsp.c
@@
-596,7
+596,7
@@
static int dtmf_detect (dtmf_detect_state_t *s,
} /* Don't reset fax hits counter */
}
#else /* OLD_DSP_ROUTINES */
- if (!hit && (fax_energy >= DTMF_TO_TOTAL_ENERGY*s->energy)) {
+ if (!hit && (fax_energy >= FAX_THRESHOLD) && (fax_energy >= DTMF_TO_TOTAL_ENERGY*s->energy)) {
#if 0
printf("Fax energy/Second Harmonic: %f\n", fax_energy);
#endif