<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/9177">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, but someone else must approve
Sean Bright: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">rtp: Don't negotiate dynamic codecs using payload.<br><br>In Asterisk there are some dynamic codecs that have<br>a fixed payload number. This number was being improperly<br>used to negotiate the codec, instead of using the name<br>and sample rate. This could result in the wrong payload<br>number being negotiated for a codec.<br><br>This change makes it so that only static payloads<br>will be negotiated using their payload number.<br><br>ASTERISK-27848<br><br>Change-Id: Ia865830170fd3f808cdb33104f3d4c4ffdc77570<br>---<br>M main/rtp_engine.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/rtp_engine.c b/main/rtp_engine.c<br>index c11027a..3d50774 100644<br>--- a/main/rtp_engine.c<br>+++ b/main/rtp_engine.c<br>@@ -1287,7 +1287,7 @@<br> {<br> struct ast_rtp_payload_type *new_type;<br> <br>- if (payload < 0 || payload >= AST_RTP_MAX_PT) {<br>+ if (payload < 0 || payload >= AST_RTP_MAX_PT || payload > AST_RTP_PT_LAST_STATIC) {<br> return;<br> }<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9177">change 9177</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/9177"/><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: Ia865830170fd3f808cdb33104f3d4c4ffdc77570 </div>
<div style="display:none"> Gerrit-Change-Number: 9177 </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: Matthew Fredrickson <creslin@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>