dect
/
asterisk
Archived
13
0
Fork 0

Fix segfault

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4207 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-11-11 19:55:09 +00:00
parent ed45395936
commit 6f69098dc9
1 changed files with 2 additions and 2 deletions

4
rtp.c
View File

@ -493,14 +493,14 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
if (rtp->lasteventseqn <= seqno) {
f = process_rfc2833(rtp, rtp->rawdata + AST_FRIENDLY_OFFSET + hdrlen, res - hdrlen);
rtp->lasteventseqn = seqno;
}
} else f = NULL;
if (f) return f; else return &null_frame;
} else if (rtpPT.code == AST_RTP_CISCO_DTMF) {
/* It's really special -- process it the Cisco way */
if (rtp->lasteventseqn <= seqno) {
f = process_cisco_dtmf(rtp, rtp->rawdata + AST_FRIENDLY_OFFSET + hdrlen, res - hdrlen);
rtp->lasteventseqn = seqno;
}
} else f = NULL;
if (f) return f; else return &null_frame;
} else if (rtpPT.code == AST_RTP_CN) {
/* Comfort Noise */