mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update confirm.lua
Add a domain_name nil check.
This commit is contained in:
@@ -65,9 +65,11 @@
|
|||||||
if (not default_voice) then default_voice = 'callie'; end
|
if (not default_voice) then default_voice = 'callie'; end
|
||||||
|
|
||||||
--if the screen file is found then set confirm to true
|
--if the screen file is found then set confirm to true
|
||||||
call_screen_file = "/tmp/" .. domain_name .. "-" .. caller_id_number .. "." .. record_ext;
|
if (domain_name ~= nil) then
|
||||||
if (file_exists(call_screen_file)) then
|
call_screen_file = "/tmp/" .. domain_name .. "-" .. caller_id_number .. "." .. record_ext;
|
||||||
confirm = "true";
|
if (file_exists(call_screen_file)) then
|
||||||
|
confirm = "true";
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--confirm the calls
|
--confirm the calls
|
||||||
@@ -104,4 +106,4 @@
|
|||||||
--send to the log
|
--send to the log
|
||||||
--freeswitch.consoleLog("NOTICE", "[confirm] automatically accepted\n");
|
--freeswitch.consoleLog("NOTICE", "[confirm] automatically accepted\n");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user