mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Revert "Change. Use require "resources.functions.config" to load config file."
This commit is contained in:
@@ -34,24 +34,26 @@
|
||||
recording_prefix = "";
|
||||
|
||||
--include config.lua
|
||||
require "resources.functions.config";
|
||||
scripts_dir = string.sub(debug.getinfo(1).source,2,string.len(debug.getinfo(1).source)-(string.len(argv[0])+1));
|
||||
dofile(scripts_dir.."/resources/functions/config.lua");
|
||||
dofile(config());
|
||||
|
||||
--connect to the database
|
||||
require "resources.functions.database_handle";
|
||||
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
||||
dbh = database_handle('system');
|
||||
|
||||
--get the domain_uuid
|
||||
domain_uuid = session:getVariable("domain_uuid");
|
||||
|
||||
--add functions
|
||||
require "resources.functions.mkdir";
|
||||
require "resources.functions.explode";
|
||||
dofile(scripts_dir.."/resources/functions/mkdir.lua");
|
||||
dofile(scripts_dir.."/resources/functions/explode.lua");
|
||||
|
||||
--initialize the recordings
|
||||
api = freeswitch.API();
|
||||
|
||||
--settings
|
||||
require "resources.functions.settings";
|
||||
dofile(scripts_dir.."/resources/functions/settings.lua");
|
||||
settings = settings(domain_uuid);
|
||||
storage_type = "";
|
||||
storage_path = "";
|
||||
@@ -125,7 +127,7 @@
|
||||
--begin recording
|
||||
if (storage_type == "base64") then
|
||||
--include the base64 function
|
||||
require "resources.functions.base64";
|
||||
dofile(scripts_dir.."/resources/functions/base64.lua");
|
||||
|
||||
--make the directory
|
||||
mkdir(recordings_dir);
|
||||
|
||||
Reference in New Issue
Block a user