[sr-dev] git:master:5b5d55bd: registrar: set current time before checking registered() conditions

Daniel-Constantin Mierla miconda at gmail.com
Mon Feb 19 10:31:26 CET 2018


Module: kamailio
Branch: master
Commit: 5b5d55bd377b0572efaceeb0feb164bf5dd26bf0
URL: https://github.com/kamailio/kamailio/commit/5b5d55bd377b0572efaceeb0feb164bf5dd26bf0

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-02-19T10:31:08+01:00

registrar: set current time before checking registered() conditions

- patch by Dmitri Savolainen, closes GH #1267

---

Modified: src/modules/registrar/lookup.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5b5d55bd377b0572efaceeb0feb164bf5dd26bf0.diff
Patch: https://github.com/kamailio/kamailio/commit/5b5d55bd377b0572efaceeb0feb164bf5dd26bf0.patch

---

diff --git a/src/modules/registrar/lookup.c b/src/modules/registrar/lookup.c
index b18fe993aa..84c0f40208 100644
--- a/src/modules/registrar/lookup.c
+++ b/src/modules/registrar/lookup.c
@@ -759,6 +759,7 @@ int registered4(struct sip_msg* _m, udomain_t* _d, str* _uri, int match_flag,
 			}
 		}
 
+		get_act_time();
 		for (ptr = r->contacts; ptr; ptr = ptr->next) {
 			if(!VALID_CONTACT(ptr, act_time)) continue;
 			if (match_callid.s && /* optionally enforce tighter matching w/ Call-ID */




More information about the sr-dev mailing list