[asterisk-commits] mjordan: branch certified-11.2 r400119 - in /certified/branches/11.2: ./ res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Sep 28 17:41:41 CDT 2013
Author: mjordan
Date: Sat Sep 28 17:41:36 2013
New Revision: 400119
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400119
Log:
res_rtp_asterisk: Correct erroneous lost packet information in RTCP reports
RTCP's calculation of the number of lost packets in an RTP stream is based on
that stream's sequence number count, the number of received packets, and how
many packets we expect to receive. When the SSRC for an RTP stream changes,
there can - and almost always will be - a large jump in the next packet's
timestamp and sequence number. If we don't reset the number of received
packets, sequence number count, and other metrics used by RTCP, the next RR/SR
report will use the previous SSRC's values to calculate the lost packet count
for the new SSRC - resulting in a very large number of lost packets.
This patch modifies res_rtp_asterisk such that, if it detects a SSRC change, it
will reset the various values used by the RTCP calculations. From the
perspective of RTCP, this appears as a new media stream - which is what it is.
Review: https://reviewboard.asterisk.org/r/2886/
(closes issue AST-1174)
Reported by: Thomas Arimont
........
Merged revisions 400089 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 400093 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
certified/branches/11.2/ (props changed)
certified/branches/11.2/res/res_rtp_asterisk.c
Propchange: certified/branches/11.2/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: certified/branches/11.2/res/res_rtp_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/11.2/res/res_rtp_asterisk.c?view=diff&rev=400119&r1=400118&r2=400119
==============================================================================
--- certified/branches/11.2/res/res_rtp_asterisk.c (original)
+++ certified/branches/11.2/res/res_rtp_asterisk.c Sat Sep 28 17:41:36 2013
@@ -3595,6 +3595,12 @@
f = ast_frisolate(&srcupdate);
AST_LIST_INSERT_TAIL(&frames, f, frame_list);
+ rtp->seedrxseqno = 0;
+ rtp->rxcount = 0;
+ rtp->cycles = 0;
+ rtp->lastrxseqno = 0;
+ rtp->rtcp->expected_prior = 0;
+ rtp->rtcp->received_prior = 0;
rtp->last_seqno = 0;
rtp->last_end_timestamp = 0;
}
More information about the asterisk-commits
mailing list