Module: kamailio
Branch: master
Commit: 2ffeaf6f480cbe1581395519b252c2bf35291ef7
URL:
https://github.com/kamailio/kamailio/commit/2ffeaf6f480cbe1581395519b252c2b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-01-15T12:15:58+01:00
usrloc: fix condition for keepalive interval
---
Modified: src/modules/usrloc/ul_keepalive.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2ffeaf6f480cbe1581395519b252c2b…
Patch:
https://github.com/kamailio/kamailio/commit/2ffeaf6f480cbe1581395519b252c2b…
---
diff --git a/src/modules/usrloc/ul_keepalive.c b/src/modules/usrloc/ul_keepalive.c
index 8d0fc259bdf..e5a013b45a3 100644
--- a/src/modules/usrloc/ul_keepalive.c
+++ b/src/modules/usrloc/ul_keepalive.c
@@ -164,7 +164,7 @@ int ul_ka_urecord(urecord_t *ur)
}
if(ul_ka_interval > 0 && uc->last_keepalive > 0) {
ka_limit = ul_ka_interval + (fastrand() % ul_ka_randomize);
- if((uc->last_keepalive + ka_limit) < tnow) {
+ if((uc->last_keepalive + ka_limit) > tnow) {
/* not yet the time for keepalive */
continue;
}