<p>Pirmin Walthert <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/7237">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_rtp_asterisk.c: Fix rtp source address learning for broken clients<br><br>Some clients do not send rtp packets every ptime ms. This can lead to<br>situations in which the rtp source learning algorithm will never learn<br>the address of the client. This has been discovered on a Mac mini with<br>a pjsip based softphone after updating to Sierra: as soon as USB<br>headsets are involved, the softphone will send the second packet 30ms<br>after the first, the third 30ms after the second and the fourth 1ms<br>after the third. So in the old implmentation the rtp source learning<br>algorithm was repeatedly reset on the fourth packet.<br><br>The patch changes the algorithm in a way that doesn't take the arrival<br>time between two consecutive packets into account but the time between<br>the first and the last packet of a learning sequence.<br><br>The patch also fixes a second problem: when a user was using a wrong<br>value for the probation setting there was a LOG_WARNING output stating<br>that the value had been set to the default value instead. However<br>the code for setting the value back to defaults was missing.<br><br>ASTERISK-27421 #close<br><br>Change-Id: If778fe07678a6fd2041eaca7cd78267d0ef4fc6c<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 35 insertions(+), 14 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/37/7237/3</pre><p>To view, visit <a href="https://gerrit.asterisk.org/7237">change 7237</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7237"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: If778fe07678a6fd2041eaca7cd78267d0ef4fc6c </div>
<div style="display:none"> Gerrit-Change-Number: 7237 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Pirmin Walthert <infos@nappsoft.ch> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>