|
@@ -117,8 +117,8 @@ static cmd_export_t cmds[] = {
|
|
|
|
|
|
/* Exported parameters */
|
|
/* Exported parameters */
|
|
static param_export_t params[] = {
|
|
static param_export_t params[] = {
|
|
- {"pres_db_url", STR_PARAM, &pres_db_url.s},
|
|
|
|
- {"xcap_table", STR_PARAM, &xcap_table.s},
|
|
|
|
|
|
+ {"pres_db_url", PARAM_STR, &pres_db_url},
|
|
|
|
+ {"xcap_table", PARAM_STR, &xcap_table},
|
|
{"http_query_timeout", INT_PARAM, &http_query_timeout},
|
|
{"http_query_timeout", INT_PARAM, &http_query_timeout},
|
|
{"forward_active", INT_PARAM, &forward_active},
|
|
{"forward_active", INT_PARAM, &forward_active},
|
|
{0, 0, 0}
|
|
{0, 0, 0}
|
|
@@ -289,10 +289,8 @@ static int mod_init(void)
|
|
}
|
|
}
|
|
|
|
|
|
/* presence database */
|
|
/* presence database */
|
|
- pres_db_url.len = pres_db_url.s ? strlen(pres_db_url.s) : 0;
|
|
|
|
LM_DBG("pres_db_url=%s/%d/%p\n", ZSW(pres_db_url.s), pres_db_url.len,
|
|
LM_DBG("pres_db_url=%s/%d/%p\n", ZSW(pres_db_url.s), pres_db_url.len,
|
|
pres_db_url.s);
|
|
pres_db_url.s);
|
|
- xcap_table.len = xcap_table.s ? strlen(xcap_table.s) : 0;
|
|
|
|
|
|
|
|
if(pres_db_init() < 0) {
|
|
if(pres_db_init() < 0) {
|
|
return -1;
|
|
return -1;
|