]> git.ipfire.org Git - thirdparty/asterisk.git/commit
dsp.c: Fix multiple issues when no-interdigit delay is present, and fast DTMF 50ms...
authorAlec L Davis <sivad.a@paradise.net.nz>
Wed, 5 Sep 2012 07:41:10 +0000 (07:41 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Wed, 5 Sep 2012 07:41:10 +0000 (07:41 +0000)
commit34a332ef3537260fcd08acf41b487dc427b9bdc1
tree6831435785ed40f73d5c4b091605059e0f5c109a
parente225712ae556929eb001289c9f4b2e7a8b6eeba8
dsp.c: Fix multiple issues when no-interdigit delay is present, and fast DTMF 50ms/50ms

Revert DTMF hit/miss detector to original -r349249 method with some changes, remove unnecessary;
  1. reseting of hits=0, when no signal, only need to set it once.
  2. incrementing of hits, when the hit is the same as the current hit.
  3. setting of lasthit, when it's the same as before.

Change HITS_TO_BEGIN to 2, MISSES_TO_END to 3

& 3 spelling mistakes

(closes issue ASTERISK-19610)
alecdavis (license 585)
Reported by: Jean-Philippe Lord
Tested by: alecdavis

Review: https://reviewboard.asterisk.org/r/2085/
........

Merged revisions 372239 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 372240 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@372241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/dsp.c