Add app/dialplan/ to the dialplan class path.
This commit is contained in:
parent
d0c9cf7715
commit
2bac44aee7
|
|
@ -223,7 +223,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
dialplan_add($_SESSION['domain_uuid'], $dialplan_uuid, $dialplan_name, $dialplan_order, $dialplan_context, $dialplan_enabled, $dialplan_description, $app_uuid);
|
||||
|
||||
//dialplan group 1
|
||||
require_once "resources/classes/dialplan.php";
|
||||
require_once "app/dialplan/resources/classes/dialplan.php";
|
||||
|
||||
//<condition destination_number="300" break="on-true"/>
|
||||
$dialplan = new dialplan;
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
*/
|
||||
|
||||
//if there is more than one domain then set the default context to the domain name
|
||||
/*
|
||||
if (count($_SESSION['domains']) > 1) {
|
||||
$sql = "select * from v_dialplans ";
|
||||
$sql .= "where dialplan_context = 'default' ";
|
||||
|
|
@ -43,6 +44,7 @@
|
|||
unset($sql);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
//only run the following code if the directory exists
|
||||
if (is_dir($_SESSION['switch']['dialplan']['dir'])) {
|
||||
|
|
@ -79,7 +81,7 @@
|
|||
$dialplan_order = 0;
|
||||
}
|
||||
//dialplan class
|
||||
require_once "resources/classes/dialplan.php";
|
||||
require_once "app/dialplan/resources/classes/dialplan.php";
|
||||
$dialplan = new dialplan;
|
||||
$dialplan->domain_uuid = $domain_uuid;
|
||||
$dialplan->dialplan_order = $dialplan_order;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ $page["title"] = $text['title-default_dialplan'];
|
|||
|
||||
if ($_GET['a'] == "default" && permission_exists('dialplan_advanced_edit')) {
|
||||
//create the dialplan/default.xml for single tenant or dialplan/domain.xml
|
||||
require_once "resources/classes/dialplan.php";
|
||||
require_once "app/dialplan/resources/classes/dialplan.php";
|
||||
$dialplan = new dialplan;
|
||||
$dialplan->domain_uuid = $_SESSION['domain_uuid'];
|
||||
$dialplan->switch_dialplan_dir = $_SESSION['switch']['dialplan']['dir'];
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
include "root.php";
|
||||
require_once "resources/classes/dialplan.php";
|
||||
require_once "app/dialplan/resources/classes/dialplan.php";
|
||||
|
||||
//define the directory class
|
||||
class ivr_menu {
|
||||
|
|
|
|||
|
|
@ -1269,7 +1269,7 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
|
|||
//print_r($install->result);
|
||||
|
||||
//create the dialplan/default.xml for single tenant or dialplan/domain.xml
|
||||
require_once "resources/classes/dialplan.php";
|
||||
require_once "app/dialplan/resources/classes/dialplan.php";
|
||||
$dialplan = new dialplan;
|
||||
$dialplan->domain_uuid = $_SESSION["domain_uuid"];
|
||||
$dialplan->domain = $domain_name;
|
||||
|
|
|
|||
|
|
@ -2466,7 +2466,7 @@ if (!function_exists('save_call_center_xml')) {
|
|||
global $db, $domain_uuid;
|
||||
|
||||
//include the classes
|
||||
include "resources/classes/dialplan.php";
|
||||
include "app/dialplan/resources/classes/dialplan.php";
|
||||
|
||||
$sql = "select * from v_call_center_queues ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
|
|
|
|||
Loading…
Reference in New Issue