[asterisk-commits] mjordan: branch 11 r417320 - in /branches/11: ./ main/udptl.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 26 07:22:26 CDT 2014
Author: mjordan
Date: Thu Jun 26 07:22:22 2014
New Revision: 417320
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=417320
Log:
udptl: Correct FEC to not consider negative sequence numbers as missing
When using FEC, with span=3 and entries=4 Asterisk will attempt to repair
the packet with sequence number 5, as it will see that packet -4 is
missing. The result is Asterisk sending garbage packets that can kill a
fax.
This patch adds a check to see if the sequence number is valid before
checking if the packet is missing.
Review: https://reviewboard.asterisk.org/r/3657/
#ASTERISK-23908 #close
Reported by: Torrey Searle
patches:
udptl_fec.patch uploaded by Torrey Searle (License 5334)
........
Merged revisions 417318 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/11/ (props changed)
branches/11/main/udptl.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/11/main/udptl.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/udptl.c?view=diff&rev=417320&r1=417319&r2=417320
==============================================================================
--- branches/11/main/udptl.c (original)
+++ branches/11/main/udptl.c Thu Jun 26 07:22:22 2014
@@ -493,6 +493,12 @@
int k;
int which;
int limit = (l + m) & UDPTL_BUF_MASK;
+
+ /* only repair buffers that actually exist! */
+ if (seq_no <= (s->rx[l].fec_span * s->rx[l].fec_entries) - m) {
+ continue;
+ }
+
for (which = -1, k = (limit - s->rx[l].fec_span * s->rx[l].fec_entries) & UDPTL_BUF_MASK; k != limit; k = (k + s->rx[l].fec_entries) & UDPTL_BUF_MASK) {
if (s->rx[k].buf_len <= 0)
which = (which == -1) ? k : -2;
More information about the asterisk-commits
mailing list