Update xml_cdr.php

This commit is contained in:
FusionPBX 2017-11-05 11:32:05 -07:00 committed by GitHub
parent 43c04da9c2
commit 35e069f3a8
1 changed files with 3 additions and 0 deletions

View File

@ -1034,6 +1034,9 @@ if (!class_exists('xml_cdr')) {
if ($file_ext == "mp3") { if ($file_ext == "mp3") {
header("Content-Type: audio/mpeg"); header("Content-Type: audio/mpeg");
} }
if ($file_ext == "ogg") {
header("Content-Type: audio/ogg");
}
} }
header('Content-Disposition: attachment; filename="'.$record_name.'"'); header('Content-Disposition: attachment; filename="'.$record_name.'"');
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1