]> git.ipfire.org Git - thirdparty/asterisk.git/commit
bridge_softmix: G.729 codec license held
authorKevin Harwell <kharwell@digium.com>
Tue, 24 Feb 2015 18:22:58 +0000 (18:22 +0000)
committerKevin Harwell <kharwell@digium.com>
Tue, 24 Feb 2015 18:22:58 +0000 (18:22 +0000)
commit5c89e951bcb7d4bf49b0734980f523c458a254ec
treeb179a2281bb1d4de92debffe088459a9bdf831b3
parent37df042fd8988a2b8ef5ee016301c4d0514fbab8
bridge_softmix: G.729 codec license held

When more than one call using the same codec type enters into a softmix bridge
and no audio is present for a channel the bridge optimizes the out frame by
using the same one for all channels with the same codec type. Unfortunately,
when that number (channels with same codec type) dropped to <= 1 the codec
was not dereferenced. At least not until all parties left the bridge. Thus in
the case of G.729 the license was not released. This patch ensures that the
codec is dereferenced immediately when the optimization no longer applies.

ASTERISK-24797 #close
Reported by: Luke Hulsey
Review: https://reviewboard.asterisk.org/r/4429/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@432174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
bridges/bridge_softmix.c