mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-20 09:56:32 +00:00
Merge pull request #1053 from moteus/require_config
Change. Use `require "resources.functions.config"` to load config file.
This commit is contained in:
@@ -26,10 +26,7 @@
|
||||
digit_timeout = "5000";
|
||||
|
||||
--check if a 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
|
||||
require "resources.functions.file_exists"
|
||||
|
||||
--run if the session is ready
|
||||
if ( session:ready() ) then
|
||||
|
||||
Reference in New Issue
Block a user