Skip to content

Commit

Permalink
registrar: set current time before checking registered() conditions
Browse files Browse the repository at this point in the history
- patch by Dmitri Savolainen, closes GH #1267

(cherry picked from commit 5b5d55b)
  • Loading branch information
miconda committed Feb 22, 2018
1 parent fe299de commit 438e11a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/registrar/lookup.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 438e11a

Please sign in to comment.