mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update hangup_tx.lua
This commit is contained in:
@@ -221,31 +221,6 @@
|
||||
fax_file_name = array[count(array)];
|
||||
end
|
||||
|
||||
--fax to email
|
||||
---- cmd = "lua" .. " " .. quote(scripts_dir .. "/fax_to_email.lua") .. " ";
|
||||
--cmd = quote(shell_esc(php_dir).."/"..shell_esc(php_bin)).." "..quote(shell_esc(document_root).."/secure/fax_to_email.php").." ";
|
||||
--cmd = cmd .. "email="..quote(shell_esc(fax_email)).." ";
|
||||
--cmd = cmd .. "extension="..quote(shell_esc(fax_extension)).." ";
|
||||
--cmd = cmd .. "name="..quote(shell_esc(fax_file)).." ";
|
||||
--cmd = cmd .. "messages=" .. quote("result:"..shell_esc(fax_result_text).." sender:"..shell_esc(fax_remote_station_id).." pages:"..shell_esc(fax_document_total_pages)).." ";
|
||||
--cmd = cmd .. "domain="..quote(shell_esc(domain_name)).." ";
|
||||
--cmd = cmd .. "caller_id_name=" .. quote(shell_esc(caller_id_name) or '') .. " ";
|
||||
--cmd = cmd .. "caller_id_number=" .. quote(shell_esc(caller_id_number) or '') .. " ";
|
||||
--if #fax_forward_number > 0 then
|
||||
-- cmd = cmd .. "fax_relay=true ";
|
||||
--else
|
||||
-- cmd = cmd .. "fax_relay=false ";
|
||||
--end
|
||||
--if #fax_prefix > 0 then
|
||||
-- cmd = cmd .. "fax_prefix=true ";
|
||||
--else
|
||||
-- cmd = cmd .. "fax_prefix=false ";
|
||||
--end
|
||||
--freeswitch.consoleLog("notice", "[fax] command: " .. cmd .. "\n");
|
||||
--local handle = io.popen(cmd);
|
||||
--result = handle:read("*a");
|
||||
--handle:close();
|
||||
|
||||
--update the email queue status
|
||||
if (fax_status ~= nil) then
|
||||
sql = "update v_fax_queue ";
|
||||
|
||||
Reference in New Issue
Block a user