NethServer Version: NethServer release 7.9.2009 (final)
Kernel Release: 3.10.0-1160.15.2.el7.x86_64
Module: Asterisk 13.38.1 / FreePBX 14.0.16.4
I have some trouble with Asterisks/FreePBX database connection so the Error: “app_voicemail_odbcstorage.c:5901 inboxcount2: Failed to obtain database object for ‘asteriskcdrdb’!” repeats often.
“asterisk -rx “odbc show”” shows me there are no ODBC DSN Settings in Asterisk.
Compared with an testing installation i have found, that the “/etc/asterisk/res_odbc_additional.conf” of my installation ist “empty”, except the lines generated from FreePBX.
I would fill in the needed sections and informations like:
" [asteriskcdrdb]
enabled=>yes
dsn=>MySQL-asteriskcdrdb
pre-connect=>yes
max_connections=>5
username=>freepbxuser
password=>mysuperduperpasswordforthispost
database=>asteriskcdrdb"
but the edited config will overwritten from FreePBX.
As described in FreePBX Wiki, the based config file should be “/etc/odbc.ini”, but this file generates from e-smith in Nethserver. Now i am confused.
I cant find the e-smith template AND i cant find the source where e-smith gets the needed information for database connection like username and password for generating the config file.
Any suggestions?
Regards yummiweb