Everything I need is okay, however my CDR module is not registering anything.
I can test only for internal calls, I have enabled the recording.
I can see that the files are created in /var/log/spool/asterisk/monitor/*
My suggest here is that asteriskcdrdb table doesn’t co-respond with asterisk table in MySql Database.
When I check modules, I got the following:
asterisk -rx “module show like cdr”
cdr_pgsql.so - not running - due to failed to load the module.
cdr_sqlite3_custom.so - not running - due to failed to load the module.
cdr_tds.so - not running - due to failed to load the module.
When I try to load the module that is not running manually, it fails.
Please if anyone can help, it will be great appreciated.
However, when I type asterisk -rx ‘cdr show status’.
Logging: Enabled
Mode: Simple
Log calls by default: Yes
Log unanswered calls: No
Log congestion: No
Ignore bridging changes: No
Ignore dial state changes: No
7328[2024-11-24 04:19:47] ERROR[4840] loader.c: Error loading module ‘cdr_mysql.so’: /usr/lib64/asterisk/modules/cdr_mysql.so: cannot open shared object file: No such file or directory
Hi @Agripa FreePBX uses the ODBC driver to update the CDR. You can check if ODBC is connected by running the command below. If you don’t see an active connection, there might be an issue with your ODBC configuration in res_odbc_additional.conf.
Example
asterisk -rx "odbc show all"
ODBC DSN Settings
-----------------
Name: asteriskcdrdb
DSN: MySQL-asteriskcdrdb
Number of active connections: 1 (out of 5)
Logging: Disabled
Name & DNS are identical.
I have the following line: Last Fail connection attempt & it’s today.
That means I have a problem with the connector, do you have a solution for that or just to try to upgrade the driver?
cat /etc/odbcinst.ini
In my version, Driver name is: [MariaDB Unicode]
Driver=/usr/lib/x86_64-linux-gnu/odbc/libmaodbc.so
Description=MariaDB Connector/ODBC(Unicode)
FileUsage=1
I have used the wrong name for Driver in configuration:
cat /etc/odbc.ini
[MySQL-Asteriskcdrdb]
Description = MySQL connection to ‘asteriskcdrdb’ database The WRONG versionDriver = MySQL
****The RIGHT versionDriver = MariaDB Unicode
Now i have test the PBX & it’s working, also now i see I am connected: