Include the shell_esc function
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
--includes
|
||||
--load the functions
|
||||
require "resources.functions.config";
|
||||
require "resources.functions.shell_esc"
|
||||
|
||||
--load the libraries
|
||||
local Database = require "resources.functions.database";
|
||||
local Settings = require "resources.functions.lazy_settings"
|
||||
dbh = Database.new('system');
|
||||
local settings = Settings.new(dbh, domain_name, domain_uuid);
|
||||
|
||||
|
||||
|
||||
--define trim
|
||||
function trim (s)
|
||||
return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
|
||||
end
|
||||
|
||||
|
||||
--get the argv values
|
||||
cmd = argv[1];
|
||||
file = argv[2];
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
--includes config.lua which will include local.lua if it exists
|
||||
require "resources.functions.config"
|
||||
|
||||
--load the shell_esc function
|
||||
require "resources.functions.shell_esc"
|
||||
|
||||
--subscribe to the events
|
||||
--events = freeswitch.EventConsumer("all");
|
||||
events = freeswitch.EventConsumer("CUSTOM");
|
||||
|
||||
Reference in New Issue
Block a user