Add recordings archive sub directory

This commit is contained in:
FusionPBX 2023-08-28 10:08:28 -06:00 committed by GitHub
parent 5de3e514df
commit 401a914726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
//if the recordings directory doesn't exist then create it
if (!empty($_SESSION['switch']['recordings']['dir']) && !empty($domain_name)) {
if (!is_readable($_SESSION['switch']['recordings']['dir']."/".$domain_name)) {
mkdir($_SESSION['switch']['recordings']['dir']."/".$domain_name, 0770, true);
mkdir($_SESSION['switch']['recordings']['dir']."/".$domain_name."/archive", 0770, true);
}
}