Fresh installed FreePBX 15 with Asterisk 16 on Debian 9 using the official wiki guide
Everything smooth during the installation, ODBC connection is fine, but no CDR written neither in MySQL asteriskcdrdb table nor CSV file.
root@pbx:/usr/src# isql -v MySQL-asteriskcdrdb
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> select 1
+---------------------+
| 1 |
+---------------------+
| 1 |
+---------------------+
SQLRowCount returns 1
1 rows fetched
SQL>
Connected to Asterisk 16.6.1 currently running on pbx (pid = 1424)
pbx*CLI> odbc show asteriskcdrdb
ODBC DSN Settings
-----------------
Name: asteriskcdrdb
DSN: MySQL-asteriskcdrdb
Number of active connections: 1 (out of 5)
Logging: Disabled
pbx*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 (suspended)
Adaptive ODBC
root@pbx:~# cd /var/log/asterisk/cdr-csv/
root@pbx:/var/log/asterisk/cdr-csv# ll
total 8.0K
drwxrwxr-x 2 asterisk asterisk 4.0K Nov 4 10:47 .
drwxrwxr-x 5 asterisk asterisk 4.0K Nov 4 11:53 ..
root@pbx:/var/log/asterisk/cdr-csv# ls -l
total 0