Fix YADB (Yet Another DTMF Bug) ((C) Russell Bryant, 2007, TM, Patent Pending).
commitcfdd072d74f59b1d0248097232baa6cee6296fd7
authorrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Thu, 3 May 2007 15:23:13 +0000 (3 15:23 +0000)
committerrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Thu, 3 May 2007 15:23:13 +0000 (3 15:23 +0000)
treee1b2067758238e825136a9b0953ca78b4d49bc3e
parent2e11a9b69a6a7dfedb711bf6c337a58b71983e68
Fix YADB (Yet Another DTMF Bug) ((C) Russell Bryant, 2007, TM, Patent Pending).

This set of changes came from a debugging session I had with Dwayne Hubbard.
When he called into his home FXO, ran the Echo application, and pressed a
digit, the digit would be echoed back and would never end.  This is fixed,
along with a couple other little improvements.

* When chan_zap is in the middle of playing a digit to a channel, it feeds
  back null frames, not voice frames.  So, I have modified ast_read to check
  the timing on emulated DTMF when it receives null frames, in addition to
  where it was doing this on voice frames.
* Make a tweak to setting the duration on emulated DTMF digits.  If there was
  no duration specified, it set it to be the minimum, instead of the default.
* Instead of timing the emulated digits off of the number of samples in audio
  frames that pass through, just use time values.  Now there is no code in this
  section that assumes 8kHz audio.

git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62942 614ede4d-c843-0410-af14-a771ab80d22e
main/channel.c