Update ivr.conf.lua (#2861)

when debug["xml_string"] is on, it will overwrite /tmp/ivr.conf.xml file each hit an ivr goes. this makes very hard to trouble shoot in a living system. this patch allows to put one ivr menu per file.
This commit is contained in:
Luis Daniel Lucio Quiroz
2017-09-29 18:24:59 -04:00
committed by FusionPBX
parent c18e52f2de
commit 88109eb967

View File

@@ -279,7 +279,7 @@
--send the xml to the console
if (debug["xml_string"]) then
local file = assert(io.open(temp_dir .. "/ivr.conf.xml", "w"));
local file = assert(io.open(temp_dir .. "/ivr-"..ivr_menu_uuid..".conf.xml", "w"));
file:write(XML_STRING);
file:close();
end