Update file_cache.lua (#3402)

Run OS command through Freeswitch for better performance. Running OS commands directly from lua can cause RTP timing issues.
This commit is contained in:
konradSC 2018-09-06 19:45:33 -04:00 committed by FusionPBX
parent 89f4b9cabb
commit 00966a4735
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@
if (row.method == "curl") then
api_command_argument = api_command_argument:gsub(" ", "%%20");
url = [[http://]]..row.username..[[:]]..row.password..[[@]]..row.hostname..[[:]]..row.port..[[/webapi/luarun?app/servers/resources/clear_cache.lua%20]]..api_command_argument;
os.execute("curl "..url);
api:executeString("system curl" .. url );
freeswitch.consoleLog("INFO", "[notice] curl ".. url .. " \n");
end
end