Fix. Intercept can find wrong channel.

This commit is contained in:
Alexey Melnichuk
2015-11-10 22:41:34 +03:00
parent c5cb52707f
commit bea4a02056

View File

@@ -257,7 +257,7 @@
-- if not extension then
-- sql = sql .. "AND direction = 'outbound' ";
-- end
sql = sql .. "AND (1=1 ";
sql = sql .. "AND (1<>1 ";
for key,extension in pairs(extensions) do
sql = sql .. "OR presence_id = '"..extension.."@"..domain_name.."' ";
end