From c829766e7a90edb38879ab0bb367fbc9778737b6 Mon Sep 17 00:00:00 2001 From: Brian Davis Date: Wed, 29 Apr 2015 15:48:44 -0400 Subject: [PATCH] use is_present_hf to check if Expires header is set --- kamailio/registrar-role.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kamailio/registrar-role.cfg b/kamailio/registrar-role.cfg index 49d1ccf..60ddf50 100644 --- a/kamailio/registrar-role.cfg +++ b/kamailio/registrar-role.cfg @@ -117,7 +117,7 @@ route[ATTEMPT_AUTHORIZATION] if(@contact.expires) { $var(expires) = @contact.expires; } else { - if($hdr(Expires)) { + if(is_present_hf("Expires")) { $var(expires) = $hdr(Expires); } else { $var(expires) = REGISTRAR_MIN_EXPIRES;