Include the shell_esc function

This commit is contained in:
FusionPBX
2026-03-22 03:29:32 +00:00
committed by GitHub
parent 07926f6b06
commit e5314b254f
2 changed files with 9 additions and 4 deletions
@@ -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");