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)
(cherry picked from commit e9924d323c7fe4f96610ea78ab53f06d64130e8d)

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