### Description
If mqueue is configured to use db_text, kamailio will not start.
#### Reproduction
Here's a simple config that will expose the issue:
```
loadmodule "xlog.so"
loadmodule "db_text.so"
loadmodule "mqueue.so"
modparam("mqueue", "db_url",
"text:///usr/local/etc/kamailio/dbtext")
modparam("mqueue", "mqueue",
"name=mqueue_dbtext;dbmode=1")
# ------------------------- request routing logic -------------------
# main routing logic
route{
xlog("\n");
}
```
Content of the dbtext file:
```
$ cat /usr/local/etc/kamailio/dbtext/mqueue_dbtext
id(int,auto) key(string) val(string)
```
#### Log Messages
```
May 31 23:07:47 asrock kamailio: INFO: mqueue [mqueue_mod.c:247]: mq_param(): mqueue
param: [mqueue_dbtext|1|0]
May 31 23:07:47 asrock kamailio: DEBUG: <core> [core/sr_module.c:752]:
find_mod_export_record(): found export of <db_bind_api> in module db_text
[/home/osas/src/kamailio/src/modules/db_text/db_text.so]
May 31 23:07:47 asrock kamailio: DEBUG: <core> [db.c:210]: db_bind_mod(): using db
bind api for db_text
May 31 23:07:47 asrock kamailio: DEBUG: db_text [dbt_base.c:54]: dbt_init(): initializing
for db url: [text:///usr/local/etc/kamailio/dbtext]
May 31 23:07:47 asrock kamailio: ERROR: db_text [dbt_lib.c:111]: dbt_cache_get_db():
dbtext cache is not initialized! Check if you loaded dbtext before any other module that
uses it
May 31 23:07:47 asrock kamailio: ERROR: db_text [dbt_base.c:97]: dbt_init(): cannot get
the link to database
May 31 23:07:47 asrock kamailio: ERROR: mqueue [mqueue_db.c:67]: mqueue_db_open_con():
failed to connect to the database
May 31 23:07:47 asrock kamailio: ERROR: mqueue [mqueue_db.c:101]: mqueue_db_load_queue():
no db connection
May 31 23:07:47 asrock kamailio: ERROR: mqueue [mqueue_mod.c:251]: mq_param(): error
loading mqueue: mqueue_dbtext from DB
May 31 23:07:47 asrock kamailio: CRITICAL: <core> [core/cfg.y:3903]: yyerror_at():
parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 18, column 61:
Can't set module parameter
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3474
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3474(a)github.com>