diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-30 14:24:50 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-30 14:24:50 +0000 |
commit | d8edf984a5b0e5756d8b18afe3155391dd010da6 (patch) | |
tree | befc4814b8020ac622d5f21f5e5f111cb35c4490 /rtp.c | |
parent | b1b8d694678e2739c74a21975e81208a8c9d4b8c (diff) |
do not allow an rtp message with zero type (issue #5749)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7232 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rw-r--r-- | rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |