Update app_defaults.php

This commit is contained in:
FusionPBX 2017-02-08 13:29:48 -07:00 committed by GitHub
parent 478f164024
commit e20184d893
1 changed files with 70 additions and 70 deletions

View File

@ -24,13 +24,14 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
if ($domains_processed == 1) {
//if the recordings directory doesn't exist then create it
if (is_array($_SESSION['switch']['recordings']) && strlen($_SESSION['switch']['recordings']['dir']."/".$domain_name) > 0) {
if (!is_readable($_SESSION['switch']['recordings']['dir']."/".$domain_name)) { event_socket_mkdir($_SESSION['switch']['recordings']['dir']."/".$domain_name,02770,true); }
}
//process one time
if ($domains_processed == 1) {
//if base64, populate from existing recording files, then remove
if (is_array($_SESSION['recordings']['storage_type']) && $_SESSION['recordings']['storage_type']['text'] == 'base64') {
//get recordings without base64 in db
@ -96,7 +97,6 @@ if ($domains_processed == 1) {
}
unset($sql, $prep_statement, $result, $row);
}
}
?>