<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/8886">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Richard Mudgett: Looks good to me, but someone else must approve
  Kevin Harwell: Looks good to me, approved
  Jenkins2: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_rtp_asterisk: Always update SRTP on local SSRC change.<br><br>When the local SSRC changes we need to update the SRTP information<br>so that the proper key is used. This is commonly done as a result<br>of bridging two channels together. Previously we only updated<br>the SRTP information if media had already flowed, but in practice<br>the channel driver may have already performed SRTP negotiation and<br>set up the previous SSRC. We now always do it on a local SSRC<br>change.<br><br>ASTERISK-27795<br>ASTERISK-27800<br><br>Change-Id: Ia7c8e74c28841388b5244ac0b8fd6c1dc6ee4c10<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 7 insertions(+), 7 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c<br>index 4ac20d5..5579914 100644<br>--- a/res/res_rtp_asterisk.c<br>+++ b/res/res_rtp_asterisk.c<br>@@ -3947,15 +3947,15 @@<br>   if (rtp->lastts) {<br>                 /* We simply set this bit so that the next packet sent will have the marker bit turned on */<br>          ast_set_flag(rtp, FLAG_NEED_MARKER_BIT);<br>+     }<br> <br>-         ast_debug(3, "Changing ssrc from %u to %u due to a source change\n", rtp->ssrc, ssrc);<br>+  ast_debug(3, "Changing ssrc from %u to %u due to a source change\n", rtp->ssrc, ssrc);<br> <br>-               if (srtp) {<br>-                  ast_debug(3, "Changing ssrc for SRTP from %u to %u\n", rtp->ssrc, ssrc);<br>-                        res_srtp->change_source(srtp, rtp->ssrc, ssrc);<br>-                        if (rtcp_srtp != srtp) {<br>-                             res_srtp->change_source(rtcp_srtp, rtp->ssrc, ssrc);<br>-                   }<br>+    if (srtp) {<br>+          ast_debug(3, "Changing ssrc for SRTP from %u to %u\n", rtp->ssrc, ssrc);<br>+                res_srtp->change_source(srtp, rtp->ssrc, ssrc);<br>+                if (rtcp_srtp != srtp) {<br>+                     res_srtp->change_source(rtcp_srtp, rtp->ssrc, ssrc);<br>            }<br>     }<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8886">change 8886</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/8886"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ia7c8e74c28841388b5244ac0b8fd6c1dc6ee4c10 </div>
<div style="display:none"> Gerrit-Change-Number: 8886 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>