Dear all,
I have problems enabling a custom CDR to write to /var/log/asterisk/cdr-custom as it is expected to.
My cdr.conf (in /etc/asterisk) is following:
[general] enable=yes
[csv] usegmtime=yes loguniqueid=yes loguserfield=yes accountlogs=yes
[custom] usegmtime=yes loguniqueid=yes loguserfield=yes accountlogs=yes
My cdr_custom.conf (in /etc/asterisk) is following:
[custom]
usegmtime=yes
loguniqueid=yes
loguserfield=yes
accountlogs=yes
[mappings]
Master.csv => ${CSV_QUOTE(${CDR(CDRglob_CID)})},${CSV_QUOTE(${CDR(src)})},${CSV_QUOTE(${CDR(dst)})},${CSV_QUOTE(${CDR(dcontext)})},${CSV_QUOTE(${CDR(channel)})},${CSV_QUOTE(${CDR(dstchannel)})},${CSV_QUOTE(${CDR(lastapp)})},${CSV_QUOTE(${CDR(lastdata)})},${CSV_QUOTE(${CDR(start)})},${CSV_QUOTE(${CDR(answer)})},${CSV_QUOTE(${CDR(end)})},${CSV_QUOTE(${CDR(duration)})},${CSV_QUOTE(${CDR(billsec)})},${CSV_QUOTE(${CDR(disposition)})},${CSV_QUOTE(${CDR(amaflags)})},${CSV_QUOTE(${CDR(accountcode)})},${CSV_QUOTE(${CDR(uniqueid)})},${CSV_QUOTE(${CDR(userfield)})},${CDR(sequence)}
Simple.csv => ${CSV_QUOTE(${EPOCH})},${CSV_QUOTE(${CDR(src)})},${CSV_QUOTE(${CDR(dst)})}
So yet I am getting no custom CSV generated in > /var/log/asterisk/cdr-custom
. Master.csv generates in /var/log/asterisk/cdr-csv
without any problems.
A few more points:
raspbx*CLI> cdr show status
Call Detail Record (CDR) settings
----------------------------------
Logging: Enabled
Mode: Simple
Log unanswered calls: No
Log congestion: No
* Registered Backends
-------------------
csv
cdr_manager
Adaptive ODBC
raspbx*CLI> module show like cdr
Module Description Use Count Status Support Level
app_cdr.so Tell Asterisk to not maintain a CDR for 0 Running core
app_forkcdr.so Fork The CDR into 2 separate entities 0 Running core
cdr_adaptive_odbc.so Adaptive ODBC CDR backend 0 Running core
cdr_csv.so Comma Separated Values CDR Backend 0 Running extended
cdr_manager.so Asterisk Manager Interface CDR Backend 0 Running core
cdr_odbc.so ODBC CDR Backend 0 Not Running extended
cdr_pgsql.so PostgreSQL CDR Backend 0 Not Running extended
cdr_sqlite3_custom.so SQLite3 Custom CDR Module 0 Not Running extended
cdr_syslog.so Customizable syslog CDR Backend 0 Not Running core
cdr_tds.so FreeTDS CDR Backend 0 Not Running extended
func_cdr.so Call Detail Record (CDR) dialplan functi 0 Running core
11 modules loaded
Asterisk 13.15.0 built by root @ raspbx on a armv6l running Linux on 2017-04-09 17:31:05 UTC
Please advise.
Thank you in advance.
With regards, Evgenii.