From 16edb10098abc751e7e55966c334c8fcd2de5339 Mon Sep 17 00:00:00 2001 From: Mark Magnusson Date: Wed, 14 Jun 2017 14:57:44 -0400 Subject: [PATCH] actually do this correctly --- kamailio/default.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kamailio/default.cfg b/kamailio/default.cfg index c6783f2..f735832 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($hdr(X-KAZOO-AOR)) > 0){ + if(lookup("location") > 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");