<p>Joshua Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14417">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bridge_softmix: Always remove audio from mixed frame.<br><br>When receiving audio from a channel we determine if it<br>is talking or silence based on a threshold value. If<br>this threshold is met we always mix the audio into the<br>conference bridge. If this threshold is not met we also<br>mix the audio into the conference bridge UNLESS the<br>drop silence option is enabled.<br><br>The code that removed the audio from the mixed frame<br>assumed that it was always not present if it did not<br>meet the threshold to be considered talking. This is<br>incorrect. If it has been stated that the audio was<br>mixed into the mixed frame then it has been mixed into<br>the mixed frame. By not removing audio that was<br>considered non-talking it was possible for a channel<br>to receive a slight echo of audio of itself at times.<br><br>This change ensures that the audio is always removed<br>from the mixed frame going back to the channel so it<br>no longer receives the slight echo.<br><br>ASTERISK-28898<br><br>Change-Id: I7b1b582cc1bcdb318ecc60c9d2e3d87ae31d55cb<br>---<br>M bridges/bridge_softmix.c<br>1 file changed, 2 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/17/14417/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bridges/bridge_softmix.c b/bridges/bridge_softmix.c</span><br><span>index ac4e357..65a08b5 100644</span><br><span>--- a/bridges/bridge_softmix.c</span><br><span>+++ b/bridges/bridge_softmix.c</span><br><span>@@ -282,9 +282,8 @@</span><br><span>       struct softmix_translate_helper_entry *entry = NULL;</span><br><span>         int i;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-      /* If we provided audio that was not determined to be silence,</span><br><span style="color: hsl(0, 100%, 40%);">-   * then take it out while in slinear format. */</span><br><span style="color: hsl(0, 100%, 40%);">- if (sc->have_audio && sc->talking) {</span><br><span style="color: hsl(120, 100%, 40%);">+    /* If we provided any audio then take it out while in slinear format. */</span><br><span style="color: hsl(120, 100%, 40%);">+      if (sc->have_audio) {</span><br><span>             for (i = 0; i < sc->write_frame.samples; i++) {</span><br><span>                        ast_slinear_saturated_subtract(&sc->final_buf[i], &sc->our_buf[i]);</span><br><span>            }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14417">change 14417</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/+/14417"/><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: I7b1b582cc1bcdb318ecc60c9d2e3d87ae31d55cb </div>
<div style="display:none"> Gerrit-Change-Number: 14417 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>