Merge pull request #1424 from moteus/streamfile_domain_count
Fix. Use domain name in streamfile.lua.
This commit is contained in:
commit
a882449d2e
|
|
@ -54,9 +54,7 @@
|
||||||
end
|
end
|
||||||
|
|
||||||
--set the recordings directory
|
--set the recordings directory
|
||||||
if (domain_count > 1) then
|
recordings_dir = recordings_dir .. "/"..domain_name;
|
||||||
recordings_dir = recordings_dir .. "/"..domain_name;
|
|
||||||
end
|
|
||||||
|
|
||||||
--check if a file exists
|
--check if a file exists
|
||||||
require "resources.functions.file_exists";
|
require "resources.functions.file_exists";
|
||||||
|
|
@ -139,6 +137,7 @@
|
||||||
end
|
end
|
||||||
session:setInputCallback("on_dtmf", "");
|
session:setInputCallback("on_dtmf", "");
|
||||||
session:streamFile(file_name);
|
session:streamFile(file_name);
|
||||||
|
session:unsetInputCallback();
|
||||||
end
|
end
|
||||||
|
|
||||||
--if base64, remove temp file (increases responsiveness when files remain local)
|
--if base64, remove temp file (increases responsiveness when files remain local)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue