]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix an issue where dsp.c would interpret multiple dtmf events from a single key press.
authorJonathan Rose <jrose@digium.com>
Thu, 5 Jan 2012 21:55:01 +0000 (21:55 +0000)
committerJonathan Rose <jrose@digium.com>
Thu, 5 Jan 2012 21:55:01 +0000 (21:55 +0000)
commitfbcc23d61eb8fdc816bf49f1d57610d52e08f181
tree3f50c82db5c7a7d703406da109928401f630d4dd
parent3fe594bf03c434f80e44f4f0e659196f51f8ad52
Fix an issue where dsp.c would interpret multiple dtmf events from a single key press.

When receiving calls from a mobile phone into a DISA system on a connection with
significant interference, the reporter's Asterisk system would interpret DTMF incorrectly
and replicate digits received. This patch resolves that by increasing the number of
frames a mismatch has to be detected before assuming the DTMF is over by 1 frame and
adjusts dtmf_detect function to reset hits and misses only when an edge is detected.

(closes issue ASTERISK-17493)
Reported by: Alec Davis
Patches:
bug18904-refactor.diff.txt uploaded by Alec Davis (license 5546)
Review: https://reviewboard.asterisk.org/r/1130/
........

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

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