Browse Source

Merge pull request #66 from 2600hz/expires-master

revert registrar expires to 4.1 settings
drop_requests
bitbashing 8 years ago
committed by GitHub
parent
commit
2592c2ee35
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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; $var(expires) = @contact.expires;
} else { } else {
if(is_present_hf("Expires")) { 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) { if($var(expires) == 0) {
xlog("L_INFO", "$ci|end|unregister request from $Au $si:$sp\n"); xlog("L_INFO", "$ci|end|unregister request from $Au $si:$sp\n");
$var(Status) = "Unregistered"; $var(Status) = "Unregistered";


Loading…
Cancel
Save