From 8967add4dbf4763f66a9472ea65730b8f194128c Mon Sep 17 00:00:00 2001 From: lazedo Date: Fri, 30 Mar 2018 00:28:45 +0100 Subject: [PATCH] revert to 4.1 settings --- kamailio/registrar-role.cfg | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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";