summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorPirmin Walthert <infos@nappsoft.ch>2017-11-16 09:47:39 +0100
committerPirmin Walthert <infos@nappsoft.ch>2017-11-18 03:53:26 -0500
commit6c4ba373ca3b3674dea3e283de3ebe06dd88925c (patch)
treee0c057f778e522dd911a748b66120015e8d57ff8 /main
parent8fdc7fd1d3e77ae171671231e318d15710a0f715 (diff)
res_rtp_asterisk.c: Fix rtp source address learning for broken clients
Some clients do not send rtp packets every ptime ms. This can lead to situations in which the rtp source learning algorithm will never learn the address of the client. This has been discovered on a Mac mini with a pjsip based softphone after updating to Sierra: as soon as USB headsets are involved, the softphone will send the second packet 30ms after the first, the third 30ms after the second and the fourth 1ms after the third. So in the old implmentation the rtp source learning algorithm was repeatedly reset on the fourth packet. The patch changes the algorithm in a way that doesn't take the arrival time between two consecutive packets into account but the time between the first and the last packet of a learning sequence. The patch also fixes a second problem: when a user was using a wrong value for the probation setting there was a LOG_WARNING output stating that the value had been set to the default value instead. However the code for setting the value back to defaults was missing. ASTERISK-27421 #close Change-Id: If778fe07678a6fd2041eaca7cd78267d0ef4fc6c
Diffstat (limited to 'main')
0 files changed, 0 insertions, 0 deletions