mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Show the IVR Menu's extension in the Destination Select List
This commit is contained in:
@@ -51,13 +51,14 @@
|
|||||||
$apps[$x]['destinations'][$y]['type'] = "sql";
|
$apps[$x]['destinations'][$y]['type'] = "sql";
|
||||||
$apps[$x]['destinations'][$y]['label'] = "ivr_menus_sub";
|
$apps[$x]['destinations'][$y]['label'] = "ivr_menus_sub";
|
||||||
$apps[$x]['destinations'][$y]['name'] = "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]['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]['order_by'] = "natural_sort(ivr_menu_extension) asc";
|
||||||
$apps[$x]['destinations'][$y]['field']['name'] = "ivr_menu_name";
|
$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]['field']['uuid'] = "ivr_menu_uuid";
|
||||||
$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-sub:\${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++;
|
$y++;
|
||||||
$apps[$x]['destinations'][$y]['type'] = 'array';
|
$apps[$x]['destinations'][$y]['type'] = 'array';
|
||||||
|
|||||||
Reference in New Issue
Block a user