mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Account for single tenant on the intercept.lua
This commit is contained in:
@@ -99,7 +99,9 @@ if ( session:ready() ) then
|
||||
if (extension) then
|
||||
sql = sql .. "and presence_id = '"..extension.."@"..domain_name.."' ";
|
||||
else
|
||||
sql = sql .. "and context = '"..domain_name.."' ";
|
||||
if (domain_count > 1) then
|
||||
sql = sql .. "and context = '"..domain_name.."' ";
|
||||
end
|
||||
end
|
||||
if (debug["sql"]) then
|
||||
freeswitch.consoleLog("NOTICE", "sql "..sql.."\n");
|
||||
|
||||
Reference in New Issue
Block a user