Module: kamailio Branch: master Commit: 5b5d55bd377b0572efaceeb0feb164bf5dd26bf0 URL: https://github.com/kamailio/kamailio/commit/5b5d55bd377b0572efaceeb0feb164bf...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/5b5d55bd377b0572efaceeb0feb164bf... Patch: https://github.com/kamailio/kamailio/commit/5b5d55bd377b0572efaceeb0feb164bf...
---
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 */