Add destination details to several app_config.php files.

This commit is contained in:
markjcrane
2015-08-04 14:52:10 -06:00
parent 7878b0efa8
commit 5c8a6dd7fe
14 changed files with 221 additions and 0 deletions

View File

@@ -20,6 +20,37 @@
$apps[$x]['description']['pt-pt'] = "Utilizado para configurar extensões SIP.";
$apps[$x]['description']['pt-br'] = "";
//destination details
$y = 0;
$apps[$x]['destinations'][$y]['type'] = "sql";
$apps[$x]['destinations'][$y]['label'] = "extensions";
$apps[$x]['destinations'][$y]['name'] = "extensions";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' and enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "extension asc";
$apps[$x]['destinations'][$y]['field']['context'] = "user_context";
$apps[$x]['destinations'][$y]['field']['destination'] = "extension";
$apps[$x]['destinations'][$y]['field']['description'] = "description";
$apps[$x]['destinations'][$y]['select_value']['call_center_contact'] = "user/\${destination}@\${domain_name}";
$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} \${description}";
$y++;
$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']['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']['context'] = "user_context";
$apps[$x]['destinations'][$y]['field']['destination']['name'] = "destination";
$apps[$x]['destinations'][$y]['field']['destination']['type'] = "csv";
$apps[$x]['destinations'][$y]['field']['destination']['delimiter'] = ",";
$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "bridge:group/\${destination}@\${domain_name}";
$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:bridge group/\${destination}@\${domain_name}";
$apps[$x]['destinations'][$y]['select_label'] = "\${destination}";
//permission details
$y = 0;
$apps[$x]['permissions'][$y]['name'] = "extension_view";