dect
/
asterisk
Archived
13
0
Fork 0

Fix custom CDR error (thanks kpfleming)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5313 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2005-03-31 05:54:25 +00:00
parent 86448499e0
commit 20913df209
1 changed files with 3 additions and 4 deletions

View File

@ -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);
}