Update destination.lua

This commit is contained in:
FusionPBX 2019-08-11 17:02:22 -06:00 committed by GitHub
parent af6d0d0965
commit 3e233d1803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@
freeswitch.consoleLog("NOTICE", "[ring_group] SQL: " .. sql .. "; params: " .. json.encode(params) .. "\n");
end
assert(dbh:query(sql, params, function(row)
dbh:query(sql, params, function(row)
if (row.in_group == "0") then
sql = [[
INSERT INTO
@ -170,7 +170,7 @@
freeswitch.consoleLog("NOTICE", "[ring_group][destination] ALREADY LOGGED IN\n");
session:streamFile("ivr/ivr-you_are_now_logged_in.wav");
end
end));
end);
end
if (menu_selection == "2") then
local sql = [[