We were wondering recently how to achieve carrier grade service with a VoIP application – we find out, that apart from the fact of having a hot backup , we needed to be able to transparently switch over the hot backup without disrupting our end users service.
The solution came out as follow :
– 2x servers with an exact copy of data (mysql multi master replication)
– DNS settings with a TTL of 600 secondes
– a monitoring agent at the DNS level, checking Asterisk Manager (port 5038) every 3 minutes
After implementation, failover was working great, and sip user agents were able to failover to the standby Asterisk server after failure. Conclusion: disruption time is low and service continuity can be assured.
Some DNS providers charge hundred of dollars to achieve this kind of deployment, but it’s possible to find affordable ones giving you failover and TTL control.