If CDR logging is disabled, it's considered a FAILURE
authorOlle Johansson <oej@edvina.net>
Fri, 13 Nov 2009 09:22:04 +0000 (09:22 +0000)
committerOlle Johansson <oej@edvina.net>
Fri, 13 Nov 2009 09:22:04 +0000 (09:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@229840 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/cdr_mysql.c

index a7894ac..dc1e1b8 100644 (file)
@@ -524,7 +524,7 @@ static int my_load_module(int reload)
                        connected = 0;
                        AST_RWLIST_UNLOCK(&columns);
                        ast_config_destroy(cfg);
-                       return AST_MODULE_LOAD_SUCCESS;
+                       return AST_MODULE_LOAD_FAILURE;
                }
 
                if (!(result = mysql_store_result(&mysql))) {
@@ -533,7 +533,7 @@ static int my_load_module(int reload)
                        connected = 0;
                        AST_RWLIST_UNLOCK(&columns);
                        ast_config_destroy(cfg);
-                       return AST_MODULE_LOAD_SUCCESS;
+                       return AST_MODULE_LOAD_FAILURE;
                }
 
                while ((row = mysql_fetch_row(result))) {