On Thu, Dec 12, 2002 at 11:45:26AM +0100, Roy Sigurd Karlsbakk wrote:
> it seems isdn4linux detects DTMF tones from normal speach. This is rather
> annoying when using i4l for voice with Asterisk.org. This is tested on all
> recent kernels
> see thread "[MGCP] Asterisk/D-Link phones generates ugly DTMF tones!!!" at
> http://www.marko.net/asterisk/archives/ for more info.
Quick reading of drivers/isdn/isdn_audio.c(*) shows that it does use
fixed-point Görtzel (Goertzel in english) algorithm for detecting
tones, but it does _not_ do comparison of received overall signal
power vs. detected DTMF tone powers.
When there is signal power outside the DTMF channels, signal should
not be detected. Also, DTMF tone powers should be roughly equal,
and exactly two tones should be present for valid detection.
Adding those power tests should be fairly trivial, but I leave it
to Somebody Else...
(*) kernel version I looked upon was 2.4.16-0.11custom -- some RH kernel
> Roy Sigurd Karlsbakk, Datavaktmester
> ProntoTV AS - http://www.pronto.tv/
> Tel: +47 9801 3356
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/