diff --git a/app/call_centers/app_config.php b/app/call_centers/app_config.php index 5f5ab2595a..fad3ad6662 100644 --- a/app/call_centers/app_config.php +++ b/app/call_centers/app_config.php @@ -35,14 +35,15 @@ $apps[$x]['destinations'][$y]['type'] = "sql"; $apps[$x]['destinations'][$y]['label'] = "call_centers"; $apps[$x]['destinations'][$y]['name'] = "call_centers"; - $apps[$x]['destinations'][$y]['sql'] = "select call_center_queue_uuid, call_center_queue_uuid as uuid, queue_name as name, queue_extension as destination, queue_extension as extension, queue_description as description from v_call_center_queues"; + $apps[$x]['destinations'][$y]['sql'] = "select call_center_queue_uuid, call_center_queue_uuid as uuid, queue_name as name, queue_extension as destination, "; + $apps[$x]['destinations'][$y]['sql'] .= "queue_extension as extension, queue_context as context, queue_description as description from v_call_center_queues "; $apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' "; $apps[$x]['destinations'][$y]['order_by'] = "natural_sort(queue_extension) asc"; $apps[$x]['destinations'][$y]['field']['name'] = "queue_name"; - $apps[$x]['destinations'][$y]['field']['destination'] = "queue_extension"; - $apps[$x]['destinations'][$y]['field']['extension'] = "queue_extension"; - $apps[$x]['destinations'][$y]['field']['description'] = "queue_description"; - $apps[$x]['destinations'][$y]['field']['context'] = "queue_context"; + $apps[$x]['destinations'][$y]['field']['destination'] = "extension"; + $apps[$x]['destinations'][$y]['field']['extension'] = "extension"; + $apps[$x]['destinations'][$y]['field']['description'] = "description"; + $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} \${description}";