I’m having a issue with CDR logging I think the CSV file logging is correct but it is miss some dates.
I’m logging to the csv file and to a odbc db.
I can log in vi isql to my odbc source
I do have data but the Time, fields are all 0000’s and the dnid field is blank
In cdr_odbc.conf
[global]
table=cdr
dsn => cdr
enable => yes
newcdrcolumns=yes
loguniqueid=yes
;hrtime=no
usegmtime=no
dispositionstring=yes
in cdr.conf
[csv]
usegmtime=yes ; log date/time in GMT. Default is “no”
loguniqueid=yes ; log uniqueid. Default is “no”
loguserfield=yes ; log user field. Default is “no”
accountlogs=yes ; create separate log file for each account code. Default is “yes”
;newcdrcolumns=yes ; Enable logging of post-1.8 CDR columns (peeraccount, linkedid, sequence).
; Default is “no”.
;[radius]
;usegmtime=yes ; log date/time in GMT
;loguniqueid=yes ; log uniqueid
;loguserfield=yes ; log user field
; Set this to the location of the radiusclient-ng configuration file
; The default is /etc/radiusclient-ng/radiusclient.conf
;radiuscfg => /usr/local/etc/radiusclient-ng/radiusclient.conf
[odbc]
usegmtime=no ; log date/time in GMT. Default is “no”
loguniqueid=yes ; log uniqueid. Default is “no”
loguserfield=yes ; log user field. Default is “no”
accountlogs=yes ; create separate log file for each account code. Default is “yes”
newcdrcolumns=yes ; Enable logging of post-1.8 CDR columns (peeraccount, linkedid, sequence).
; Default is “no”.
if I do an odbc show all I see the connections
asterisk -rx “odbc show all”
ODBC DSN Settings
Name: configuration
DSN: asterisk.configuration
Number of active connections: 1 (out of 1)
Logging: Disabled
Name: voicemail
DSN: asterisk.voicemail
Number of active connections: 1 (out of 1)
Logging: Disabled
Name: cdr
DSN: asterisk.log
Number of active connections: 1 (out of 1)
Logging: Disabled
Name: cel
DSN: asterisk.log
Number of active connections: 1 (out of 1)
Logging: Disabled
Name: logging
DSN: asterisk.log
Number of active connections: 1 (out of 1)
Logging: Disabled
Lost as to why i’m not logging everything I should be.