add a missing import to some of the xml_handling lua scripts. (#6607)

Co-authored-by: Finn <finn@acceleratenetworks.com>
This commit is contained in:
Finn
2023-04-10 08:30:34 -07:00
committed by GitHub
parent 13c25f77c3
commit cd0e603521
3 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
local Xml = require "resources.functions.xml";
--connect to the database
local Database = require "resources.functions.database"
local log = require "resources.functions.log"["directory_acl"]

View File

@@ -24,6 +24,8 @@
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
local Xml = require "resources.functions.xml";
--get the cache
if (trim(api:execute("module_exists", "mod_memcache")) == "true") then
XML_STRING = trim(api:execute("memcache", "get directory:groups:"..domain_name));

View File

@@ -24,6 +24,8 @@
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
local Xml = require "resources.functions.xml";
--get the action
action = params:getHeader("action");
purpose = params:getHeader("purpose");
@@ -114,4 +116,4 @@
--send the xml to the console
if (debug["xml_string"]) then
freeswitch.consoleLog("notice", "[xml_handler] XML_STRING: \n" .. XML_STRING .. "\n");
end
end