let the xml_cdr find the wav file, regardles mono/multi tenant

This commit is contained in:
luis daniel lucio quiroz
2015-03-31 16:20:55 +00:00
parent 8c5568c547
commit 87763506bb
+1 -1
View File
@@ -409,7 +409,7 @@ else {
elseif (file_exists($tmp_dir.'/'.$row['bridge_uuid'].'_1.mp3')) { elseif (file_exists($tmp_dir.'/'.$row['bridge_uuid'].'_1.mp3')) {
$tmp_name = $row['bridge_uuid']."_1.mp3"; $tmp_name = $row['bridge_uuid']."_1.mp3";
} }
if (strlen($tmp_name) > 0 && file_exists($_SESSION['switch']['recordings']['dir'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name) && $seconds > 0) { if (strlen($tmp_name) > 0 && file_exists($tmp_dir.'/'.$tmp_name) && $seconds > 0) {
$recording_file_path = '/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name; $recording_file_path = '/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name;
$recording_file_name = strtolower(pathinfo($tmp_name, PATHINFO_BASENAME)); $recording_file_name = strtolower(pathinfo($tmp_name, PATHINFO_BASENAME));
$recording_file_ext = pathinfo($recording_file_name, PATHINFO_EXTENSION); $recording_file_ext = pathinfo($recording_file_name, PATHINFO_EXTENSION);