Browse code

registrar: set current time before checking registered() conditions

- patch by Dmitri Savolainen, closes GH #1267

(cherry picked from commit 5b5d55bd377b0572efaceeb0feb164bf5dd26bf0)
(cherry picked from commit 438e11a04c488a8f53555c54d1a12b50213cd342)

Daniel-Constantin Mierla authored on 19/02/2018 09:29:46
Showing 1 changed files
... ...
@@ -754,6 +754,7 @@ int registered4(struct sip_msg* _m, udomain_t* _d, str* _uri, int match_flag,
754 754
 			}
755 755
 		}
756 756
 
757
+		get_act_time();
757 758
 		for (ptr = r->contacts; ptr; ptr = ptr->next) {
758 759
 			if(!VALID_CONTACT(ptr, act_time)) continue;
759 760
 			if (match_callid.s && /* optionally enforce tighter matching w/ Call-ID */