Remove follow_me_caller_id_uuid field.
This commit is contained in:
@@ -143,7 +143,7 @@
|
|||||||
--get the follow me data
|
--get the follow me data
|
||||||
if (follow_me_uuid ~= nil) then
|
if (follow_me_uuid ~= nil) then
|
||||||
local sql = "select cid_name_prefix, cid_number_prefix, ";
|
local sql = "select cid_name_prefix, cid_number_prefix, ";
|
||||||
sql = sql .. "follow_me_enabled, follow_me_caller_id_uuid, follow_me_ignore_busy ";
|
sql = sql .. "follow_me_enabled, follow_me_ignore_busy ";
|
||||||
sql = sql .. "from v_follow_me ";
|
sql = sql .. "from v_follow_me ";
|
||||||
sql = sql .. "where domain_uuid = :domain_uuid ";
|
sql = sql .. "where domain_uuid = :domain_uuid ";
|
||||||
sql = sql .. "and follow_me_uuid = :follow_me_uuid; ";
|
sql = sql .. "and follow_me_uuid = :follow_me_uuid; ";
|
||||||
@@ -155,7 +155,6 @@
|
|||||||
caller_id_name_prefix = row["cid_name_prefix"];
|
caller_id_name_prefix = row["cid_name_prefix"];
|
||||||
caller_id_number_prefix = row["cid_number_prefix"];
|
caller_id_number_prefix = row["cid_number_prefix"];
|
||||||
follow_me_enabled = row["follow_me_enabled"];
|
follow_me_enabled = row["follow_me_enabled"];
|
||||||
follow_me_caller_id_uuid = row["follow_me_caller_id_uuid"];
|
|
||||||
follow_me_ignore_busy = row["follow_me_ignore_busy"];
|
follow_me_ignore_busy = row["follow_me_ignore_busy"];
|
||||||
end);
|
end);
|
||||||
--dbh:query(sql, params, function(row);
|
--dbh:query(sql, params, function(row);
|
||||||
@@ -364,23 +363,6 @@
|
|||||||
toll_allow = '';
|
toll_allow = '';
|
||||||
end
|
end
|
||||||
|
|
||||||
--get the destination caller id name and number
|
|
||||||
if (follow_me_caller_id_uuid and follow_me_caller_id_uuid ~= '') then
|
|
||||||
local sql = "select destination_uuid, destination_number, destination_description, destination_caller_id_name, destination_caller_id_number ";
|
|
||||||
sql = sql .. "from v_destinations ";
|
|
||||||
sql = sql .. "where domain_uuid = :domain_uuid ";
|
|
||||||
sql = sql .. "and destination_uuid = :destination_uuid ";
|
|
||||||
sql = sql .. "order by destination_number asc ";
|
|
||||||
local params = {domain_uuid = domain_uuid, destination_uuid = follow_me_caller_id_uuid};
|
|
||||||
if (debug["sql"]) then
|
|
||||||
freeswitch.consoleLog("notice", "SQL:" .. sql .. "; params: " .. json.encode(params) .. "\n");
|
|
||||||
end
|
|
||||||
status = dbh:query(sql, params, function(field)
|
|
||||||
caller_id_name = field["destination_caller_id_name"];
|
|
||||||
caller_id_number = field["destination_caller_id_number"];
|
|
||||||
end);
|
|
||||||
end
|
|
||||||
|
|
||||||
--check if the user exists
|
--check if the user exists
|
||||||
if tonumber(caller_id_number) ~= nil then
|
if tonumber(caller_id_number) ~= nil then
|
||||||
cmd = "user_exists id ".. caller_id_number .." "..domain_name;
|
cmd = "user_exists id ".. caller_id_number .." "..domain_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user