VM Greetings, VMs: Integrated HTML5 playback button. Misc fixes with other integrations.

This commit is contained in:
Nate Jones
2014-09-11 19:48:19 +00:00
parent bd155fbe2b
commit 3c3df6dadc
11 changed files with 77 additions and 397 deletions

View File

@@ -124,7 +124,7 @@
$sql .= "and (";
$x = 0;
foreach($this->voicemail_id as $row) {
if ($x > 0) {
if ($x > 0) {
$sql .= "or ";
}
$sql .= "v.voicemail_id = '".$row['voicemail_id']."' ";
@@ -283,16 +283,16 @@
header("Content-Description: File Transfer");
$file_ext = substr($file_path, -3);
if ($file_ext == "wav") {
header('Content-Disposition: attachment; filename="voicemail.wav"');
header('Content-Disposition: attachment; filename="msg_'.$this->voicemail_message_uuid.'.wav"');
}
if ($file_ext == "mp3") {
header('Content-Disposition: attachment; filename="voicemail.mp3"');
header('Content-Disposition: attachment; filename="msg_'.$this->voicemail_message_uuid.'.mp3"');
}
}
else {
$file_ext = substr($file_path, -3);
if ($file_ext == "wav") {
header("Content-Type: audio/x-wav");
header("Content-Type: audio/wav");
}
if ($file_ext == "mp3") {
header("Content-Type: audio/mp3");