aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-16 16:51:58 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-16 16:51:58 +0000
commit85ccb2ead67d001589b99170018a33221111b689 (patch)
tree27ee6725d11794248b6812f06fe995b146055a8a /rtp.c
parentd4ab02309a013663007411b221f6fb84939a7175 (diff)
Commit RTP fixes this time
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1353 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/rtp.c b/rtp.c
index 03606b024..484e53fa0 100755
--- a/rtp.c
+++ b/rtp.c
@@ -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;