]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Prevent possible race condition on dual redirect of channels in the same bridge.
authorAsterisk Autobuilder <asteriskteam@digium.com>
Mon, 22 Dec 2014 18:28:33 +0000 (18:28 +0000)
committerAsterisk Autobuilder <asteriskteam@digium.com>
Mon, 22 Dec 2014 18:28:33 +0000 (18:28 +0000)
commit0d9a996667b5fe483c4a8ec2a782559e6e4d43fb
treed32d7bc26ca192e4fc8db4bc0e0990ca532aba5f
parentcb0bddc60a872f1c3e341fc11e731282a450187d
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/certified/branches/13.1@430007 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c