mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
Fix inbound fax using alternative to system command.
This is needed because FreeSWITCH has made it possible to disable the system command.
This commit is contained in:
@@ -225,7 +225,9 @@
|
||||
cmd = cmd .. "fax_prefix=false ";
|
||||
end
|
||||
freeswitch.consoleLog("notice", "[fax] command: " .. cmd .. "\n");
|
||||
result = api:execute("system", cmd);
|
||||
local handle = io.popen(cmd);
|
||||
result = handle:read("*a");
|
||||
handle:close();
|
||||
|
||||
--add to fax logs
|
||||
sql = "insert into v_fax_logs ";
|
||||
|
||||
Reference in New Issue
Block a user