Skip to content

Commit

Permalink
registrar: fix expires value
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anderson committed Mar 10, 2015
1 parent 86e9f78 commit 9811ebb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kamailio/registrar-role.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ route[ATTEMPT_AUTHORIZATION]
if($var(expires) == 0) {
xlog("L_INFO", "$ci|end|unregister request from $Au $si:$sp");
exit;
} else if($var(Expires) < REGISTRAR_MIN_EXPIRES) {
$var(Expires) = REGISTRAR_MIN_EXPIRES;
} else if($var(Expires) > REGISTRAR_MAX_EXPIRES) {
$var(Expires) = REGISTRAR_MAX_EXPIRES;
}

if($(proto{s.tolower}) == "udp" || $(proto{s.tolower}) == "tcp" || $(proto{s.tolower}) == "tls") {
Expand Down

0 comments on commit 9811ebb

Please sign in to comment.