]> git.ipfire.org Git - thirdparty/asterisk.git/commit
dsp.c: Fix erroneous fax tone detection. 51/3351/1
authorRichard Mudgett <rmudgett@digium.com>
Fri, 22 Jul 2016 03:28:25 +0000 (22:28 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 26 Jul 2016 16:53:14 +0000 (11:53 -0500)
commit7809034c0dff1dae870a7a858d79d5f6c3993c0e
tree7fd21b7e05cb17c34378178df14c3dfef61e98e2
parent19f0dc1ded5a287b433a5ac660692c9ecf64eb97
dsp.c: Fix erroneous fax tone detection.

The Goertzel calculations get less accurate the lower the signal level
being worked with becomes because there is less resolution remaining.
If it is too low we can erroneously detect a tone where none really
exists.  The searched for fax frequencies not only need to be so much
stronger than the background noise they must also be a minimum strength.

* Add needed minimum threshold test to tone_detect().

* Set TONE_THRESHOLD to allow low volume frequency spread detection.

ASTERISK-26237 #close
Reported by: Richard Mudgett

Change-Id: I84dbba7f7628fa13720add6a88eae3b129e066fc
main/dsp.c