<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9380">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ortp: detect ssrc changes immediately<br><br>libortp detects an ssrc jump using a packet count thresold. This<br>threshold is set to 50 by default. This means that libortp has<br>to see 50 rtp packets with the new SSRC before it accepts the<br>new stream. In our application we want to detect the changed<br>SSRC (Handover) as fast as possible. So we should change the<br>threshold to zero.<br><br>- use rtp_session_set_ssrc_changed_threshold() to set a thresold<br>  of 0 packets when osmo_rtp_socket_create() is called.<br><br>Change-Id: Id88c2c44d29a409affc2e47fdb932e1187020593<br>Related: OS#3299<br>---<br>M src/trau/osmo_ortp.c<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/80/9380/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c</span><br><span>index 8eecd9f..8c7f104 100644</span><br><span>--- a/src/trau/osmo_ortp.c</span><br><span>+++ b/src/trau/osmo_ortp.c</span><br><span>@@ -371,6 +371,8 @@</span><br><span>      rtp_session_set_seq_number(rs->sess, random());</span><br><span>   rs->tx_timestamp = random();</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   /* Make sure ssrc changes are detected immediately */</span><br><span style="color: hsl(120, 100%, 40%);">+ rtp_session_set_ssrc_changed_threshold(rs->sess, 0);</span><br><span> </span><br><span>  return rs;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9380">change 9380</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/9380"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-abis </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Id88c2c44d29a409affc2e47fdb932e1187020593 </div>
<div style="display:none"> Gerrit-Change-Number: 9380 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>