modules: change module LOAD_FAILUREs to LOAD_DECLINES
authorGeorge Joseph <gjoseph@digium.com>
Tue, 11 Apr 2017 16:07:39 +0000 (10:07 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 12 Apr 2017 21:57:21 +0000 (15:57 -0600)
commit747beb1ed159f89a3b58742e4257740b3d6d6bba
tree3ba17dd62d0270a9ee976f173f948304b1733773
parent60fd01f7f4b43515f5d4d915eec701c6054c53cf
modules:  change module LOAD_FAILUREs to LOAD_DECLINES

In all non-pbx modules, AST_MODULE_LOAD_FAILURE has been changed
to AST_MODULE_LOAD_DECLINE.  This prevents asterisk from exiting
if a module can't be loaded.  If the user wishes to retain the
FAILURE behavior for a specific module, they can use the "require"
or "preload-require" keyword in modules.conf.

A new API was added to logger: ast_is_logger_initialized().  This
allows asterisk.c/check_init() to print to the error log once the
logger subsystem is ready instead of just to stdout.  If something
does fail before the logger is initialized, we now print to stderr
instead of stdout.

Change-Id: I5f4b50623d9b5a6cb7c5624a8c5c1274c13b2b25
89 files changed:
addons/cdr_mysql.c
addons/chan_mobile.c
apps/app_adsiprog.c
apps/app_agent_pool.c
apps/app_alarmreceiver.c
apps/app_authenticate.c
apps/app_cdr.c
apps/app_confbridge.c
apps/app_dahdiras.c
apps/app_forkcdr.c
apps/app_queue.c
apps/app_voicemail.c
apps/app_zapateller.c
cdr/cdr_custom.c
cel/cel_custom.c
cel/cel_odbc.c
channels/chan_alsa.c
channels/chan_dahdi.c
channels/chan_iax2.c
channels/chan_mgcp.c
channels/chan_motif.c
channels/chan_nbs.c
channels/chan_oss.c
channels/chan_phone.c
channels/chan_pjsip.c
channels/chan_sip.c
channels/chan_skinny.c
channels/chan_unistim.c
codecs/codec_a_mu.c
codecs/codec_adpcm.c
codecs/codec_alaw.c
codecs/codec_g722.c
codecs/codec_g726.c
codecs/codec_gsm.c
codecs/codec_ilbc.c
codecs/codec_lpc10.c
codecs/codec_resample.c
codecs/codec_ulaw.c
formats/format_g723.c
formats/format_g726.c
formats/format_g729.c
formats/format_gsm.c
formats/format_h263.c
formats/format_h264.c
formats/format_ilbc.c
formats/format_jpeg.c
formats/format_ogg_vorbis.c
formats/format_pcm.c
formats/format_sln.c
formats/format_vox.c
formats/format_wav.c
formats/format_wav_gsm.c
funcs/func_cdr.c
funcs/func_holdintercept.c
funcs/func_talkdetect.c
include/asterisk/logger.h
main/asterisk.c
main/loader.c
main/logger.c
res/res_ari.c
res/res_ari_events.c
res/res_ari_model.c
res/res_calendar.c
res/res_chan_stats.c
res/res_config_sqlite.c
res/res_config_sqlite3.c
res/res_endpoint_stats.c
res/res_hep_rtcp.c
res/res_http_websocket.c
res/res_limit.c
res/res_pjsip/config_transport.c
res/res_pjsip_nat.c
res/res_pjsip_one_touch_record_info.c
res/res_pjsip_outbound_publish.c
res/res_pjsip_outbound_registration.c
res/res_pjsip_pubsub.c
res/res_pjsip_sdp_rtp.c
res/res_pjsip_send_to_voicemail.c
res/res_pjsip_t38.c
res/res_smdi.c
res/res_stasis.c
res/res_stasis_device_state.c
res/res_stasis_playback.c
res/res_stasis_recording.c
res/res_stasis_test.c
res/res_statsd.c
rest-api-templates/res_ari_resource.c.mustache
tests/test_bucket.c
tests/test_channel_feature_hooks.c