aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_smdi.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-11 07:05:49 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-11 07:05:49 +0000
commit7648d4efc453ce25aadb7654d81352c6b166e862 (patch)
tree278ada829706ca90fa526330c6566fafc4784f95 /res/res_smdi.c
parent8bcc7f61298e96c349270962d2dbdcb2197f4adc (diff)
Fix SMDI to not blow up asterisk when there's no config file.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9506 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_smdi.c')
-rw-r--r--res/res_smdi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/res/res_smdi.c b/res/res_smdi.c
index 334f640be..274e9a0fb 100644
--- a/res/res_smdi.c
+++ b/res/res_smdi.c
@@ -540,8 +540,11 @@ static int smdi_load(int reload)
conf = ast_config_load(config_file);
if (!conf) {
- ast_log(LOG_ERROR, "Unable to load config %s\n", config_file);
- return -1;
+ if (reload)
+ ast_log(LOG_NOTICE, "Unable to reload config %s: SMDI untouched\n", config_file);
+ else
+ ast_log(LOG_NOTICE, "Unable to load config %s: SMDI disabled\n", config_file);
+ return 1;
}
/* Mark all interfaces that we are listening on. We will unmark them