Update recordings.php

This commit is contained in:
FusionPBX 2017-10-15 14:50:12 -06:00 committed by GitHub
parent d01cff7afc
commit 8c2681d520
1 changed files with 30 additions and 33 deletions

View File

@ -75,10 +75,6 @@
}
unset ($sql, $prep_statement, $result, $recording_decoded);
}
//if from xml_cdr, use file system
else {
$recording_filename = base64_decode($_GET['filename']); //xml_cdr
}
// build full path
if(substr($recording_filename,0,1) == '/'){
@ -87,6 +83,7 @@
$full_recording_path = $path . '/' . $recording_filename;
}
//send the headers and then the data stream
if (file_exists($full_recording_path)) {
//content-range
if (isset($_SERVER['HTTP_RANGE'])) {