Module: kamailio
Branch: master
Commit: 1caf97eee90fa5711b60f5cb7bf3a21a0144d4b6
URL:
https://github.com/kamailio/kamailio/commit/1caf97eee90fa5711b60f5cb7bf3a21…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-01-26T08:41:19+01:00
usrloc: proper condition when using rm_expired_delay
---
Modified: src/modules/usrloc/udomain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1caf97eee90fa5711b60f5cb7bf3a21…
Patch:
https://github.com/kamailio/kamailio/commit/1caf97eee90fa5711b60f5cb7bf3a21…
---
diff --git a/src/modules/usrloc/udomain.c b/src/modules/usrloc/udomain.c
index a3d948ad0b..8f5bfe3061 100644
--- a/src/modules/usrloc/udomain.c
+++ b/src/modules/usrloc/udomain.c
@@ -902,7 +902,7 @@ int db_timer_udomain(udomain_t* _d)
keys[0] = &expires_col;
ops[0] = "<";
vals[0].nul = 0;
- UL_DB_EXPIRES_SET(&vals[0], act_time + 1 + ul_rm_expired_delay);
+ UL_DB_EXPIRES_SET(&vals[0], act_time + 1 - ul_rm_expired_delay);
keys[1] = &expires_col;
ops[1] = OP_NEQ;