mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Merged revisions 61707 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r61707 | qwell | 2007-04-20 16:35:27 -0500 (Fri, 20 Apr 2007) | 8 lines Avoid invalid seqno cycling detection. Per comment from Dave Troy: This adds back in some simple typecasting I had in an earlier version which I realize now may be breaking things. Issue #9554. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1287,7 +1287,7 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
|
|||||||
/* Schedule transmission of Receiver Report */
|
/* Schedule transmission of Receiver Report */
|
||||||
rtp->rtcp->schedid = ast_sched_add(rtp->sched, ast_rtcp_calc_interval(rtp), ast_rtcp_write, rtp);
|
rtp->rtcp->schedid = ast_sched_add(rtp->sched, ast_rtcp_calc_interval(rtp), ast_rtcp_write, rtp);
|
||||||
}
|
}
|
||||||
if ( rtp->lastrxseqno - seqno > 100) /* if so it would indicate that the sender cycled; allow for misordering */
|
if ( (int)rtp->lastrxseqno - (int)seqno > 100) /* if so it would indicate that the sender cycled; allow for misordering */
|
||||||
rtp->cycles += RTP_SEQ_MOD;
|
rtp->cycles += RTP_SEQ_MOD;
|
||||||
|
|
||||||
rtp->lastrxseqno = seqno;
|
rtp->lastrxseqno = seqno;
|
||||||
|
Reference in New Issue
Block a user