mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-21 18:36:31 +00:00
Add the uuid to the destinations array.
This commit is contained in:
@@ -34,11 +34,12 @@
|
||||
$apps[$x]['destinations'][$y]['type'] = "sql";
|
||||
$apps[$x]['destinations'][$y]['label'] = "extensions";
|
||||
$apps[$x]['destinations'][$y]['name'] = "extensions";
|
||||
$apps[$x]['destinations'][$y]['sql'] = "select extension, number_alias, user_context as context, description from v_extensions ";
|
||||
$apps[$x]['destinations'][$y]['sql'] = "select extension_uuid, extension, number_alias, user_context as context, description from v_extensions ";
|
||||
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and enabled = 'true' ";
|
||||
$apps[$x]['destinations'][$y]['order_by'] = "number_alias, extension asc";
|
||||
$apps[$x]['destinations'][$y]['field']['context'] = "user_context";
|
||||
$apps[$x]['destinations'][$y]['field']['extension_uuid'] = "extension_uuid";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "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}";
|
||||
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:\${destination} XML \${context}";
|
||||
@@ -48,9 +49,10 @@
|
||||
$apps[$x]['destinations'][$y]['type'] = "sql";
|
||||
$apps[$x]['destinations'][$y]['label'] = "loopback";
|
||||
$apps[$x]['destinations'][$y]['name'] = "extensions";
|
||||
$apps[$x]['destinations'][$y]['sql'] = "select extension, number_alias, user_context as context, description from v_extensions ";
|
||||
$apps[$x]['destinations'][$y]['sql'] = "select extension_uuid, extension, number_alias, user_context as context, description from v_extensions ";
|
||||
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and enabled = 'true' ";
|
||||
$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']['context'] = "user_context";
|
||||
$apps[$x]['destinations'][$y]['field']['description'] = "description";
|
||||
@@ -60,11 +62,12 @@
|
||||
$apps[$x]['destinations'][$y]['type'] = "sql";
|
||||
$apps[$x]['destinations'][$y]['label'] = "call_groups";
|
||||
$apps[$x]['destinations'][$y]['name'] = "extensions";
|
||||
$apps[$x]['destinations'][$y]['sql']['pgsql'] = "select distinct(unnest(string_to_array(call_group, ','))) as destination from v_extensions ";
|
||||
$apps[$x]['destinations'][$y]['sql']['pgsql'] = "select extension_uuid, distinct(unnest(string_to_array(call_group, ','))) as destination from v_extensions ";
|
||||
$apps[$x]['destinations'][$y]['sql']['sqlite'] = "select distinct(call_group) as destination from v_extensions";
|
||||
$apps[$x]['destinations'][$y]['sql']['mysql'] = "select distinct(call_group) as destination from v_extensions";
|
||||
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and call_group <> '' and enabled = 'true' ";
|
||||
$apps[$x]['destinations'][$y]['order_by'] = "destination asc";
|
||||
$apps[$x]['destinations'][$y]['field']['extension_uuid'] = "extension_uuid";
|
||||
$apps[$x]['destinations'][$y]['field']['context'] = "user_context";
|
||||
$apps[$x]['destinations'][$y]['field']['destination'] = "destination";
|
||||
//$apps[$x]['destinations'][$y]['field']['destination']['name'] = "destination";
|
||||
|
||||
Reference in New Issue
Block a user