|
@@ -111,6 +111,7 @@ int ul_keepalive_timeout = 0;
|
|
int ul_db_ops_ruid = 1;
|
|
int ul_db_ops_ruid = 1;
|
|
int ul_expires_type = 0;
|
|
int ul_expires_type = 0;
|
|
int ul_db_raw_fetch_type = 0;
|
|
int ul_db_raw_fetch_type = 0;
|
|
|
|
+int ul_rm_expired_delay = 0;
|
|
|
|
|
|
str ul_xavp_contact_name = {0};
|
|
str ul_xavp_contact_name = {0};
|
|
|
|
|
|
@@ -238,6 +239,7 @@ static param_export_t params[] = {
|
|
{"db_insert_null", PARAM_INT, &ul_db_insert_null},
|
|
{"db_insert_null", PARAM_INT, &ul_db_insert_null},
|
|
{"server_id_filter", PARAM_INT, &ul_db_srvid},
|
|
{"server_id_filter", PARAM_INT, &ul_db_srvid},
|
|
{"db_timer_clean", PARAM_INT, &ul_db_timer_clean},
|
|
{"db_timer_clean", PARAM_INT, &ul_db_timer_clean},
|
|
|
|
+ {"rm_expired_delay", PARAM_INT, &ul_rm_expired_delay},
|
|
{0, 0, 0}
|
|
{0, 0, 0}
|
|
};
|
|
};
|
|
|
|
|
|
@@ -272,6 +274,17 @@ static int mod_init(void)
|
|
int i;
|
|
int i;
|
|
udomain_t* d;
|
|
udomain_t* d;
|
|
|
|
|
|
|
|
+ if(ul_rm_expired_delay!=0) {
|
|
|
|
+ if(db_mode != DB_ONLY) {
|
|
|
|
+ LM_ERR("rm expired delay feature is available for db only mode\n");
|
|
|
|
+ return -1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(ul_rm_expired_delay<0) {
|
|
|
|
+ LM_WARN("rm expired delay value is negative (%d) - setting it to 0\n",
|
|
|
|
+ ul_rm_expired_delay);
|
|
|
|
+ ul_rm_expired_delay = 0;
|
|
|
|
+ }
|
|
if(sruid_init(&_ul_sruid, '-', "ulcx", SRUID_INC)<0)
|
|
if(sruid_init(&_ul_sruid, '-', "ulcx", SRUID_INC)<0)
|
|
return -1;
|
|
return -1;
|
|
|
|
|