Limit the global intercept to the correct tenant domain.
This commit is contained in:
parent
00b7a81627
commit
a049b10cf2
|
|
@ -98,6 +98,8 @@ if ( session:ready() ) then
|
||||||
sql = sql .. "where callstate = 'RINGING' ";
|
sql = sql .. "where callstate = 'RINGING' ";
|
||||||
if (extension) then
|
if (extension) then
|
||||||
sql = sql .. "and presence_id = '"..extension.."@"..domain_name.."' ";
|
sql = sql .. "and presence_id = '"..extension.."@"..domain_name.."' ";
|
||||||
|
else
|
||||||
|
sql = sql .. "and context = '"..domain_name.."' ";
|
||||||
end
|
end
|
||||||
if (debug["sql"]) then
|
if (debug["sql"]) then
|
||||||
freeswitch.consoleLog("NOTICE", "sql "..sql.."\n");
|
freeswitch.consoleLog("NOTICE", "sql "..sql.."\n");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue