mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-06 07:59:23 +00:00
add extensions to destination class (#5501)
This commit is contained in:
@@ -35,11 +35,12 @@
|
||||
$apps[$x]['destinations'][$y]['type'] = "sql";
|
||||
$apps[$x]['destinations'][$y]['label'] = "call_centers";
|
||||
$apps[$x]['destinations'][$y]['name'] = "call_centers";
|
||||
$apps[$x]['destinations'][$y]['sql'] = "select queue_extension as destination, queue_description as description from v_call_center_queues";
|
||||
$apps[$x]['destinations'][$y]['sql'] = "select queue_extension as destination, queue_extension as extension, queue_description as description from v_call_center_queues";
|
||||
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' ";
|
||||
$apps[$x]['destinations'][$y]['order_by'] = "queue_name asc";
|
||||
$apps[$x]['destinations'][$y]['field']['name'] = "queue_name";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "queue_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['extension'] = "queue_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['description'] = "queue_description";
|
||||
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:\${destination} XML \${context}";
|
||||
$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer \${destination} XML \${context}";
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
$apps[$x]['destinations'][$y]['field']['call_flow_uuid'] = "call_flow_uuid";
|
||||
$apps[$x]['destinations'][$y]['field']['name'] = "call_flow_name";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "call_flow_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['extension'] = "call_flow_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['context'] = "call_flow_context";
|
||||
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:\${destination} XML \${context}";
|
||||
$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer \${destination} XML \${context}";
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
$apps[$x]['destinations'][$y]['field']['conference_center_uuid'] = "conference_center_uuid";
|
||||
$apps[$x]['destinations'][$y]['field']['name'] = "conference_center_name";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "conference_center_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['extension'] = "conference_center_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['description'] = "conference_center_description";
|
||||
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:\${destination} XML \${context}";
|
||||
$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer \${destination} XML \${context}";
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
$apps[$x]['destinations'][$y]['field']['conference_uuid'] = "conference_uuid";
|
||||
$apps[$x]['destinations'][$y]['field']['name'] = "conference_name";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "conference_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['extension'] = "conference_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['description'] = "conference_description";
|
||||
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:\${destination} XML \${context}";
|
||||
$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer \${destination} XML \${context}";
|
||||
|
||||
@@ -644,10 +644,12 @@ if (!class_exists('destinations')) {
|
||||
$y = 0;
|
||||
$this->destinations[$x]['result']['data'][$y]['label'] = 'check_voicemail';
|
||||
$this->destinations[$x]['result']['data'][$y]['name'] = '*98';
|
||||
$this->destinations[$x]['result']['data'][$y]['extension'] = '*98';
|
||||
$this->destinations[$x]['result']['data'][$y]['destination'] = '*98 XML ${context}';
|
||||
$y++;
|
||||
$this->destinations[$x]['result']['data'][$y]['label'] = 'company_directory';
|
||||
$this->destinations[$x]['result']['data'][$y]['name'] = '*411';
|
||||
$this->destinations[$x]['result']['data'][$y]['extension'] = '*411';
|
||||
$this->destinations[$x]['result']['data'][$y]['destination'] = '*411 XML ${context}';
|
||||
$y++;
|
||||
$this->destinations[$x]['result']['data'][$y]['label'] = 'hangup';
|
||||
@@ -657,6 +659,7 @@ if (!class_exists('destinations')) {
|
||||
$y++;
|
||||
$this->destinations[$x]['result']['data'][$y]['label'] = 'record';
|
||||
$this->destinations[$x]['result']['data'][$y]['name'] = '*732';
|
||||
$this->destinations[$x]['result']['data'][$y]['extension'] = '*732';
|
||||
$this->destinations[$x]['result']['data'][$y]['destination'] = '*732 XML ${context}';
|
||||
$y++;
|
||||
}
|
||||
@@ -744,6 +747,7 @@ if (!class_exists('destinations')) {
|
||||
//$array[$name][$i]['select_value'] = $select_value;
|
||||
//$array[$name][$i]['selected'] = $selected;
|
||||
$array[$name][$i]['destination'] = $select_value;
|
||||
$array[$name][$i]["extension"] = $data["extension"];
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
$apps[$x]['destinations'][$y]['order_by'] = "number_alias, extension asc";
|
||||
$apps[$x]['destinations'][$y]['field']['extension_uuid'] = "extension_uuid";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "number_alias,extension";
|
||||
$apps[$x]['destinations'][$y]['field']['extension'] = "number_alias,extension";
|
||||
$apps[$x]['destinations'][$y]['field']['context'] = "user_context";
|
||||
$apps[$x]['destinations'][$y]['field']['description'] = "description";
|
||||
$apps[$x]['destinations'][$y]['select_value']['user_contact'] = "user/\${destination}@\${domain_name}";
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
$apps[$x]['destinations'][$y]['order_by'] = "fax_extension asc";
|
||||
$apps[$x]['destinations'][$y]['field']['name'] = "fax_name";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "fax_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['extension'] = "fax_extension";
|
||||
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:\${destination} XML \${context}";
|
||||
$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer \${destination} XML \${context}";
|
||||
$apps[$x]['destinations'][$y]['select_label'] = "\${destination} \${name}";
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
$apps[$x]['destinations'][$y]['field']['ivr_menu_uuid'] = "ivr_menu_uuid";
|
||||
$apps[$x]['destinations'][$y]['field']['name'] = "ivr_menu_name";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "ivr_menu_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['extension'] = "ivr_menu_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['context'] = "ivr_menu_context";
|
||||
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:\${destination} XML \${context}";
|
||||
$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer \${destination} XML \${context}";
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
$apps[$x]['destinations'][$y]['field']['ring_group_uuid'] = "ring_group_uuid";
|
||||
$apps[$x]['destinations'][$y]['field']['name'] = "ring_group_name";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "ring_group_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['extension'] = "ring_group_extension";
|
||||
$apps[$x]['destinations'][$y]['field']['description'] = "ring_group_description";
|
||||
$apps[$x]['destinations'][$y]['field']['context'] = "ring_group_context";
|
||||
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:\${destination} XML \${context}";
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
$apps[$x]['destinations'][$y]['field']['context'] = "context";
|
||||
$apps[$x]['destinations'][$y]['field']['name'] = "dialplan_name";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "dialplan_number";
|
||||
$apps[$x]['destinations'][$y]['field']['extension'] = "dialplan_number";
|
||||
$apps[$x]['destinations'][$y]['field']['description'] = "dialplan_description";
|
||||
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:\${destination} XML \${context}";
|
||||
$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer \${destination} XML \${context}";
|
||||
|
||||
@@ -34,9 +34,11 @@
|
||||
$apps[$x]['destinations'][$y]['type'] = "sql";
|
||||
$apps[$x]['destinations'][$y]['label'] = "voicemails";
|
||||
$apps[$x]['destinations'][$y]['name'] = "voicemails";
|
||||
$apps[$x]['destinations'][$y]['sql'] = "select voicemail_id as destination, '*99' || voicemail_id as extension, voicemail_description as description from v_voicemails";
|
||||
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and voicemail_enabled = 'true' ";
|
||||
$apps[$x]['destinations'][$y]['order_by'] = "voicemail_id asc ";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "voicemail_id";
|
||||
$apps[$x]['destinations'][$y]['field']['extension'] = "voicemail_id";
|
||||
$apps[$x]['destinations'][$y]['field']['description'] = "voicemail_description";
|
||||
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:*99\${destination} XML \${context}";
|
||||
$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer *99\${destination} XML \${context}";
|
||||
|
||||
Reference in New Issue
Block a user