asterisk/apps/confbridge
George Joseph 0001834157 app_confbridge: Fix reference to cfg in menu_template_handler
menu_template_handler wasn't properly accounting for the fact that
it might be called both during a load/reload (which isn't really
valid but not prevented) and by a dialplan function.  In both cases
it was attempting to use the "pending" config which wasn't valid in
the latter case.  aco_process_config is also partly to blame because
it wasn't properly cleaning "pending" up when a reload was done and
no changes were made.  Both of these contributed to a crash if
CONFBRIDGE(menu,template) was called in a dialplan after a reload.

* aco_process_config now sets info->internal->pending to NULL
  after it unrefs it although this isn't strictly necessary in the
  context of this fix.
* menu_template_handler now uses the "current" config and silently
  ignores any attempt to be called as a result of someone uses the
  "template" parameter in the conf file.

Luckily there's no other place in the codebase where
aco_pending_config is used outside of aco_process_config.

ASTERISK-25506 #close
Reported-by: Frederic LE FOLL

Change-Id: Ib349a17d3d088f092480b19addd7122fcaac21a7
2017-05-04 20:13:55 -05:00
..
include Binaural synthesis (confbridge): DTMF conference management. 2017-02-24 15:13:56 -06:00
conf_chan_announce.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
conf_chan_record.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
conf_config_parser.c app_confbridge: Fix reference to cfg in menu_template_handler 2017-05-04 20:13:55 -05:00
conf_state.c app_confbridge: Make explicitly stop MOH if a user is kicked or hangs up while MOH is playing. 2014-03-12 18:47:10 +00:00
conf_state_empty.c ConfBridge: Correct prompt playback target 2014-02-10 16:01:37 +00:00
conf_state_inactive.c app_confbridge: Make explicitly stop MOH if a user is kicked or hangs up while MOH is playing. 2014-03-12 18:47:10 +00:00
conf_state_multi.c app_confbridge: Remove some noop code. 2014-03-06 00:33:13 +00:00
conf_state_multi_marked.c ConfBridge: Make some announcements asynchronous. 2016-09-07 09:12:41 -05:00
conf_state_single.c app_confbridge: Make explicitly stop MOH if a user is kicked or hangs up while MOH is playing. 2014-03-12 18:47:10 +00:00
conf_state_single_marked.c app_confbridge: Make explicitly stop MOH if a user is kicked or hangs up while MOH is playing. 2014-03-12 18:47:10 +00:00
confbridge_manager.c app_confbridge: Fix ConfbridgeTalking AMI event description. 2017-03-16 15:54:10 -06:00