Revert "Change. Use require "resources.functions.config" to load config file."

This commit is contained in:
FusionPBX
2015-08-10 11:50:29 -06:00
parent a337e1a8ba
commit d1f3b05cf6
69 changed files with 507 additions and 294 deletions

View File

@@ -31,11 +31,16 @@
local file = assert(io.open(tmp_file, "w"));
file:write("remove this file to stop the script");
--define the trim function
require "resources.functions.trim"
--add the trim function
function trim(s)
return s:gsub("^%s+", ""):gsub("%s+$", "")
end
--check if a file exists
require "resources.functions.file_exists"
function file_exists(name)
local f=io.open(name,"r")
if f~=nil then io.close(f) return true else return false end
end
--create the api object
api = freeswitch.API();