diff --git a/app/call_centers/app_config.php b/app/call_centers/app_config.php index 2a1d60a7e9..610d1b6af8 100644 --- a/app/call_centers/app_config.php +++ b/app/call_centers/app_config.php @@ -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}"; diff --git a/app/call_flows/app_config.php b/app/call_flows/app_config.php index 8f7786e732..f260fd46da 100644 --- a/app/call_flows/app_config.php +++ b/app/call_flows/app_config.php @@ -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}"; diff --git a/app/conference_centers/app_config.php b/app/conference_centers/app_config.php index 53c562a177..4aa88f5378 100644 --- a/app/conference_centers/app_config.php +++ b/app/conference_centers/app_config.php @@ -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}"; diff --git a/app/conferences/app_config.php b/app/conferences/app_config.php index d9df42dd80..20f8d1b824 100644 --- a/app/conferences/app_config.php +++ b/app/conferences/app_config.php @@ -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}"; diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index c6e449facf..10ca9ddab0 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -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++; } diff --git a/app/extensions/app_config.php b/app/extensions/app_config.php index eaf31f2bd1..ad73a13afb 100644 --- a/app/extensions/app_config.php +++ b/app/extensions/app_config.php @@ -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}"; diff --git a/app/fax/app_config.php b/app/fax/app_config.php index c0b1283ed8..c6bb87aa7d 100644 --- a/app/fax/app_config.php +++ b/app/fax/app_config.php @@ -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}"; diff --git a/app/ivr_menus/app_config.php b/app/ivr_menus/app_config.php index e2ee11fe67..b5b4229262 100644 --- a/app/ivr_menus/app_config.php +++ b/app/ivr_menus/app_config.php @@ -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}"; diff --git a/app/ring_groups/app_config.php b/app/ring_groups/app_config.php index d911e2a7fb..194b055dea 100644 --- a/app/ring_groups/app_config.php +++ b/app/ring_groups/app_config.php @@ -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}"; diff --git a/app/time_conditions/app_config.php b/app/time_conditions/app_config.php index 2a9f24d929..9bd9a0e8b5 100644 --- a/app/time_conditions/app_config.php +++ b/app/time_conditions/app_config.php @@ -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}"; diff --git a/app/voicemails/app_config.php b/app/voicemails/app_config.php index a188f20d43..60a2d41e43 100644 --- a/app/voicemails/app_config.php +++ b/app/voicemails/app_config.php @@ -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}";