[fax] replace bg_system with os.execute (#6462)
to support systems that have the system commands disabled
This commit is contained in:
@@ -233,7 +233,8 @@
|
|||||||
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:executeString("bg_system "..cmd);
|
os.execute(cmd);
|
||||||
|
|
||||||
|
|
||||||
--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