Automatically reconnect to ODBC sources?
Posted
by
stefan.at.wpf
on Server Fault
See other posts from Server Fault
or by stefan.at.wpf
Published on 2012-08-31T22:01:15Z
Indexed on
2012/09/08
21:40 UTC
Read the original article
Hit count: 378
I am using Asterisk 1.8.10.1 and a MySQL database connected via ODBC to store CDRs. When my MySQL database isn't available when Asterisk starts or has an outage while Asterisk is running, I would expect Asterisk to retry to connect to the database, but this doesn't happen! Anyone knows where I can enable some kidn of automatic reconnect to databases in Asterisk?
My res_odbc.conf looks like this:
[asterisk]
enabled => yes
dsn => asterisk-connector
username => user
password => pass
pre-connect => yes
pooling => no
limit => 1
idlecheck => 1
negative_connection_cache => 1
© Server Fault or respective owner