Create new voicemail directory when adding a new domain.
This commit is contained in:
@@ -155,12 +155,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//create the recordings directory for the new domain.
|
//create the recordings directory for the new domain.
|
||||||
if (is_array($_SESSION['switch']['recordings']) && strlen($_SESSION['switch']['recordings']['dir']."/".$domain_name) > 0) {
|
if (isset($_SESSION['switch']['recordings']['dir']) && strlen($_SESSION['switch']['recordings']['dir']) > 0) {
|
||||||
if (!is_readable($_SESSION['switch']['recordings']['dir']."/".$domain_name)) {
|
if (!file_exists($_SESSION['switch']['recordings']['dir']."/".$domain_name)) {
|
||||||
mkdir($_SESSION['switch']['recordings']['dir']."/".$domain_name, 0770);
|
mkdir($_SESSION['switch']['recordings']['dir']."/".$domain_name, 0770);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//create the voicemail directory for the new domain.
|
||||||
|
if (isset($_SESSION['switch']['voicemail']['dir']) && strlen($_SESSION['switch']['voicemail']['dir']) > 0) {
|
||||||
|
if (!file_exists($_SESSION['switch']['voicemail']['dir']."/default/".$domain_name)) {
|
||||||
|
mkdir($_SESSION['switch']['voicemail']['dir']."/default/".$domain_name, 0770);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
message::add($text['message-domain_exists'],'negative');
|
message::add($text['message-domain_exists'],'negative');
|
||||||
|
|||||||
Reference in New Issue
Block a user