Update 010_user_record.lua.noload

This commit is contained in:
FusionPBX 2019-02-08 08:10:06 -07:00 committed by GitHub
parent 6909e2abf3
commit de5e2213f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -15,8 +15,11 @@
end
path = path.."/archive/"..(os.date("%Y")).."/"..(os.date("%b")).."/"..(os.date("%d"));
--make sure the path exists
api:executeString("system mkdir -p "..path);
--add functions
require "resources.functions.mkdir";
--make sure the recordings directory exists
mkdir(path);
--check whether to record the to user
if (user_exists == "true") then