From 45c15e85617b61fe96eaf797c229ce7289fb0329 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 30 Nov 2005 14:27:59 +0000 Subject: [PATCH] do not allow an rtp message with zero type (issue #5749) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7233 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtp.c b/rtp.c index 653355e08d..0c475ed980 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))