Hello,

On 29/01/16 07:03, Sharon Nathaniel wrote:
Hi,

I am not sure, if its a kamailio issue or something else, but our Kamailio 4.2 server crashes everyday. Throwing out these logs: http://pastebin.com/z1MWdk7q. We have to restart the server to get this fixed. Please help us understand what is causing the issue.

the MySQL server was not reachable according to the log message:

Jan 29 04:13:59 urcmcs /usr/local/sbin/kamailio[1933]: ERROR: db_mysql [km_dbase.c:123]: db_mysql_submit_query(): driver error on query: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Was your MySQL server running all the time? Kamailio should reconnect when the mysql server becomes available again.

Cheers,
Daniel
-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu