]> git.ipfire.org Git - thirdparty/asterisk.git/commit
udptl: Correct FEC to not consider negative sequence numbers as missing
authorMatthew Jordan <mjordan@digium.com>
Thu, 26 Jun 2014 12:23:27 +0000 (12:23 +0000)
committerMatthew Jordan <mjordan@digium.com>
Thu, 26 Jun 2014 12:23:27 +0000 (12:23 +0000)
commit5b997eca1de5ae08ac0eebe6d57531be04af77c5
tree9da582240dff5373f6a6d5aa8305aa3ccb13e976
parenta2f2cc2c7210a66c50dc4bd242238f1f2ddae9c2
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
........

Merged revisions 417320 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@417324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/udptl.c