we are currently using 8 Asterisk’s with 15 sip Accounts in the same private network. Therefore we use a central Database-Server which replicates in real-time to every local Asterisk-Database.
Frequently an error occurs which interrupts the real-time replication.
To apply new concern conditions we want to unite every sip account to 1 Asterisk in a private cloud. The central database server will be “right beside” the Asterisk.
To ensure telephony can be restored during a server fault, we will run a second Asterisk with the same configuration in stand-by.
Is it possible to use Asterisk without local database, by query the central database?
It would have 2 benefits:
This would end the replication error.
In case we have to use the back-up Asterisk we do not have to replicate the current database before we can use it.
First of all, I do encourage you do work further on replication and clustering for your database. Secondly, yes it is possible to use external databases. What back-end are you using?
For instance, for MySql you can have something like below, in your res_config_mysql:
[general]
dbhost = yoursubdomain.domain.com
dbname = asteriskdb
dbuser = asteriskuser
dbpass = somethingverylong
dbport = 3306