Browse Source

revert to 4.1 settings

drop_requests
lazedo 8 years ago
committed by Luis Azedo
parent
commit
8967add4db
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      kamailio/registrar-role.cfg

+ 9
- 1
kamailio/registrar-role.cfg View File

@ -254,7 +254,7 @@ route[SAVE_LOCATION]
}
}
if(@hf_value_exists.contact.expires == "1") {
if(@contact.expires) {
$var(expires) = @contact.expires;
} else {
if(is_present_hf("Expires")) {
@ -264,6 +264,14 @@ route[SAVE_LOCATION]
}
}
## this is what we should be using
## but ulrcd seems to have a weird leak
## if($var(save_result) == 3) {
## $var(expires) = 0;
## } else {
## $var(expires) = $xavp(ulrcd=>expires);
## }
if($var(expires) == 0) {
xlog("L_INFO", "$ci|end|unregister request from $Au $si:$sp\n");
$var(Status) = "Unregistered";


Loading…
Cancel
Save