]> git.ipfire.org Git - thirdparty/asterisk.git/commit
bridge_softmix: Always remove audio from mixed frame.
authorJoshua C. Colp <jcolp@sangoma.com>
Tue, 19 May 2020 09:18:58 +0000 (06:18 -0300)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 20 May 2020 14:59:18 +0000 (09:59 -0500)
commit545c72e335a67f65380fc7dcdbe6942fdc3be341
tree90933261fcc2561f0d5a6f023ba4ff88ecb9ed1e
parentd7d2d13b2c4133ec160630e81c07cf642a81d58d
bridge_softmix: Always remove audio from mixed frame.

When receiving audio from a channel we determine if it
is talking or silence based on a threshold value. If
this threshold is met we always mix the audio into the
conference bridge. If this threshold is not met we also
mix the audio into the conference bridge UNLESS the
drop silence option is enabled.

The code that removed the audio from the mixed frame
assumed that it was always not present if it did not
meet the threshold to be considered talking. This is
incorrect. If it has been stated that the audio was
mixed into the mixed frame then it has been mixed into
the mixed frame. By not removing audio that was
considered non-talking it was possible for a channel
to receive a slight echo of audio of itself at times.

This change ensures that the audio is always removed
from the mixed frame going back to the channel so it
no longer receives the slight echo.

ASTERISK-28898

Change-Id: I7b1b582cc1bcdb318ecc60c9d2e3d87ae31d55cb
bridges/bridge_softmix.c