From 3b97657b1fc78974c1af86c852d4e902e806608d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 3 Feb 2022 18:28:20 -0700 Subject: [PATCH] Call flow destination select list update. (#6286) * Call flow destination select list update. * Update app_languages.php --- app/call_flows/app_config.php | 28 ++++++----- app/call_flows/app_languages.php | 80 ++++++++++++++++---------------- 2 files changed, 57 insertions(+), 51 deletions(-) diff --git a/app/call_flows/app_config.php b/app/call_flows/app_config.php index 9a04902b73..3ba9fb90c5 100644 --- a/app/call_flows/app_config.php +++ b/app/call_flows/app_config.php @@ -32,29 +32,31 @@ //destination details $y=0; $apps[$x]['destinations'][$y]['type'] = "sql"; - $apps[$x]['destinations'][$y]['label'] = "call_flow_destination"; + $apps[$x]['destinations'][$y]['label'] = "call_flow_extension"; $apps[$x]['destinations'][$y]['name'] = "call_flows"; + $apps[$x]['destinations'][$y]['sql'] = "select call_flow_name as name, call_flow_uuid as uuid, call_flow_extension as destination, call_flow_context from v_call_flows "; $apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and call_flow_enabled = 'true' "; $apps[$x]['destinations'][$y]['order_by'] = "call_flow_name asc"; $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']['destination'] = "destination"; + $apps[$x]['destinations'][$y]['field']['extension'] = "destination"; $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}"; $apps[$x]['destinations'][$y]['select_label'] = "\${destination} \${name}"; $y++; $apps[$x]['destinations'][$y]['type'] = "sql"; - $apps[$x]['destinations'][$y]['label'] = "call_flow_feature_code"; - $apps[$x]['destinations'][$y]['name'] = "call_flows"; + $apps[$x]['destinations'][$y]['label'] = "call_flow_feature"; + $apps[$x]['destinations'][$y]['name'] = "call_flow_feature"; + $apps[$x]['destinations'][$y]['sql'] = "select call_flow_name as name, call_flow_uuid as uuid, call_flow_extension as extension, call_flow_feature_code as destination, call_flow_context as context from v_call_flows "; $apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and call_flow_enabled = 'true' "; - $apps[$x]['destinations'][$y]['order_by'] = "call_flow_name asc"; - $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_feature_code"; - $apps[$x]['destinations'][$y]['field']['extension'] = "call_flow_feature_code"; - $apps[$x]['destinations'][$y]['field']['context'] = "call_flow_context"; + $apps[$x]['destinations'][$y]['order_by'] = "call_flow_extension asc"; + $apps[$x]['destinations'][$y]['field']['uuid'] = "uuid"; + $apps[$x]['destinations'][$y]['field']['name'] = "name"; + $apps[$x]['destinations'][$y]['field']['destination'] = "destination"; + $apps[$x]['destinations'][$y]['field']['extension'] = "extension"; + $apps[$x]['destinations'][$y]['field']['context'] = "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}"; $apps[$x]['destinations'][$y]['select_label'] = "\${destination} \${name}"; @@ -88,6 +90,10 @@ $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $apps[$x]['permissions'][$y]['groups'][] = "admin"; $y++; + $apps[$x]['permissions'][$y]['name'] = "call_flow_feature_destinations"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $apps[$x]['permissions'][$y]['groups'][] = "admin"; + $y++; //cache details $apps[$x]['cache']['key'] = "dialplan.\${call_flow_context}"; diff --git a/app/call_flows/app_languages.php b/app/call_flows/app_languages.php index 6e81095cef..2f7c5680d6 100644 --- a/app/call_flows/app_languages.php +++ b/app/call_flows/app_languages.php @@ -43,47 +43,47 @@ $text['title-call_flow']['ru-ru'] = "Переключатель вызовов"; $text['title-call_flow']['sv-se'] = "Samtalsflöde"; $text['title-call_flow']['uk-ua'] = "Потік дзвінків"; -$text['title-call_flow_destination']['en-us'] = "Call Flows - Destination"; -$text['title-call_flow_destination']['en-gb'] = "Call Flows - Destination"; -$text['title-call_flow_destination']['ar-eg'] = ""; -$text['title-call_flow_destination']['de-at'] = "Anruf Steuerung - Ziel"; //copied from de-de -$text['title-call_flow_destination']['de-ch'] = "Anruf Steuerung - Ziel"; //copied from de-de -$text['title-call_flow_destination']['de-de'] = "Anruf Steuerung - Ziel"; -$text['title-call_flow_destination']['es-cl'] = "Flujo de Llamada - Destino"; -$text['title-call_flow_destination']['es-mx'] = "Flujo de Llamada - Destino"; //copied from es-cl -$text['title-call_flow_destination']['fr-ca'] = "Flux d'appel - Destination"; //copied from fr-fr -$text['title-call_flow_destination']['fr-fr'] = "Flux d'appel - Destination"; -$text['title-call_flow_destination']['he-il'] = ""; -$text['title-call_flow_destination']['it-it'] = "Deviatori di Chiamata - Destinazione"; -$text['title-call_flow_destination']['nl-nl'] = "Oproep besturing - Bestemming"; -$text['title-call_flow_destination']['pl-pl'] = "Przepływ rozmów - Destynacja"; -$text['title-call_flow_destination']['pt-br'] = "Fluxo de chamadas - Destino"; -$text['title-call_flow_destination']['pt-pt'] = "Fluxo de Chamadas - Desvio"; -$text['title-call_flow_destination']['ro-ro'] = ""; -$text['title-call_flow_destination']['ru-ru'] = "Переключатели вызовов - Направление"; -$text['title-call_flow_destination']['sv-se'] = "Samtalsflöden - Destination"; -$text['title-call_flow_destination']['uk-ua'] = "Потоки дзвінків - Номер"; +$text['title-call_flow_extension']['en-us'] = "Call Flows - Extension"; +$text['title-call_flow_extension']['en-gb'] = "Call Flows - Extension"; +$text['title-call_flow_extension']['ar-eg'] = ""; +$text['title-call_flow_extension']['de-at'] = "Anruf Steuerung - Ziel"; //copied from de-de +$text['title-call_flow_extension']['de-ch'] = "Anruf Steuerung - Ziel"; //copied from de-de +$text['title-call_flow_extension']['de-de'] = "Anruf Steuerung - Ziel"; +$text['title-call_flow_extension']['es-cl'] = "Flujo de Llamada - Destino"; +$text['title-call_flow_extension']['es-mx'] = "Flujo de Llamada - Destino"; //copied from es-cl +$text['title-call_flow_extension']['fr-ca'] = "Flux d'appel - Destination"; //copied from fr-fr +$text['title-call_flow_extension']['fr-fr'] = "Flux d'appel - Destination"; +$text['title-call_flow_extension']['he-il'] = ""; +$text['title-call_flow_extension']['it-it'] = "Deviatori di Chiamata - Destinazione"; +$text['title-call_flow_extension']['nl-nl'] = "Oproep besturing - Bestemming"; +$text['title-call_flow_extension']['pl-pl'] = "Przepływ rozmów - Destynacja"; +$text['title-call_flow_extension']['pt-br'] = "Fluxo de chamadas - Destino"; +$text['title-call_flow_extension']['pt-pt'] = "Fluxo de Chamadas - Desvio"; +$text['title-call_flow_extension']['ro-ro'] = ""; +$text['title-call_flow_extension']['ru-ru'] = "Переключатели вызовов - Направление"; +$text['title-call_flow_extension']['sv-se'] = "Samtalsflöden - Destination"; +$text['title-call_flow_extension']['uk-ua'] = "Потоки дзвінків - Номер"; -$text['title-call_flow_feature_code']['en-us'] = "Call Flows - Feature Code"; -$text['title-call_flow_feature_code']['en-gb'] = "Call Flows - Feature Code"; -$text['title-call_flow_feature_code']['ar-eg'] = ""; -$text['title-call_flow_feature_code']['de-at'] = "Anruf Steuerung - Funktions-Code"; //copied from de-de -$text['title-call_flow_feature_code']['de-ch'] = "Anruf Steuerung - Funktions-Code"; //copied from de-de -$text['title-call_flow_feature_code']['de-de'] = "Anruf Steuerung - Funktions-Code"; -$text['title-call_flow_feature_code']['es-cl'] = "Flujo de Llamada - Código distintivo"; -$text['title-call_flow_feature_code']['es-mx'] = "Flujo de Llamada - Código distintivo"; //copied from es-cl -$text['title-call_flow_feature_code']['fr-ca'] = "Flux d'appel - Code Fonction"; //copied from fr-fr -$text['title-call_flow_feature_code']['fr-fr'] = "Flux d'appel - Code Fonction"; -$text['title-call_flow_feature_code']['he-il'] = ""; -$text['title-call_flow_feature_code']['it-it'] = "Deviatori di Chiamata "; -$text['title-call_flow_feature_code']['nl-nl'] = "Oproep besturing - Functie-code"; -$text['title-call_flow_feature_code']['pl-pl'] = "Przepływ rozmów "; -$text['title-call_flow_feature_code']['pt-br'] = "Fluxo de chamadas - Código de função"; -$text['title-call_flow_feature_code']['pt-pt'] = "Fluxo de Chamadas - Código de função"; -$text['title-call_flow_feature_code']['ro-ro'] = ""; -$text['title-call_flow_feature_code']['ru-ru'] = "Переключатели вызовов - Код функции"; -$text['title-call_flow_feature_code']['sv-se'] = "Samtalsflöden - Funktionskod"; -$text['title-call_flow_feature_code']['uk-ua'] = "Потоки дзвінків"; +$text['title-call_flow_feature']['en-us'] = "Call Flows - Feature"; +$text['title-call_flow_feature']['en-gb'] = "Call Flows - Feature"; +$text['title-call_flow_feature']['ar-eg'] = ""; +$text['title-call_flow_feature']['de-at'] = "Anruf Steuerung - Funktions"; //copied from de-de +$text['title-call_flow_feature']['de-ch'] = "Anruf Steuerung - Funktions"; //copied from de-de +$text['title-call_flow_feature']['de-de'] = "Anruf Steuerung - Funktions"; +$text['title-call_flow_feature']['es-cl'] = "Flujo de Llamada - distintivo"; +$text['title-call_flow_feature']['es-mx'] = "Flujo de Llamada - distintivo"; //copied from es-cl +$text['title-call_flow_feature']['fr-ca'] = "Flux d'appel - Fonction"; //copied from fr-fr +$text['title-call_flow_feature']['fr-fr'] = "Flux d'appel - Fonction"; +$text['title-call_flow_feature']['he-il'] = ""; +$text['title-call_flow_feature']['it-it'] = "Deviatori di Chiamata "; +$text['title-call_flow_feature']['nl-nl'] = "Oproep besturing - Functie"; +$text['title-call_flow_feature']['pl-pl'] = "Przepływ rozmów "; +$text['title-call_flow_feature']['pt-br'] = "Fluxo de chamadas - Função"; +$text['title-call_flow_feature']['pt-pt'] = "Fluxo de Chamadas - Função"; +$text['title-call_flow_feature']['ro-ro'] = ""; +$text['title-call_flow_feature']['ru-ru'] = "Переключатели вызовов - Код функции"; +$text['title-call_flow_feature']['sv-se'] = "Samtalsflöden - Funktionskod"; +$text['title-call_flow_feature']['uk-ua'] = "Потоки дзвінків"; $text['label-call_flow_name']['en-us'] = "Name"; $text['label-call_flow_name']['en-gb'] = "Name";