mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update intercept.lua
This commit is contained in:
@@ -294,12 +294,12 @@
|
|||||||
local is_child
|
local is_child
|
||||||
dbh:query(sql, params, function(row)
|
dbh:query(sql, params, function(row)
|
||||||
--for key, val in pairs(row) do
|
--for key, val in pairs(row) do
|
||||||
-- log.notice("row "..key.." "..val);
|
-- log.notice("row "..key.." "..val);
|
||||||
--end
|
--end
|
||||||
--log.notice("-----------------------");
|
--log.notice("-----------------------");
|
||||||
is_child = (row.uuid == row.call_uuid)
|
is_child = (row.uuid == row.call_uuid)
|
||||||
uuid = row.uuid;
|
uuid = row.uuid;
|
||||||
if (row.call_uuid) then
|
if (row.call_uuid ~= nil) then
|
||||||
uuid = row.call_uuid;
|
uuid = row.call_uuid;
|
||||||
end
|
end
|
||||||
call_hostname = row.hostname;
|
call_hostname = row.hostname;
|
||||||
@@ -389,4 +389,3 @@
|
|||||||
--cmd = "originate user/1007@voip.example.com &intercept("..uuid..")";
|
--cmd = "originate user/1007@voip.example.com &intercept("..uuid..")";
|
||||||
--api = freeswitch.API();
|
--api = freeswitch.API();
|
||||||
--result = api:executeString(cmd);
|
--result = api:executeString(cmd);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user