diff --git a/kamailio/registrar-role.cfg b/kamailio/registrar-role.cfg index 8dffeb0..15bd3fd 100644 --- a/kamailio/registrar-role.cfg +++ b/kamailio/registrar-role.cfg @@ -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";