Skip to content
Snippets Groups Projects
Commit d4781cb4 authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix custom CDR error (thanks kpfleming)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent c4ebbd5b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment