Change. Does not use default dialplan/directory.

I think it more consistent that it allows edit domain in single place.
Also on my Windows machine while installing all users/context creates not in `default` directory.
And I have problem because remove users did not work, `default.xml` file contain `$${v_domain}` variables.
This commit is contained in:
Alexey Melnichuk
2015-07-02 13:14:35 +04:00
parent 999ae13d78
commit 9097861e30
6 changed files with 11 additions and 51 deletions

View File

@@ -159,16 +159,9 @@
//declare global variables
global $config, $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'];
}
//get the domain_name
$domain_name = $_SESSION['domains'][$domain_uuid]['domain_name'];
$user_context = $domain_name;
//delete all old extensions to prepare for new ones
$dialplan_list = glob($_SESSION['switch']['extensions']['dir']."/".$user_context."/v_*.xml");