app_bridgewait: Remove possibility of race condition between channels leaving/joining.
authorJoshua Colp <jcolp@digium.com>
Fri, 25 Jul 2014 10:54:49 +0000 (10:54 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 25 Jul 2014 10:54:49 +0000 (10:54 +0000)
commit41042588b9a2ed15a1be910fb23bdb60f03e1a9b
tree18534260f9145ea9d43d0adad969c445db7d1b94
parentb2d6a9e07612f3db4fc7cb1178c7271d9f047ec6
app_bridgewait: Remove possibility of race condition between channels leaving/joining.

Bridges created by app_bridgewait previously had the "dissolve when empty" flag set.
This caused the bridge core to destroy them when the last channel had left. This
introduced a race condition where we may have a reference to the bridge but it is
not actually joinable when we try to join it. This flag has now been removed and the
bridge is guaranteed to be joinable at all times.

ASTERISK-23987 #close
Reported by: Matt Jordan

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

Merged revisions 419538 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@419539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_bridgewait.c