Index: cdr/cdr_sqlite3_custom.c =================================================================== --- cdr/cdr_sqlite3_custom.c (revision 82680) +++ cdr/cdr_sqlite3_custom.c (working copy) @@ -209,6 +209,8 @@ ast_log(LOG_ERROR, "%s: Unable to register custom SQLite3 CDR handling\n", name); return AST_MODULE_LOAD_DECLINE; } + } else { + return AST_MODULE_LOAD_DECLINE; } /* is the database there? */