Merged revisions 178141 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Mon, 23 Feb 2009 23:11:37 +0000 (23:11 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 23 Feb 2009 23:11:37 +0000 (23:11 +0000)
commit5c178fb42b3b8e7b814c2be0971daec37b29f6a2
tree30b6ce43e197cf018e17740550639a9bf1eb9dbc
parent345a6fd1cb6e06acd0f0d8754b32ff85e3395e29
Merged revisions 178141 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r178141 | russell | 2009-02-23 17:09:01 -0600 (Mon, 23 Feb 2009) | 14 lines

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/trunk@178142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/rtp.c