Update voicemail.php
Delete the voicemail intro when deleting a voicemail message from PHP.
This commit is contained in:
parent
56b34a1c97
commit
0f2fd84ccf
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue