diff --git a/resources/install/scripts/app/dialplan/resources/after/010_user_record.lua.noload b/resources/install/scripts/app/dialplan/resources/after/010_user_record.lua.noload index 844f2af268..95f82f446b 100644 --- a/resources/install/scripts/app/dialplan/resources/after/010_user_record.lua.noload +++ b/resources/install/scripts/app/dialplan/resources/after/010_user_record.lua.noload @@ -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