Warn if unable to open an overridden config file (but #2285)
authorMark Spencer <markster@digium.com>
Sat, 28 Aug 2004 17:12:01 +0000 (17:12 +0000)
committerMark Spencer <markster@digium.com>
Sat, 28 Aug 2004 17:12:01 +0000 (17:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3669 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/Makefile
asterisk.c

index a1504f5..d81b215 100755 (executable)
@@ -28,7 +28,8 @@ APPS=app_dial.so app_playback.so app_voicemail.so app_directory.so app_mp3.so\
      app_setcdruserfield.so app_random.so app_ices.so app_eval.so \
      app_nbscat.so app_sendtext.so app_exec.so app_sms.so \
      app_groupcount.so app_txtcidname.so app_controlplayback.so \
-     app_talkdetect.so app_alarmreceiver.so app_userevent.so app_verbose.so
+     app_talkdetect.so app_alarmreceiver.so app_userevent.so app_verbose.so \
+     app_test.so
 
 ifneq (${OSARCH},Darwin)
 APPS+=app_intercom.so
index 50dbede..db54f33 100755 (executable)
@@ -1486,6 +1486,8 @@ static void ast_readconfig(void) {
 
        if (option_overrideconfig == 1) {
            cfg = ast_load((char *)ast_config_AST_CONFIG_FILE);
+               if (!cfg)
+                       ast_log(LOG_WARNING, "Unable to open specified master config file '%s', using builtin defaults\n", ast_config_AST_CONFIG_FILE);
        } else {
            cfg = ast_load(config);
        }