summaryrefslogtreecommitdiff
path: root/cel/cel_manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'cel/cel_manager.c')
-rw-r--r--cel/cel_manager.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cel/cel_manager.c b/cel/cel_manager.c
index 2fc001fe1..610b6e4e0 100644
--- a/cel/cel_manager.c
+++ b/cel/cel_manager.c
@@ -153,7 +153,12 @@ static int load_config(int reload)
return 0;
}
- if (!cfg) {
+ if (cfg == CONFIG_STATUS_FILEINVALID) {
+ ast_log(LOG_WARNING, "Configuration file '%s' is invalid. CEL manager Module not activated.\n",
+ CONF_FILE);
+ enablecel = 0;
+ return -1;
+ } else if (!cfg) {
ast_log(LOG_WARNING, "Failed to load configuration file. CEL manager Module not activated.\n");
enablecel = 0;
return -1;