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' ";
|
||||
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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue