<p>Kevin Harwell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14622">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">PJSIP_MEDIA_OFFER: override what's specified on configuration<br><br>When using the PSJIP_MEDIA_OFFER dialplan function it was not<br>overriding an endpoint's configured codecs unless they had a<br>shared codec between the two.<br><br>This patch makes it so whatever is set using PJSIP_MEDIA_OFFER<br>is used when creating the SDP definition no matter what.<br><br>ASTERISK-28878 #close<br><br>Change-Id: I0f7dc86fd0fb607c308e6f98ede303c54d1eacb6<br>---<br>M res/res_pjsip_sdp_rtp.c<br>1 file changed, 1 insertion(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/22/14622/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip_sdp_rtp.c b/res/res_pjsip_sdp_rtp.c</span><br><span>index 25fbdec..77a2803 100644</span><br><span>--- a/res/res_pjsip_sdp_rtp.c</span><br><span>+++ b/res/res_pjsip_sdp_rtp.c</span><br><span>@@ -1319,8 +1319,7 @@</span><br><span> </span><br><span> if (direct_media_enabled) {</span><br><span> ast_format_cap_get_compatible(session->endpoint->media.codecs, session->direct_media_cap, caps);</span><br><span style="color: hsl(0, 100%, 40%);">- } else if (!ast_format_cap_count(session->req_caps) ||</span><br><span style="color: hsl(0, 100%, 40%);">- !ast_format_cap_iscompatible(session->req_caps, session->endpoint->media.codecs)) {</span><br><span style="color: hsl(120, 100%, 40%);">+ } else if (!ast_format_cap_count(session->req_caps)) {</span><br><span> ast_format_cap_append_from_cap(caps, session->endpoint->media.codecs, media_type);</span><br><span> } else {</span><br><span> ast_format_cap_append_from_cap(caps, session->req_caps, media_type);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14622">change 14622</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/+/14622"/><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-Change-Id: I0f7dc86fd0fb607c308e6f98ede303c54d1eacb6 </div>
<div style="display:none"> Gerrit-Change-Number: 14622 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>