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:
FusionPBX 2022-01-21 11:34:48 -07:00 committed by GitHub
parent 7a8e33d7c9
commit 63e1f7741e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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 ";