Fix group intercept lua script
This commit is contained in:
@@ -160,14 +160,15 @@
|
|||||||
if (domain_count > 1) then
|
if (domain_count > 1) then
|
||||||
sql = sql .. "and context = '"..context.."' ";
|
sql = sql .. "and context = '"..context.."' ";
|
||||||
end
|
end
|
||||||
|
sql = sql .. "limit 1 ";
|
||||||
if (debug["sql"]) then
|
if (debug["sql"]) then
|
||||||
freeswitch.consoleLog("NOTICE", "sql "..sql.."\n");
|
freeswitch.consoleLog("NOTICE", "sql "..sql.."\n");
|
||||||
end
|
end
|
||||||
dbh:query(sql, function(result)
|
dbh:query(sql, function(row)
|
||||||
--for key, val in pairs(result) do
|
--for key, val in pairs(row) do
|
||||||
-- freeswitch.consoleLog("NOTICE", "result "..key.." "..val.."\n");
|
-- freeswitch.consoleLog("NOTICE", "row "..key.." "..val.."\n");
|
||||||
--end
|
--end
|
||||||
uuid = result.uuid;
|
uuid = row.uuid;
|
||||||
end);
|
end);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user