From 048f9e4528f7b6db5f95c7e58239965431b7a9b9 Mon Sep 17 00:00:00 2001 From: Mark Magnusson Date: Wed, 14 Jun 2017 15:18:05 -0400 Subject: [PATCH] update to query correctly --- kamailio/default.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kamailio/default.cfg b/kamailio/default.cfg index f735832..22f5132 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -602,7 +602,7 @@ route[INTERNAL_TO_EXTERNAL_RELAY] if ($hdr(X-KAZOO-AOR) != $null) { xlog("L_INFO", "$ci|log|using AOR $hdr(X-KAZOO-AOR)\n"); if ($hdr(X-KAZOO-INVITE-FORMAT) == "contact") { - if(lookup("location") > 0){ + if(lookup("location", "$hdr(X-KAZOO-AOR)") > 0){ xlog("L_INFO", "$ci|end|routing to contact $ru\n"); } else { xlog("L_INFO", "$ci|end|lookup for AOR $hdr(X-KAZOO-AOR) failed\n");