[fax] replace bg_system with os.execute (#6462)

to support systems that have the system commands disabled
This commit is contained in:
agree
2022-08-23 12:14:34 -04:00
committed by GitHub
parent e51f48b17f
commit d52695b29f

View File

@@ -233,7 +233,8 @@
cmd = cmd .. "fax_prefix=false ";
end
freeswitch.consoleLog("notice", "[fax] command: " .. cmd .. "\n");
result = api:executeString("bg_system "..cmd);
os.execute(cmd);
--add to fax logs
sql = "insert into v_fax_logs ";