Limit the global intercept to the correct tenant domain.

This commit is contained in:
Mark Crane 2012-12-05 08:48:43 +00:00
parent 00b7a81627
commit a049b10cf2
1 changed files with 2 additions and 0 deletions

View File

@ -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");