[Asterisk-cvs] asterisk dsp.c,1.18,1.19
markster at lists.digium.com
markster at lists.digium.com
Sun Jan 25 13:59:03 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv4025
Modified Files:
dsp.c
Log Message:
Fix excessive fax detection (Thanks Steve Underwood!!!)
Index: dsp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/dsp.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- dsp.c 13 Jan 2004 20:05:22 -0000 1.18
+++ dsp.c 25 Jan 2004 19:51:01 -0000 1.19
@@ -596,7 +596,7 @@
} /* 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
More information about the svn-commits
mailing list