Update app_defaults.php
This commit is contained in:
parent
57889b5967
commit
40bbe95f7a
|
|
@ -25,9 +25,9 @@
|
|||
*/
|
||||
|
||||
//if the recordings directory doesn't exist then create it
|
||||
if (!empty($setting->get('switch','recordings')) && !empty($domain_name)) {
|
||||
if (!is_readable($setting->get('switch','recordings')."/".$domain_name)) {
|
||||
mkdir($setting->get('switch','recordings')."/".$domain_name."/archive", 0770, true);
|
||||
if (!empty($settings->get('switch','recordings')) && !empty($domain_name)) {
|
||||
if (!is_readable($settings->get('switch','recordings')."/".$domain_name)) {
|
||||
mkdir($settings->get('switch','recordings')."/".$domain_name."/archive", 0770, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
if ($domains_processed == 1) {
|
||||
|
||||
//if base64, populate from existing recording files, then remove
|
||||
if (!empty($setting->get('recordings','storage_type')) && $setting->get('recordings','storage_type') == 'base64') {
|
||||
if (!empty($settings->get('recordings','storage_type')) && $settings->get('recordings','storage_type') == 'base64') {
|
||||
//get recordings without base64 in db
|
||||
$sql = "select recording_uuid, domain_uuid, recording_filename ";
|
||||
$sql .= "from v_recordings ";
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
$recording_filename = $row['recording_filename'];
|
||||
|
||||
//set recording directory
|
||||
$recording_directory = $setting->get('switch','recordings').'/'.$domain_name;
|
||||
$recording_directory = $settings->get('switch','recordings').'/'.$domain_name;
|
||||
|
||||
//encode recording file (if exists)
|
||||
if (file_exists($recording_directory.'/'.$recording_filename)) {
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
unset($sql, $result, $row);
|
||||
}
|
||||
//if not base64, decode to local files, remove base64 data from db
|
||||
else if (!empty($setting->get('recordings','storage_type')) && $setting->get('recordings','storage_type') != 'base64') {
|
||||
else if (!empty($settings->get('recordings','storage_type')) && $settings->get('recordings','storage_type') != 'base64') {
|
||||
//get recordings with base64 in db
|
||||
$sql = "select recording_uuid, domain_uuid, recording_filename, recording_base64 ";
|
||||
$sql .= "from v_recordings ";
|
||||
|
|
@ -92,7 +92,7 @@
|
|||
$recording_base64 = $row['recording_base64'];
|
||||
|
||||
//set recording directory
|
||||
$recording_directory = $setting->get('switch','recordings').'/'.$domain_name;
|
||||
$recording_directory = $settings->get('switch','recordings').'/'.$domain_name;
|
||||
|
||||
//remove local file, if any
|
||||
if (file_exists($recording_directory.'/'.$recording_filename)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue