Account for single tenant on the intercept.lua
This commit is contained in:
@@ -99,7 +99,9 @@ if ( session:ready() ) then
|
|||||||
if (extension) then
|
if (extension) then
|
||||||
sql = sql .. "and presence_id = '"..extension.."@"..domain_name.."' ";
|
sql = sql .. "and presence_id = '"..extension.."@"..domain_name.."' ";
|
||||||
else
|
else
|
||||||
sql = sql .. "and context = '"..domain_name.."' ";
|
if (domain_count > 1) then
|
||||||
|
sql = sql .. "and context = '"..domain_name.."' ";
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if (debug["sql"]) then
|
if (debug["sql"]) then
|
||||||
freeswitch.consoleLog("NOTICE", "sql "..sql.."\n");
|
freeswitch.consoleLog("NOTICE", "sql "..sql.."\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user