From 61f5e77cfb08f77cf25cce32bac2fb725895d90e Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Thu, 16 Jul 2015 12:56:13 +0400 Subject: [PATCH] Fix. Use `temp_dir` to debug dialplan xml file --- .../app/xml_handler/resources/scripts/dialplan/dialplan.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua b/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua index 3d1b65e3a9..c4eeeb0f63 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua @@ -304,7 +304,7 @@ --send the xml to the console if (debug["xml_string"]) then - local file = assert(io.open("/tmp/dialplan-" .. call_context .. ".xml", "w")); + local file = assert(io.open(temp_dir .. "/dialplan-" .. call_context .. ".xml", "w")); file:write(XML_STRING); file:close(); end