Update voicemail.php

Delete the voicemail intro when deleting a voicemail message from PHP.
This commit is contained in:
FusionPBX
2016-09-03 15:43:30 -06:00
committed by GitHub
parent 56b34a1c97
commit 0f2fd84ccf

View File

@@ -298,6 +298,9 @@
//delete the recording
$file_path = $_SESSION['switch']['voicemail']['dir']."/default/".$_SESSION['domain_name']."/".$this->voicemail_id;
if ($this->voicemail_message_uuid != '') {
foreach (glob($file_path."/intro_".$this->voicemail_message_uuid.".*") as $file_name) {
unlink($file_name);
}
foreach (glob($file_path."/msg_".$this->voicemail_message_uuid.".*") as $file_name) {
unlink($file_name);
}