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 ";
|
cmd = cmd .. "fax_prefix=false ";
|
||||||
end
|
end
|
||||||
freeswitch.consoleLog("notice", "[fax] command: " .. cmd .. "\n");
|
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
|
--add to fax logs
|
||||||
sql = "insert into v_fax_logs ";
|
sql = "insert into v_fax_logs ";
|
||||||
|
|||||||
Reference in New Issue
Block a user