Fix. Use `temp_dir` to debug dialplan xml file

This commit is contained in:
Alexey Melnichuk 2015-07-16 12:56:13 +04:00
parent 262737828c
commit 61f5e77cfb
1 changed files with 1 additions and 1 deletions

View File

@ -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