Only include section: configuration for the lua scripts that exist.
This commit is contained in:
parent
3e790bda07
commit
2f7d8fd672
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue