Prevent possible race condition on dual redirect of channels in the same bridge.
authorMark Michelson <mmichelson@digium.com>
Thu, 18 Dec 2014 15:18:45 +0000 (15:18 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 18 Dec 2014 15:18:45 +0000 (15:18 +0000)
commit2b1f2b5c1f038ad6f470b2d0cc6569bdeb7923b6
tree9efe8303d3726dc27bf051c2042cdad874ad311e
parentcc1405bd387270a919a2534c83acb383d022848b
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
........

Merged revisions 429741 from http://svn.asterisk.org/svn/asterisk/branches/13

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