[SR-Users] DBURL

shmick at riseup.net shmick at riseup.net
Tue Nov 4 16:32:47 CET 2014


[i have no idea about email subject nor anything else for this except
prior i configured rtpproxy to work with kamailio on a unix socket and
updated tls.cfg to use my cert/key]

running kamailio from

deb http://deb.kamailio.org/kamailio jessie main


$ sudo service kamailio restart
[FAIL] Not starting Kamailio SIP Server: invalid configuration file! ...
failed!
 failed!
[....] 0(15228) INFO: tls [tls_init.c:385]: init_tls_compression(): tls:
init_tls: disabling compression... 0(15228) : <core> [cfg.y:3436]:
yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg,
line 353, column 30-34: syntax error 0(15228) : <core> [cfg.y:3436]:
yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg,
line 353, column 30-34: Invalid arguments 0(15228) : <core>
[cfg.y:3439]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 353, column 35: ERROR: bad config file
(3 errors) 0(15228) WARNING: <core> [ppcfg.c:219]:
pp_ifdef_level_check(): different numbe[FAILpreprocessor directives:
N(#!IF[N]DEF) - N(#!ENDIF) = 1 ... failed!
 failed!


/* enhanced DB accounting */
#!ifdef WITH_ACCDB
modparam("acc", "db_flag", FLT_ACC)
modparam("acc", "db_missed_flag", FLT_ACCMISSED)
modparam("acc", "db_url", DBURL)
modparam("acc", "db_extra",
        "src_user=$fU;src_domain=$fd;src_ip=$si;"
        "dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")
#!endif


# ----- usrloc params -----
/* enable DB persistency for location entries */
#!ifdef WITH_USRLOCDB
modparam("usrloc", "db_url", *DBURL*) <--------not happy with DBURL here
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "use_domain", MULTIDOMAIN)
#!endif



More information about the sr-users mailing list