]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix infinite DTMF when a BEGIN is received without an END.
authorRussell Bryant <russell@russellbryant.com>
Mon, 23 Feb 2009 23:09:01 +0000 (23:09 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 23 Feb 2009 23:09:01 +0000 (23:09 +0000)
commitaa5a927b694ef7e08b9ac418345fd2525b330543
treee5a58705051e2ef6d56d793a60da32413a98d81a
parent4af01752853d0e9205092da21d61f09606aa2141
Fix infinite DTMF when a BEGIN is received without an END.

This commit is related to rev 175124 of 1.4 where a previous attempt was made
to fix this problem.  The problem with the previous patch was that the inserted
code needed to go _before_ setting the lastrxts to the current timestamp.
Because those were the same, the dtmfcount variable was never decremented, and
so the END was never sent.

In passing, I removed the dtmfsamples variable which was completed unused.  I
also removed a redundant setting of the lastrxts variable.

(closes issue #14460)
Reported by: moliveras

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@178141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/rtp.c