[SR-Users] Kamailio with Sqlite

Ashwin Kumar R ec.rakumar at tatapowersed.com
Tue May 20 16:09:38 CEST 2014


Hi,

I want to configure kamailio to use SQLITE instead of MYSQL.I made 
DB_ENGINE=SQLITE in kamctlrc file and loadmodule "db_sqlite.so" in 
kamctl.conf file.

But when I changed these parameters


modparam("auth_db", "db_url", "sqlite:///etc/kamailio/kamailio.db")

#!define DBURL "sqlite:///etc/kamailio/kamailio.db"

Im getting the following error

ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start 
failed


I checked the log file ,following is the comment in syslog

May 20 19:16:30 r13pc80-desktop /usr/local/sbin/kamailio[10920]: ERROR: 
db_sqlite [dbase.c:67]: db_sqlite_new_connection(): failed to open 
sqlite database 'etc/kamailio/kamailio.db'

What kamailio.cfg and kamctlrc parameters do I need to change to do
this?

Regards
Ashwin




More information about the sr-users mailing list