mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Fix excessive fax detection (Thanks Steve Underwood!!!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
dsp.c
2
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
|
||||
|
Reference in New Issue
Block a user