From bd9190ce38c214f419ffcc9b5b3dd5db7625bc0d Mon Sep 17 00:00:00 2001 From: markjcrane Date: Tue, 23 Dec 2025 09:51:39 -0700 Subject: [PATCH] Show the IVR Menu's extension in the Destination Select List --- app/ivr_menus/app_config.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/ivr_menus/app_config.php b/app/ivr_menus/app_config.php index e148789164..957c05ad43 100644 --- a/app/ivr_menus/app_config.php +++ b/app/ivr_menus/app_config.php @@ -51,13 +51,14 @@ $apps[$x]['destinations'][$y]['type'] = "sql"; $apps[$x]['destinations'][$y]['label'] = "ivr_menus_sub"; $apps[$x]['destinations'][$y]['name'] = "ivr_menus_sub"; - $apps[$x]['destinations'][$y]['sql'] = "select ivr_menu_name as name, ivr_menu_uuid as uuid from v_ivr_menus "; + $apps[$x]['destinations'][$y]['sql'] = "select ivr_menu_name as name, ivr_menu_extension as destination, ivr_menu_uuid as uuid from v_ivr_menus "; $apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and ivr_menu_enabled = true "; $apps[$x]['destinations'][$y]['order_by'] = "natural_sort(ivr_menu_extension) asc"; $apps[$x]['destinations'][$y]['field']['name'] = "ivr_menu_name"; + $apps[$x]['destinations'][$y]['field']['destination'] = "ivr_menu_extension"; $apps[$x]['destinations'][$y]['field']['uuid'] = "ivr_menu_uuid"; $apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-sub:\${uuid}"; - $apps[$x]['destinations'][$y]['select_label'] = "\${name}"; + $apps[$x]['destinations'][$y]['select_label'] = "\${destination} \${name}"; $y++; $apps[$x]['destinations'][$y]['type'] = 'array';