mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Fix SMDI to not blow up asterisk when there's no config file.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -540,8 +540,11 @@ static int smdi_load(int reload)
|
|||||||
conf = ast_config_load(config_file);
|
conf = ast_config_load(config_file);
|
||||||
|
|
||||||
if (!conf) {
|
if (!conf) {
|
||||||
ast_log(LOG_ERROR, "Unable to load config %s\n", config_file);
|
if (reload)
|
||||||
return -1;
|
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
|
/* Mark all interfaces that we are listening on. We will unmark them
|
||||||
|
Reference in New Issue
Block a user