mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update domain_edit.php
This commit is contained in:
@@ -124,9 +124,18 @@
|
|||||||
|
|
||||||
//add dialplans to the domain
|
//add dialplans to the domain
|
||||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/dialplans/app_config.php")) {
|
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/dialplans/app_config.php")) {
|
||||||
|
//import the dialplans
|
||||||
$dialplan = new dialplan;
|
$dialplan = new dialplan;
|
||||||
$dialplan->import($array['domains']);
|
$dialplan->import($array['domains']);
|
||||||
unset($array);
|
unset($array);
|
||||||
|
|
||||||
|
//add xml for each dialplan where the dialplan xml is empty
|
||||||
|
$dialplans = new dialplan;
|
||||||
|
$dialplans->source = "details";
|
||||||
|
$dialplans->destination = "database";
|
||||||
|
$dialplans->context = $domain_name;
|
||||||
|
$dialplans->is_empty = "dialplan_xml";
|
||||||
|
$array = $dialplans->xml();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -152,9 +161,18 @@
|
|||||||
|
|
||||||
// add dialplans to the domain
|
// add dialplans to the domain
|
||||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/dialplans/app_config.php")) {
|
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/dialplans/app_config.php")) {
|
||||||
|
//import the dialplans
|
||||||
$dialplan = new dialplan;
|
$dialplan = new dialplan;
|
||||||
$dialplan->import($array['domains']);
|
$dialplan->import($array['domains']);
|
||||||
unset($array);
|
unset($array);
|
||||||
|
|
||||||
|
//add xml for each dialplan where the dialplan xml is empty
|
||||||
|
$dialplans = new dialplan;
|
||||||
|
$dialplans->source = "details";
|
||||||
|
$dialplans->destination = "database";
|
||||||
|
$dialplans->context = $domain_name;
|
||||||
|
$dialplans->is_empty = "dialplan_xml";
|
||||||
|
$array = $dialplans->xml();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($original_domain_name != $domain_name) {
|
if ($original_domain_name != $domain_name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user