From 10392a5bafe3246cf6030d16cdc3ab65d0afcfdf 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 b1ffeaf..1da60da 100644 --- a/kamailio/registrar-role.cfg +++ b/kamailio/registrar-role.cfg @@ -136,7 +136,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;