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:
committed by
FusionPBX
parent
c18e52f2de
commit
88109eb967
+1
-1
@@ -279,7 +279,7 @@
|
|||||||
|
|
||||||
--send the xml to the console
|
--send the xml to the console
|
||||||
if (debug["xml_string"]) then
|
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:write(XML_STRING);
|
||||||
file:close();
|
file:close();
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user