Skip to content

Commit

Permalink
uac_registrant: print an error if registrar imposed expires to small
Browse files Browse the repository at this point in the history
(cherry picked from commit c616b08)
  • Loading branch information
ovidiusas committed May 30, 2014
1 parent 4a9a4a9 commit e90adea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/uac_registrant/registrant.c
Expand Up @@ -361,6 +361,12 @@ int run_reg_tm_cback(void *e_data, void *data, void *r_data)
}
rec->state = REGISTERED_STATE;
if (exp) rec->expires = exp;
if (rec->expires <= timer_interval) {
LM_ERR("Please decrease timer_interval=[%u]"
" - imposed server expires [%u] to small for AOR=[%.*s]\n",
timer_interval, rec->expires,
rec->td.rem_uri.len, rec->td.rem_uri.s);
}
rec->registration_timeout = now + rec->expires - timer_interval;
break;

Expand Down

0 comments on commit e90adea

Please sign in to comment.