]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis: Call callbacks when imparting fails
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Wed, 10 Apr 2019 04:30:25 +0000 (05:30 +0100)
committerJoshua Colp <jcolp@digium.com>
Thu, 2 May 2019 15:28:21 +0000 (15:28 +0000)
commitf599ebd29ee01d10383d93222032f216f1b66ae6
treeecd271a98023341a4d8c241318877e524eeea0e3
parentf2cb892d7c06fd0aee6eb98dc38814e251818ac8
stasis: Call callbacks when imparting fails

After a bridge has been deleted the stasis control will depart
the channel and might attempt to re-add it to the dial bridge.

The later can fail and this can lead to a situation that the stasis
control is unlinked but the after_bridge_cb_failed cb is executed trying
to access a dangling control object.

Fix it by calling the after_cb's before bridge_channel_impart_signal.

ASTERISK-26718

Change-Id: Ib4e8f70d7a21bd54afe3cb51cc6717ef7c355496
include/asterisk/bridge.h
main/bridge.c