mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Fix custom CDR error (thanks kpfleming)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -129,11 +129,10 @@ int load_module(void)
|
||||
int res;
|
||||
|
||||
res = load_config(0);
|
||||
if (!res)
|
||||
if (!res) {
|
||||
res = ast_cdr_register(name, desc, custom_log);
|
||||
if (res) {
|
||||
ast_log(LOG_ERROR, "Unable to register custom CDR handling\n");
|
||||
res = 0;
|
||||
if (res)
|
||||
ast_log(LOG_ERROR, "Unable to register custom CDR handling\n");
|
||||
if (mf)
|
||||
fclose(mf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user