Remove the unsafe bridge parameter from ast_bridge_hook_callback's.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 26 Jul 2013 21:34:23 +0000 (21:34 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 26 Jul 2013 21:34:23 +0000 (21:34 +0000)
commitc017d5e6a34fa7e8dc7ba089b5db2338f117c81b
treed111b5985f3985ab02a462d4b48467b537163b70
parent50aba6be3654e348960a3bda2312f7a913f5c160
Remove the unsafe bridge parameter from ast_bridge_hook_callback's.

Most hook callbacks did not need the bridge parameter.  The pointer value
could become invalid if the channel is moved to another bridge while it is
executing.

* Fixed some issues in feature_attended_transfer() as a result.

* Reduce the bridge inhibit count in
attended_transfer_properties_shutdown() after it has restored the bridge
channel hooks.

* Removed basic bridge requirement on feature_blind_transfer().  It does
not require the basic bridge like feature_attended_transfer().

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
14 files changed:
apps/app_agent_pool.c
apps/app_bridgewait.c
apps/app_confbridge.c
apps/confbridge/conf_config_parser.c
bridges/bridge_builtin_features.c
bridges/bridge_builtin_interval_features.c
include/asterisk/bridge_features.h
include/asterisk/parking.h
main/bridge.c
main/bridge_basic.c
main/bridge_channel.c
main/features.c
main/parking.c
res/parking/parking_bridge_features.c