Update app_defaults.php
This commit is contained in:
@@ -24,13 +24,14 @@
|
|||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($domains_processed == 1) {
|
//if the recordings directory doesn't exist then create it
|
||||||
|
|
||||||
//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_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); }
|
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 base64, populate from existing recording files, then remove
|
||||||
if (is_array($_SESSION['recordings']['storage_type']) && $_SESSION['recordings']['storage_type']['text'] == 'base64') {
|
if (is_array($_SESSION['recordings']['storage_type']) && $_SESSION['recordings']['storage_type']['text'] == 'base64') {
|
||||||
//get recordings without base64 in db
|
//get recordings without base64 in db
|
||||||
@@ -96,7 +97,6 @@ if ($domains_processed == 1) {
|
|||||||
}
|
}
|
||||||
unset($sql, $prep_statement, $result, $row);
|
unset($sql, $prep_statement, $result, $row);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user