[Home]

Summary:ASTERISK-03876: cdr_custom is broken on head, and won't register.
Reporter:essobi (essobi)Labels:
Date Opened:2005-04-06 08:29:55Date Closed:2008-01-15 15:31:02.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Installed sample config.. loaded module, and no cdr's get produced.

I made the following changes, to get it working ASAP, but this is not a proper fix as I believe it leaves reload cdr_custom.so broken still.


--- cdr/cdr_custom.c    2005-04-06 09:31:27.000000000 -0400

@@ -135,13 +136,13 @@
{
       int res = 0;

-       if (!load_config(0)) {
+       load_config(0);
               res = ast_cdr_register(name, desc, custom_log);
               if (res)
                       ast_log(LOG_ERROR, "Unable to register custom CDR handling\n");
               if (mf)
                       fclose(mf);
-       }
+
       return res;
}
Comments:By: Kevin P. Fleming (kpfleming) 2005-04-06 11:22:05

No, that wasn't the right fix, but I've committed the proper fix to CVS. Please update and re-test. Thanks!

By: Kevin P. Fleming (kpfleming) 2005-04-06 11:22:18

Not in stable

By: Digium Subversion (svnbot) 2008-01-15 15:31:02.000-0600

Repository: asterisk
Revision: 5424

U   trunk/cdr/cdr_custom.c

------------------------------------------------------------------------
r5424 | kpfleming | 2008-01-15 15:31:02 -0600 (Tue, 15 Jan 2008) | 2 lines

ensure that successful configuration results in the module staying loaded (bug ASTERISK-3876)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=5424