Asterisk version 1.4.18
Running “cdr status” from the command line returns:
CDR logging: enabled74*CLI>
CDR mode: simple
CDR output unanswered calls: no
CDR registered backend: csv
CDR registered backend: cdr_manager
CDR registered backend: cdr-custom
cdr.conf contents:
[general]
[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
[mysql]
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
cdr_mysql.conf contents:
[global]
hostname=localhost
dbname=asterisk
table=cdr
password=logger
user=asterisk_cdr
;port=3306
dbsock=/var/lib/mysql/mysql.sock
;sock=/tmp/mysql.sock
;userfield=1
Login works fine to the mysql CLI
"SELECT fields FROM cdr;" returns the following:
mysql> show fields from cdr;
±------------±-------------±-----±----±--------------------±------+
| Field | Type | Null | Key | Default | Extra |
±------------±-------------±-----±----±--------------------±------+
| calldate | datetime | NO | MUL | 0000-00-00 00:00:00 | |
| clid | varchar(80) | NO | | NULL | |
| src | varchar(80) | NO | | NULL | |
| dst | varchar(80) | NO | MUL | NULL | |
| dcontext | varchar(80) | NO | | NULL | |
| channel | varchar(80) | NO | | NULL | |
| dstchannel | varchar(80) | NO | | NULL | |
| lastapp | varchar(80) | NO | | NULL | |
| lastdata | varchar(80) | NO | | NULL | |
| duration | int(11) | NO | | 0 | |
| billsec | int(11) | NO | | 0 | |
| disposition | varchar(45) | NO | | NULL | |
| amaflags | int(11) | NO | | 0 | |
| accountcode | varchar(20) | NO | MUL | NULL | |
| userfield | varchar(255) | NO | | NULL | |
| uniqueid | varchar(32) | NO | | NULL | |
±------------±-------------±-----±----±--------------------±------+
16 rows in set (0.03 sec)
I have Realtime MySQL for the voicemail system working perfect.
This cdr thing is driving me nuts!
Thanks for any help!