]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Revert RTP changes for continuation of DTMF. Proxy commit by russell via SMS.
authorJoshua Colp <jcolp@digium.com>
Thu, 12 Feb 2009 00:19:30 +0000 (00:19 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 12 Feb 2009 00:19:30 +0000 (00:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@174997 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index b394cf2855b185063dc94fa54308e99d3b516c3e..5165ade83c96dd9209dc7b25bedaa0453cda56f8 100644 (file)
@@ -1299,21 +1299,6 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
        /* Record received timestamp as last received now */
        rtp->lastrxts = timestamp;
 
-       if (rtp->dtmfcount) {
-               rtp->dtmfcount -= (timestamp - rtp->lastrxts);
-
-               if (rtp->dtmfcount < 0) {
-                       rtp->dtmfcount = 0;
-               }
-
-               if (rtp->resp && !rtp->dtmfcount) {
-                       struct ast_frame *f;
-                       f = send_dtmf(rtp, AST_FRAME_DTMF_END);
-                       rtp->resp = 0;
-                       return f;
-               }
-       }
-
        rtp->f.mallocd = 0;
        rtp->f.datalen = res - hdrlen;
        rtp->f.data = rtp->rawdata + hdrlen + AST_FRIENDLY_OFFSET;