]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Prevent possible race condition on dual redirect of channels in the same bridge.
authorMark Michelson <mmichelson@digium.com>
Thu, 18 Dec 2014 15:05:49 +0000 (15:05 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 18 Dec 2014 15:05:49 +0000 (15:05 +0000)
commitc1582929f9c27330ac58420e2329421a4713b70c
treedd35cbfb298678015e0243f6e61c760fd1bb13c7
parent5bd5f580c13e5d96375a3aeeba1c2a0d3eeac17c
Prevent possible race condition on dual redirect of channels in the same bridge.

The AST_FLAG_BRIDGE_DUAL_REDIRECT_WAIT flag was created to prevent bridges from
prematurely acting on orphaned channels in bridges. The problem with the AMI
redirect action was that it was setting this flag on channels based on the presence
of a PBX, not whether the channel was in a bridge. Whether a channel has a PBX
is irrelevant, so the condition has been altered to check if the channel is in a
bridge.

ASTERISK-24536 #close
Reported by Niklas Larsson

Review: https://reviewboard.asterisk.org/r/4268

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@429741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c