diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-25 19:51:01 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-25 19:51:01 +0000 |
commit | 943c1a0cfb540d98ec1034bfed772c083ac81f31 (patch) | |
tree | cf6d77ce2881ac03011728eb46422060fd7461f8 /dsp.c | |
parent | 4bb7e4fd7e6bf128aed376d2c1404b2043faa8f8 (diff) |
Fix excessive fax detection (Thanks Steve Underwood!!!)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2068 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'dsp.c')
-rwxr-xr-x | dsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |