Add FIFO Queues to use the same code as the dialplan.
This commit is contained in:
parent
64c5bf0b29
commit
50f7f0f22b
|
|
@ -10,6 +10,7 @@
|
|||
$text['title-dialplan_edit']['en-us'] = 'Dialplan Edit';
|
||||
$text['title-dialplan_detail']['en-us'] = 'Dialplan Detail';
|
||||
$text['title-default_dialplan']['en-us'] = 'Default Dialplan';
|
||||
$text['title-queues']['en-us'] = 'Queues';
|
||||
|
||||
$text['header-dialplan_manager']['en-us'] = 'Dialplan Manager';
|
||||
$text['header-inbound_routes']['en-us'] = 'Inbound Routes';
|
||||
|
|
@ -20,6 +21,7 @@
|
|||
$text['header-conditions_and_actions']['en-us'] = 'Conditions and Actions';
|
||||
$text['header-dialplan_detail']['en-us'] = 'Dialplan Detail';
|
||||
$text['header-default_dialplan']['en-us'] = 'Default Dialplan';
|
||||
$text['header-queues']['en-us'] = 'Queues';
|
||||
|
||||
$text['description-dialplan_manager']['en-us'] = 'The dialplan provides a view of some of the feature codes, as well as the IVR Menu, Conferences, Queues and other destinations.';
|
||||
$text['description-dialplan_manager-superadmin']['en-us'] = 'The dialplan is used to setup call destinations based on conditions and context. You can use the dialplan to send calls to gateways, auto attendants, external numbers, to scripts, or any destination.';
|
||||
|
|
@ -29,6 +31,7 @@
|
|||
$text['description-dialplan-edit']['en-us'] = 'Dialplan include general settings.';
|
||||
$text['description-conditions_and_actions']['en-us'] = 'The following conditions, actions and anti-actions are used in the dialplan to direct call flow. Each is processed in order that it is given. Use as many conditions, actions or anti-actions as needed.';
|
||||
$text['description-default_dialplan']['en-us'] = 'The default dialplan is used to setup call destinations based on conditions and context. You can use the dialplan to send calls to gateways, auto attendants, external numbers, to scripts, or any destination.';
|
||||
$text['description-queues']['en-us'] = 'Queues are used to setup waiting lines for callers. Also known as FIFO Queues.';
|
||||
|
||||
$text['label-name']['en-us'] = 'Name';
|
||||
$text['label-condition_1']['en-us'] = 'Condition 1';
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ require_once "resources/paging.php";
|
|||
if (permission_exists('dialplan_add')
|
||||
|| permission_exists('inbound_route_add')
|
||||
|| permission_exists('outbound_route_add')
|
||||
|| permission_exists('fifo_add')
|
||||
|| permission_exists('time_conditions_add')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ require_once "resources/check_auth.php";
|
|||
if (permission_exists('dialplan_delete')
|
||||
|| permission_exists('inbound_route_delete')
|
||||
|| permission_exists('outbound_route_delete')
|
||||
|| permission_exists('fifo_delete')
|
||||
|| permission_exists('time_conditions_delete')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2012
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2013
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
|
|
@ -29,6 +29,7 @@ require_once "resources/check_auth.php";
|
|||
if (permission_exists('dialplan_delete')
|
||||
|| permission_exists('inbound_route_delete')
|
||||
|| permission_exists('outbound_route_delete')
|
||||
|| permission_exists('fifo_delete')
|
||||
|| permission_exists('time_conditions_delete')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
@ -51,8 +52,7 @@ if (count($_GET)>0) {
|
|||
if (strlen($id)>0) {
|
||||
|
||||
//delete child data
|
||||
$sql = "";
|
||||
$sql .= "delete from v_dialplan_details ";
|
||||
$sql = "delete from v_dialplan_details ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and dialplan_detail_uuid = '$id' ";
|
||||
$sql .= "and dialplan_uuid = '$dialplan_uuid' ";
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2012
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2013
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
|
|
@ -32,6 +32,8 @@ if (permission_exists('dialplan_add')
|
|||
|| permission_exists('inbound_route_edit')
|
||||
|| permission_exists('outbound_route_add')
|
||||
|| permission_exists('outbound_route_edit')
|
||||
|| permission_exists('fifo_edit')
|
||||
|| permission_exists('fifo_add')
|
||||
|| permission_exists('time_conditions_add')
|
||||
|| permission_exists('time_conditions_edit')) {
|
||||
//access granted
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ if (permission_exists('dialplan_add')
|
|||
|| permission_exists('inbound_route_edit')
|
||||
|| permission_exists('outbound_route_add')
|
||||
|| permission_exists('outbound_route_edit')
|
||||
|| permission_exists('fifo_edit')
|
||||
|| permission_exists('fifo_add')
|
||||
|| permission_exists('time_conditions_add')
|
||||
|| permission_exists('time_conditions_edit')) {
|
||||
//access granted
|
||||
|
|
|
|||
|
|
@ -200,6 +200,11 @@ else {
|
|||
echo " <a href='".PROJECT_PATH."/app/dialplan_outbound/dialplan_outbound_add.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
}
|
||||
elseif ($app_uuid == "16589224-c876-aeb3-f59f-523a1c0801f7") {
|
||||
if (permission_exists('fifo_add')) {
|
||||
echo " <a href='".PROJECT_PATH."/app/fifo/fifo_add.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
}
|
||||
elseif ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1") {
|
||||
if (permission_exists('time_conditions_add')) {
|
||||
echo " <a href='".PROJECT_PATH."/app/time_conditions/time_condition_add.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
|
|
@ -264,6 +269,14 @@ else {
|
|||
echo " <a href='dialplan_delete.php?id=".$row['dialplan_uuid']."&app_uuid=$app_uuid' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
}
|
||||
elseif ($app_uuid == "16589224-c876-aeb3-f59f-523a1c0801f7") {
|
||||
if (permission_exists('fifo_edit')) {
|
||||
echo " <a href='dialplan_edit.php?id=".$row['dialplan_uuid']."&app_uuid=$app_uuid' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('fifo_delete')) {
|
||||
echo " <a href='dialplan_delete.php?id=".$row['dialplan_uuid']."&app_uuid=$app_uuid' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
}
|
||||
elseif ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1") {
|
||||
if (permission_exists('time_conditions_edit')) {
|
||||
echo " <a href='dialplan_edit.php?id=".$row['dialplan_uuid']."&app_uuid=$app_uuid' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
|
|
@ -305,6 +318,11 @@ else {
|
|||
echo " <a href='".PROJECT_PATH."/app/dialplan_outbound/dialplan_outbound_add.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
}
|
||||
elseif ($app_uuid == "16589224-c876-aeb3-f59f-523a1c0801f7") {
|
||||
if (permission_exists('fifo_add')) {
|
||||
echo " <a href='".PROJECT_PATH."/app/fifo/fifo_add.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
}
|
||||
elseif ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1") {
|
||||
if (permission_exists('time_conditions_add')) {
|
||||
echo " <a href='".PROJECT_PATH."/app/time_conditions/time_condition_add.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue