mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
When adding a new domain make sure to make the recordings directory.
This commit is contained in:
@@ -153,6 +153,14 @@
|
||||
$dialplans->is_empty = "dialplan_xml";
|
||||
$array = $dialplans->xml();
|
||||
}
|
||||
|
||||
//create the recordings directory for the new domain.
|
||||
if (is_array($_SESSION['switch']['recordings']) && strlen($_SESSION['switch']['recordings']['dir']."/".$domain_name) > 0) {
|
||||
if (!is_readable($_SESSION['switch']['recordings']['dir']."/".$domain_name)) {
|
||||
mkdir($_SESSION['switch']['recordings']['dir']."/".$domain_name, 0770);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
message::add($text['message-domain_exists'],'negative');
|
||||
|
||||
Reference in New Issue
Block a user