<p>Joshua Colp <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14277">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stream: Enforce formats immutability and ensure formats exist.<br><br>Some places in Asterisk did not treat the formats on a stream<br>as immutable when they are.<br><br>The ast_stream_get_formats function is now const to enforce this<br>and parts of Asterisk have been updated to take this into account.<br>Some violations of this were also fixed along the way.<br><br>An additional minor tweak is that streams are now allocated with<br>an empty format capabilities structure removing the need in various<br>places to check that one is present on the stream.<br><br>ASTERISK-28846<br><br>Change-Id: I32f29715330db4ff48edd6f1f359090458a9bfbe<br>---<br>M bridges/bridge_native_rtp.c<br>M bridges/bridge_simple.c<br>M bridges/bridge_softmix.c<br>M channels/chan_pjsip.c<br>M channels/pjsip/dialplan_functions.c<br>A doc/UPGRADE-staging/stream_immutable_formats.txt<br>M include/asterisk/stream.h<br>M main/stream.c<br>M res/res_pjsip_session.c<br>M res/res_pjsip_session/pjsip_session_caps.c<br>10 files changed, 59 insertions(+), 13 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/77/14277/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14277">change 14277</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/+/14277"/><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-Change-Id: I32f29715330db4ff48edd6f1f359090458a9bfbe </div>
<div style="display:none"> Gerrit-Change-Number: 14277 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>