From cafc371c88ec1c13e4bdcb74780c0a2df27ae902 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 30 Jun 2015 18:42:52 +0000 Subject: [PATCH] Fix a problem where the inbound context has public in the name with public@ as a prefix and .public as a suffix. --- .../app/xml_handler/resources/scripts/dialplan/dialplan.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua b/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua index 6b61afd8c5..3d1b65e3a9 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua @@ -90,7 +90,7 @@ --get the dialplan and related details sql = "select * from v_dialplans as d, v_dialplan_details as s "; - if (call_context == "public") then + if (call_context == "public" or string.sub(call_context, 0, 7) == "public@" or string.sub(call_context, -7) == ".public") then sql = sql .. "where d.dialplan_context = '" .. call_context .. "' "; else sql = sql .. "where (d.dialplan_context = '" .. call_context .. "' or d.dialplan_context = '${domain_name}') ";