aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-30 14:27:59 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-30 14:27:59 +0000
commit2fac83118cefcca81465f6e3a2cd8b97b76b87e0 (patch)
tree673402f0f9e142fcde6887e1a510e376a28635d4 /rtp.c
parent85bf35526eec6de15c1aaa2f356691e2196c0181 (diff)
do not allow an rtp message with zero type (issue #5749)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7233 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rw-r--r--rtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtp.c b/rtp.c
index 653355e08..0c475ed98 100644
--- a/rtp.c
+++ b/rtp.c
@@ -299,7 +299,7 @@ static struct ast_frame *process_rfc2833(struct ast_rtp *rtp, unsigned char *dat
}
resp = 0;
duration = 0;
- } else if(rtp->dtmfduration && (duration < rtp->dtmfduration)) {
+ } else if (rtp->resp && rtp->dtmfduration && (duration < rtp->dtmfduration)) {
f = send_dtmf(rtp);
}
if (!(event_end & 0x80))