Automatic Reconnect To ODBC Sources?

Home » Asterisk Users » Automatic Reconnect To ODBC Sources?
Asterisk Users No Comments

I am using Asterisk 1.8.10.1 on Ubuntu Server 12.04. I use MySQL to store CDR records using cdr_adaptive_odbc. The problem: When the mysql server fails for whatever reason, Asterisk never reconnects automatically! So I loose all CDR informations even after the MySQL server works again. isql (used as ODBC testtool) tells me, that ODBC reconnects or does a new connection on request, so ODBC seems not to be the problem, but Asterisk. Is there any automatic reconnect option on Asterisk concercing ODBC /
cdr_adaptive_odbc? My complete configuration including ODBC is as follows:

*ODBC:

/etc/odbcinst.ini
*
*/etc/odbc.ini *

*

ASTERISK CDR*:

*/etc/asterisk/res_odbc.conf*

*/etc/asterisk/cdr_adaptive_odbc.conf *

*/etc/asterisk/cdr.conf*

Thanks for any hint!

Best regards Stefan