diff options
author | Mark Spencer <markster@digium.com> | 2003-08-16 16:51:58 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-08-16 16:51:58 +0000 |
commit | 36508bc31ad47331457bd5fd2fea85b43511b611 (patch) | |
tree | 27ee6725d11794248b6812f06fe995b146055a8a | |
parent | e4a8e3fd9ee743e6cfb5891986d13e953d93b2ff (diff) |
Commit RTP fixes this time
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | rtp.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -233,7 +233,10 @@ static struct ast_frame *process_rfc2833(struct ast_rtp *rtp, unsigned char *dat } else if(event_end & 0x80) { - f = send_dtmf(rtp); + if (rtp->resp) { + f = send_dtmf(rtp); + rtp->resp = 0; + } resp = 0; duration = 0; } @@ -241,8 +244,8 @@ static struct ast_frame *process_rfc2833(struct ast_rtp *rtp, unsigned char *dat { f = send_dtmf(rtp); } - - rtp->resp = resp; + if (!(event_end & 0x80)) + rtp->resp = resp; rtp->dtmfcount = dtmftimeout; rtp->dtmfduration = duration; return f; |