[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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