[SR-Users] Kamailio fails to start when MySQL down

Olle E. Johansson oej at edvina.net
Fri Sep 16 17:57:20 CEST 2016


> On 16 Sep 2016, at 11:46, Daniel Pocock <daniel at pocock.pro> wrote:
> 
> 
> 
> I recently set up a Kamailio instance using the default configuration
> for HOMER with MySQL[1]
> 
> The database was not running and Kamailio refused to start.
> 
> Would it be better for Kamailio to start anyway and go into a loop
> trying to connect to the database, just as if auto_reconnect was set?
> 
> This is useful for people who start Kamailio from their init script and
> can't be sure if their database host is up before their Kamailio host boots
> 
> 
Check if you can do that using db_cluster.
In most cases I don’t want Kamailio to start with no database, so in my case it’s a good thing (TM) :-)

/O
> 
> 
> 
> 1.
> https://github.com/sipcapture/homer-api/blob/master/examples/sipcapture/sipcapture.kamailio
> 
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




More information about the sr-users mailing list