Fix crash in DTMF detection.
authorTilghman Lesher <tilghman@meg.abyt.es>
Sat, 5 Jun 2010 17:55:28 +0000 (17:55 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sat, 5 Jun 2010 17:55:28 +0000 (17:55 +0000)
commit47ad8c27f562097af8198bbfccdf06f0838e169e
tree2ba3d8e17d3c9b8857a5797fbf11cf8541c56ff9
parent0807833f8d3395ade44318cdafe0c84e681dbd09
Fix crash in DTMF detection.

What I did not originally see in my previous commit was that even though the
next digit could be detected before the previous was considered ended, the
detection of the next digit effectively ends the detection of the previous.
Therefore, the length moves in lockstep with the digit, and no separate counter
is needed for the length alone.

(closes issue #17371)
 Reported by: alecdavis

(closes issue #17474)
 Reported by: kenner

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