9 jan 2013 kl. 23:54 skrev Klaus Darilion <klaus.mailinglists(a)pernau.at>at>:
Am 09.01.2013 23:07, schrieb Olle E. Johansson:
Hi!
I have a strange issue with the domain module in git HEAD.
It fails to read db_url for some reason, always using the default MYSQL one.
With the attached configuration i get this messages (I added a debug printout of db_url)
0(63776) DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: domain
0(63776) DEBUG: domain [domain_mod.c:184]: initializing
0(63776) DEBUG: domain [domain_mod.c:211]: **** DB_URL
mysql://kamailio:kamailiorw@localhost/okamailio
0(63776) DEBUG: domain [domain_mod.c:212]: **** register_myself 1
0(63776) DEBUG: <core> [sr_module.c:674]: find_export_record: found
<db_bind_api> in module db_mysql [/usr/local/lib64/kamailio/modules/db_mysql.so]
0(63776) DEBUG: <core> [db.c:212]: using db bind api for db_mysql
0(63776) DEBUG: <core> [db.c:317]: connection 0x106831940 not found in pool
0(63776) DEBUG: db_mysql [km_my_con.c:94]: opening connection:
mysql://xxxx:xxxx@localhost/okamailio
Typo?
mysql://xxxx:xxxx@localhost/okamailio
^^^
That's taken from the default setting. If you look at my config, I have a very
different setting!
/O
klaus
-----------------
I fail to find out why this particular module fails to read the config. It seems to read
the register_myself value,
but not db_url.
/O
------------------------- CUT HERE --------------------
debug=2
log_stderror=yes
fork=no
# ------------------ module loading ----------------------------------
mpath="/usr/local/lib64/kamailio/modules:/usr/local/lib64/kamailio/modules_k"
loadmodule "usrloc.so" # The user locaion database
loadmodule "sl.so"
loadmodule "registrar.so" # The registrar that manage the usrloc
loadmodule "db_mysql.so" # Handle record-routing
loadmodule "domain.so" # Domains module
modparam("domain", "db_url",
"mysql://ser:pass@db_host/ser")
modparam("domain", "domain_table", "domain")
modparam("domain", "domain_attrs_table", "domain_attrs")
modparam("domain", "register_myself", 1)
# ------------------------- request routing logic -------------------
route {
;
}
_______________________________________________
sr-dev mailing list
sr-dev(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev