Only include section: configuration for the lua scripts that exist.

This commit is contained in:
Mark Crane
2013-04-30 07:17:47 +00:00
parent ec49f3d6b0
commit dfb682d010

View File

@@ -117,7 +117,13 @@
--process the sections
if (XML_REQUEST["section"] == "configuration") then
dofile(scripts_dir.."/app/xml_handler/resources/scripts/configuration/"..XML_REQUEST["key_value"]..".lua");
configuration = scripts_dir.."/app/xml_handler/resources/scripts/configuration/"..XML_REQUEST["key_value"]..".lua";
if (debug["xml_request"]) then
freeswitch.consoleLog("notice", "[xml_handler] " .. configuration .. "\n");
end
if (file_exists(configuration)) then
dofile(configuration);
end
end
if (XML_REQUEST["section"] == "directory") then
dofile(scripts_dir.."/app/xml_handler/resources/scripts/directory/directory.lua");