From a049b10cf2a21ccecf89e7f8117ef8a18a8a7052 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 5 Dec 2012 08:48:43 +0000 Subject: [PATCH] Limit the global intercept to the correct tenant domain. --- includes/install/scripts/intercept.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/install/scripts/intercept.lua b/includes/install/scripts/intercept.lua index 2c249ff064..b82493d3b7 100644 --- a/includes/install/scripts/intercept.lua +++ b/includes/install/scripts/intercept.lua @@ -98,6 +98,8 @@ if ( session:ready() ) then sql = sql .. "where callstate = 'RINGING' "; if (extension) then sql = sql .. "and presence_id = '"..extension.."@"..domain_name.."' "; + else + sql = sql .. "and context = '"..domain_name.."' "; end if (debug["sql"]) then freeswitch.consoleLog("NOTICE", "sql "..sql.."\n");