<p>Torrey Searle has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15490">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res/res_rtp_asterisk: generate new SSRC on native bridge end<br><br>For RTCP to work, we update the ssrc to be the one corresponding to<br>the native bridge while active.  However when the bridge ends we<br>should generate a new SSRC as the sequence numbers will not continue<br>from the native bridge left off.<br><br>ASTERISK-29300 #close<br><br>Change-Id: I23334b6934d2bf6490bda4bbf6414d96b8d17d10<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/90/15490/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c</span><br><span>index ad9cb7d..0bc35ae 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -8489,6 +8489,12 @@</span><br><span>              ast_smoother_free(rtp->smoother);</span><br><span>                 rtp->smoother = NULL;</span><br><span>     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   /* We must use a new SSRC when local bridge ends */</span><br><span style="color: hsl(120, 100%, 40%);">+   if (!instance1) {</span><br><span style="color: hsl(120, 100%, 40%);">+             unsigned int ssrc = ast_random();</span><br><span style="color: hsl(120, 100%, 40%);">+             rtp->ssrc = ssrc;</span><br><span style="color: hsl(120, 100%, 40%);">+  }</span><br><span>    ao2_unlock(instance0);</span><br><span> </span><br><span>   return 0;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15490">change 15490</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/15490"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I23334b6934d2bf6490bda4bbf6414d96b8d17d10 </div>
<div style="display:none"> Gerrit-Change-Number: 15490 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Torrey Searle <tsearle@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>