<p>Joshua Colp <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15808">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Kevin Harwell: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Joshua Colp: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_local: Skip filtering audio formats on removed streams.<br><br>When a stream topology is provided to chan_local when dialing<br>it filters the audio formats down. This operation did not skip<br>streams which were removed (that have no formats) resulting in<br>calling being aborted.<br><br>This change causes such streams to be skipped.<br><br>ASTERISK-29407<br><br>Change-Id: I1de8b98727cb2d10f4bc287da0b5fdcb381addd6<br>---<br>M main/core_local.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/core_local.c b/main/core_local.c</span><br><span>index ef5a4c6..89d369e 100644</span><br><span>--- a/main/core_local.c</span><br><span>+++ b/main/core_local.c</span><br><span>@@ -967,7 +967,8 @@</span><br><span> </span><br><span> stream = ast_stream_topology_get_stream(audio_filtered_topology, i);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- if (ast_stream_get_type(stream) != AST_MEDIA_TYPE_AUDIO) {</span><br><span style="color: hsl(120, 100%, 40%);">+ if (ast_stream_get_type(stream) != AST_MEDIA_TYPE_AUDIO ||</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_stream_get_state(stream) == AST_STREAM_STATE_REMOVED) {</span><br><span> continue;</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15808">change 15808</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/+/15808"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I1de8b98727cb2d10f4bc287da0b5fdcb381addd6 </div>
<div style="display:none"> Gerrit-Change-Number: 15808 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </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: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>