Refactor the features configuration scheme.
authorMark Michelson <mmichelson@digium.com>
Thu, 6 Jun 2013 21:40:35 +0000 (21:40 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 6 Jun 2013 21:40:35 +0000 (21:40 +0000)
commit2dc8a060064f359a17f5ebcd515d85fe5203c019
treefca012b9378a2a005fea30278f7d2a6129251b1f
parent5f740572d081330fb43462eba5b0f495d8e56df1
Refactor the features configuration scheme.

Features configuration is handled in its own API in
features_config.h and features_config.c. This way, features
configuration is accessible to anything that needs it.

In addition, features configuration has been altered to
be more channel-oriented. Most callers of features API
code will be supplying a channel so that the individual
channel's settings will be acquired rather than the global
setting.

Missing from this commit is XML documentation for the
features configuration. That will be handled in a separate
commit.

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

(issue ASTERISK-21542)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
16 files changed:
apps/app_dial.c
bridges/bridge_builtin_features.c
channels/chan_dahdi.c
channels/chan_mgcp.c
channels/chan_misdn.c
channels/chan_sip.c
channels/chan_unistim.c
channels/sig_analog.c
channels/sip/include/sip.h
include/asterisk/channel.h
include/asterisk/features.h
include/asterisk/features_config.h [new file with mode: 0644]
main/bridging.c
main/features.c
main/features_config.c [new file with mode: 0644]
main/manager.c