<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6026">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, but someone else must approve
Matthew Fredrickson: Looks good to me, approved
Joshua Colp: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_rtp_asterisk: Use RTP component for ICE if RTCP-MUX is in use.<br><br>This change makes it so that if an RTCP packet is being sent<br>the RTP ICE component is used for sending if RTCP-MUX is in use.<br><br>ASTERISK-27133<br><br>Change-Id: I6200f611ede709602ee9b89501720c29545ed68b<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 7 insertions(+), 2 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 da405e1..e521756 100644<br>--- a/res/res_rtp_asterisk.c<br>+++ b/res/res_rtp_asterisk.c<br>@@ -2587,8 +2587,14 @@<br> <br> #ifdef HAVE_PJPROJECT<br> if (rtp->ice) {<br>+ enum ast_rtp_ice_component_type component = rtcp ? AST_RTP_ICE_COMPONENT_RTCP : AST_RTP_ICE_COMPONENT_RTP;<br> pj_status_t status;<br> struct ice_wrap *ice;<br>+<br>+ /* If RTCP is sharing the same socket then use the same component */<br>+ if (rtcp && rtp->rtcp->s == rtp->s) {<br>+ component = AST_RTP_ICE_COMPONENT_RTP;<br>+ }<br> <br> pj_thread_register_check();<br> <br>@@ -2596,8 +2602,7 @@<br> ice = rtp->ice;<br> ao2_ref(ice, +1);<br> ao2_unlock(instance);<br>- status = pj_ice_sess_send_data(ice->real_ice,<br>- rtcp ? AST_RTP_ICE_COMPONENT_RTCP : AST_RTP_ICE_COMPONENT_RTP, temp, len);<br>+ status = pj_ice_sess_send_data(ice->real_ice, component, temp, len);<br> ao2_ref(ice, -1);<br> ao2_lock(instance);<br> if (status == PJ_SUCCESS) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6026">change 6026</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/6026"/><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: merged </div>
<div style="display:none"> Gerrit-Change-Id: I6200f611ede709602ee9b89501720c29545ed68b </div>
<div style="display:none"> Gerrit-Change-Number: 6026 </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: George Joseph <gjoseph@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: Matthew Fredrickson <creslin@digium.com> </div>