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:
parent
7a8e33d7c9
commit
63e1f7741e
|
|
@ -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 ";
|
||||
|
|
|
|||
Loading…
Reference in New Issue