JR Richardson
2012-Oct-19 22:09 UTC
[asterisk-users] Asterisk 1.6.0 disable cdr account logs?
Hi All, I would like to disable the cdr account logs but in 1.6.0 but the 'accountlogs=no' switch is not available till 1.8 as far as I can tell. Is the any switch I can turn off int he Mkae file for the cdr_csv.so module to disable accountcode logs? Thanks. JR -- JR Richardson Engineering for the Masses
Danny Nicholas
2012-Oct-22 13:38 UTC
[asterisk-users] Asterisk 1.6.0 disable cdr account logs?
Just add noload=cdr_csv.so to modules.conf -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of JR Richardson Sent: Friday, October 19, 2012 5:09 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Asterisk 1.6.0 disable cdr account logs? Hi All, I would like to disable the cdr account logs but in 1.6.0 but the 'accountlogs=no' switch is not available till 1.8 as far as I can tell. Is the any switch I can turn off int he Mkae file for the cdr_csv.so module to disable accountcode logs? Thanks. JR -- JR Richardson Engineering for the Masses -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
JR Richardson
2012-Oct-22 16:58 UTC
[asterisk-users] Asterisk 1.6.0 disable cdr account logs?
> Just add noload=cdr_csv.so to modules.conf > > -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of JR Richardson > Sent: Friday, October 19, 2012 5:09 PM > To: asterisk-users at lists.digium.com > Subject: [asterisk-users] Asterisk 1.6.0 disable cdr account logs? > > Hi All, > > I would like to disable the cdr account logs but in 1.6.0 but the > 'accountlogs=no' switch is not available till 1.8 as far as I can tell. Is > the any switch I can turn off int he Mkae file for the cdr_csv.so module to > disable accountcode logs? >Correct me if I'm wrong, if I noload=cdr_csv.so, won't that disable all csv CDR's. I still want the Master CSV file with account code, what I don't want is a seperate CSV CDR for each accountcode generated. Thanks. JR -- JR Richardson Engineering for the Masses
JR Richardson
2012-Oct-29 21:33 UTC
[asterisk-users] Asterisk 1.6.0 disable cdr account logs?
> My bad. I sent Igor to the boneyard to fetch 1.6.0.28 and it appears to me > that by commenting out lines 309-312 and doing a fresh make you eliminate > the extra files (or make them empty). >Appriciate the suggestion but commenting out 309-312 refused to compile: cdr_csv.c /* if (!ast_strlen_zero(cdr->accountcode)) { if (writefile(buf, cdr->accountcode)) ast_log(LOG_WARNING, "Unable to write CSV record to account file '%s' : %s\n", cdr->a$ */ } pbx1:/usr/src/asterisk-1.6.0.28# make CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-1.6.0.28/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-1.6.0.28/menuselect' Generating input for menuselect ... menuselect/menuselect --check-deps menuselect.makeopts menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... [CC] cdr_csv.c -> cdr_csv.o cdr_csv.c:314: error: expected identifier or ???(??? before ???return??? cdr_csv.c:315: error: expected identifier or ???(??? before ???}??? token make[1]: *** [cdr_csv.o] Error 1 make: *** [cdr] Error 2 Any other options? Thanks. JR -- JR Richardson Engineering for the Masses
JR Richardson
2012-Oct-30 15:16 UTC
[asterisk-users] Asterisk 1.6.0 disable cdr account logs?
> JR Richardson wrote: >>> My bad. I sent Igor to the boneyard to fetch 1.6.0.28 and it appears to me >>> that by commenting out lines 309-312 and doing a fresh make you eliminate >>> the extra files (or make them empty). >>> >> Appriciate the suggestion but commenting out 309-312 refused to compile: >> >> cdr_csv.c >> >> /* if (!ast_strlen_zero(cdr->accountcode)) { >> if (writefile(buf, cdr->accountcode)) >> ast_log(LOG_WARNING, "Unable to write CSV >> record to account file '%s' : %s\n", cdr->a$ >> */ } > > You need to place the */ after the } or else they are mismatched and > like you have seen, the universe will explode.Got it, after properly commenting out that section and re-compiling and reloading cdr_csv.so, I still get the individual account code CDR's. Any other suggestions? Thanks. JR -- JR Richardson Engineering for the Masses