]> git.ipfire.org Git - thirdparty/asterisk.git/commit
bridge_basic: don't cache xferfailsound during an attended transfer 16/2016/2
authorKevin Harwell <kharwell@digium.com>
Thu, 14 Jan 2016 20:42:57 +0000 (14:42 -0600)
committerKevin Harwell <kharwell@digium.com>
Fri, 15 Jan 2016 23:51:32 +0000 (17:51 -0600)
commit6e18a60a47d7e71dcd680670bfb36b0902cd8ace
tree4ae86652a925b068e80373866a1e65d6c7724816
parentf63fb0e337dcd95cde94da7c92561de02dcc487c
bridge_basic: don't cache xferfailsound during an attended transfer

The xferfailsound was read from the channel at the beginning of the transfer,
and that value is "cached" for the duration of the transfer. Therefore, changing
the xferfailsound on the channel using the FEATURE() dialplan function does
nothing once the transfer is under way.

This makes it so the transfer code instead gets the xferfailsound configuration
options from the channel when it is actually going to be used.

This patch also fixes a potential memory leak of the props object as well as
making sure the condition variable gets initialized before being destroyed.

ASTERISK-25696 #close

Change-Id: Ic726b0f54ef588bd9c9c67f4b0e4d787934f85e4
include/asterisk/features_config.h
main/bridge_basic.c
main/features_config.c