Re: i4l dtmf errors
Matti Aarnio <[email protected]> Thu, 12 Dec 2002 14:10:04 +0200
| Newsgroups | gmane.linux.isdn |
|---|---|
| Message-ID | <20021212121004.GC32122__13891.7434066117$1039695425@mea-ext.zmailer.org> |
This is possibly more of [email protected] list thing, than linux-kernel per se. On Thu, Dec 12, 2002 at 11:45:26AM +0100, Roy Sigurd Karlsbakk wrote: > hi >=20 > it seems isdn4linux detects DTMF tones from normal speach. This is ra= ther=20 > annoying when using i4l for voice with Asterisk.org. This is tested o= n all=20 > recent kernels >=20 > see thread "[MGCP] Asterisk/D-Link phones generates ugly DTMF tones!!= !" at=20 > http://www.marko.net/asterisk/archives/ for more info. Quick reading of drivers/isdn/isdn_audio.c(*) shows that it does us= e fixed-point G=F6rtzel (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. http://www.numerix-dsp.com/goertzel.html 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 kerne= l > roy > --=20 > Roy Sigurd Karlsbakk, Datavaktmester > ProntoTV AS - http://www.pronto.tv/ > Tel: +47 9801 3356 /Matti Aarnio - To unsubscribe from this list: send the line "unsubscribe linux-isdn" i= n the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html