Update destination.lua
This commit is contained in:
@@ -128,7 +128,7 @@
|
|||||||
freeswitch.consoleLog("NOTICE", "[ring_group] SQL: " .. sql .. "; params: " .. json.encode(params) .. "\n");
|
freeswitch.consoleLog("NOTICE", "[ring_group] SQL: " .. sql .. "; params: " .. json.encode(params) .. "\n");
|
||||||
end
|
end
|
||||||
|
|
||||||
assert(dbh:query(sql, params, function(row)
|
dbh:query(sql, params, function(row)
|
||||||
if (row.in_group == "0") then
|
if (row.in_group == "0") then
|
||||||
sql = [[
|
sql = [[
|
||||||
INSERT INTO
|
INSERT INTO
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
freeswitch.consoleLog("NOTICE", "[ring_group][destination] ALREADY LOGGED IN\n");
|
freeswitch.consoleLog("NOTICE", "[ring_group][destination] ALREADY LOGGED IN\n");
|
||||||
session:streamFile("ivr/ivr-you_are_now_logged_in.wav");
|
session:streamFile("ivr/ivr-you_are_now_logged_in.wav");
|
||||||
end
|
end
|
||||||
end));
|
end);
|
||||||
end
|
end
|
||||||
if (menu_selection == "2") then
|
if (menu_selection == "2") then
|
||||||
local sql = [[
|
local sql = [[
|
||||||
|
|||||||
Reference in New Issue
Block a user