Re: [sr-dev] [kamailio/kamailio] presence_xml db_url param can not set (#1809)

2019-01-15 Thread Daniel-Constantin Mierla
In preparation to release v5.2.1, I already backported the related patches. I 
am closing this one, if there are still issues, reopen.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1809#issuecomment-454315547___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] presence_xml db_url param can not set (#1809)

2019-01-15 Thread Daniel-Constantin Mierla
Closed #1809.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1809#event-2073983962___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] presence_xml db_url param can not set (#1809)

2019-01-13 Thread Daniel-Constantin Mierla
It was a "silent" conflict in declaration of db_url variable between the 
presence and presence_xml modules -- the presence_xml is built on top of 
presence module, and it was including the `../presence/presence.h` header file, 
which already declared db_url as extern.

I pushed couple of patches to master branch, can you try it? If all ok, I will 
backport to branch 5.2 (5.2.1 being planned to be released in a few days). 
Thanks!


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1809#issuecomment-453818898___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] presence_xml db_url param can not set (#1809)

2019-01-12 Thread Cui Gang
I found a confusing thing. I simplified the configuration file
```
debug=3

/* set paths to location of modules */
mpath="/usr/local/kamailio/lib64/kamailio/modules/"

loadmodule "db_mysql.so"
loadmodule "tm.so"
loadmodule "sl.so"

loadmodule "presence.so"
loadmodule "presence_xml.so"

modparam("presence_xml", "db_url", 
"mysql://kamailio:kamailiorw@localhost/kamailio52")

request_route {
exit;
}
```
 Log Messages
About db_url
```
0(4147) DEBUG:  [core/modparam.c:83]: set_mod_param_regex(): 
'presence_xml' matches module 'presence_xml'
 0(4147) DEBUG:  [core/sr_module.c:711]: find_param_export(): found 
 in module presence_xml 
[/usr/local/kamailio/lib64/kamailio/modules/presence_xml.so]
 0(4147) DEBUG:  [core/modparam.c:99]: set_mod_param_regex(): found 
 in module presence_xml 
[/usr/local/kamailio/lib64/kamailio/modules/presence_xml.so]
...
0(4149) DEBUG:  [core/sr_module.c:896]: init_mod(): presence
 0(4149) DEBUG: presence [presence.c:282]: mod_init(): 
db_url=mysql://kamailio:kamailiorw@localhost/kamailio52/48/0x106853338
...
0(4149) DEBUG:  [core/sr_module.c:896]: init_mod(): presence_xml
 0(4149) DEBUG: presence_xml [presence_xml.c:159]: mod_init(): 
db_url=mysql://kamailio:kamailiorw@localhost/kamailio/46/0x1079a7d64
...
 0(4149) DEBUG: db_mysql [km_my_con.c:108]: db_mysql_new_connection(): opening 
connection: mysql://:@localhost/kamailio
 0(4149) ERROR: db_mysql [km_my_con.c:139]: db_mysql_new_connection(): driver 
error: Unknown database 'kamailio'
 0(4149) ERROR:  [db.c:319]: db_do_init2(): could not add connection to 
the pool 0(4149) ERROR: presence_xml [presence_xml.c:214]: mod_init(): while 
connecting to database
 0(4149) ERROR:  [core/sr_module.c:899]: init_mod(): Error while 
initializing module presence_xml 
(/usr/local/kamailio/lib64/kamailio/modules/presence_xml.so)
ERROR: error while initializing modules
```
I set presence_xml db_url only. But why presence db_url be set? And 
presence_xml db_url still is the default value.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1809#issuecomment-453796536___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev