mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
do not allow an rtp message with zero type (issue #5749)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7232 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
rtp.c
2
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))
|
||||
|
Reference in New Issue
Block a user