[SR-Users] Kamailio with Sqlite

Ashwin Kumar R ec.rakumar at tatapowersed.com
Thu May 22 14:57:03 CEST 2014


Dear All,

Solved the Issue.It was the the location problem itself.

had to change it to

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


Regards
Ashwin


On 2014-05-21 20:54, Ashwin Kumar R wrote:
> Dear Sir,
> 
> I'm still getting the same error .
> 
> I checked the log file ,following is the comments in syslog.
> 
> May 21 20:11:44 r13pc80-desktop /usr/local/sbin/kamailio[3470]: ERROR:
> db_sqlite [dbase.c:67]: db_sqlite_new_connection(): failed to open
> sqlite database '/etc/kamailio/kamailio.db'
> 
> 
> 
> I have attached my kamctlrc & kamailio.conf files.Please advice.
> 
> Regards
> Ashwin
> 
> 
> 
> 
> On 2014-05-21 01:15, Daniel-Constantin Mierla wrote:
> Hello,
> 
> try with:
> 
> modparam("auth_db", "db_url", "sqlite:////etc/kamailio/kamailio.db")
> 
> Note the four times /.
> 
> Cheers,
> Daniel
> 
> On 20/05/14 16:09, Ashwin Kumar R wrote:
> 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
> 
> 
> _______________________________________________
> 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