From ec16d3e4fbf68ccd64984882e3e78832e30d440f Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 27 Mar 2014 02:38:15 +0000 Subject: [PATCH] Change the way the outbound context is used so that domain_name is not needed. --- resources/install/scripts/app/dialplan/index.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install/scripts/app/dialplan/index.lua b/resources/install/scripts/app/dialplan/index.lua index 7fa5350d01..d0aea007a1 100644 --- a/resources/install/scripts/app/dialplan/index.lua +++ b/resources/install/scripts/app/dialplan/index.lua @@ -42,7 +42,7 @@ if (context == "public") then call_direction = "inbound"; else - if (context == "outbound@"..domain_name) then + if (string.sub(context, 0, 9) == "outbound@") then call_direction = "outbound"; else if (string.len(destination_number) > 6) then