summaryrefslogtreecommitdiff
path: root/dsp.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-01-25 19:51:01 +0000
committerMark Spencer <markster@digium.com>2004-01-25 19:51:01 +0000
commit01d62f822d27f4ba467b82eb3ede49d76f7e646b (patch)
treecf6d77ce2881ac03011728eb46422060fd7461f8 /dsp.c
parent0efa5c562a8272808af257e83007abfb02e5e754 (diff)
Fix excessive fax detection (Thanks Steve Underwood!!!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'dsp.c')
-rwxr-xr-xdsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dsp.c b/dsp.c
index 60d7ed1a7..b72063a2e 100755
--- 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