Add app/dialplan/ to the dialplan class path.

This commit is contained in:
Mark Crane
2014-01-13 14:34:13 +00:00
parent 7661cf907a
commit 3cf0a25f7d
6 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -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;