mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-26 18:49:16 +00:00
Merge pull request #1017 from moteus/no_default_domain
Change. Does not use `default` dialplan/directory.
This commit is contained in:
@@ -97,12 +97,7 @@ function load_extensions() {
|
||||
}
|
||||
//if no extension has been assigned then setting the user_context will still need to be set
|
||||
if (strlen($_SESSION['user_context']) == 0) {
|
||||
if (count($_SESSION['domains']) == 1) {
|
||||
$_SESSION['user_context'] = "default";
|
||||
}
|
||||
else {
|
||||
$_SESSION['user_context'] = $_SESSION['domain_name'];
|
||||
}
|
||||
$_SESSION['user_context'] = $_SESSION['domain_name'];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -747,12 +742,7 @@ function save_dialplan_xml() {
|
||||
global $db, $domain_uuid;
|
||||
|
||||
//get the context based from the domain_uuid
|
||||
if (count($_SESSION['domains']) == 1) {
|
||||
$user_context = "default";
|
||||
}
|
||||
else {
|
||||
$user_context = $_SESSION['domains'][$domain_uuid]['domain_name'];
|
||||
}
|
||||
$user_context = $_SESSION['domains'][$domain_uuid]['domain_name'];
|
||||
|
||||
//prepare for dialplan .xml files to be written. delete all dialplan files that are prefixed with dialplan_ and have a file extension of .xml
|
||||
$dialplan_list = glob($_SESSION['switch']['dialplan']['dir'] . "/*/*v_dialplan*.xml");
|
||||
|
||||
Reference in New Issue
Block a user