diff --git a/resources/switch.php b/resources/switch.php
index 27b79660d9..47240fd158 100644
--- a/resources/switch.php
+++ b/resources/switch.php
@@ -453,120 +453,260 @@ function switch_select_destination($select_type, $select_label, $select_name, $s
echo " \n";
//list call center queues
- if ($select_type == "dialplan" || $select_type == "ivr") {
- $sql = "select * from v_call_center_queues ";
- $sql .= "where domain_uuid = '$domain_uuid' ";
- $sql .= "order by queue_name asc ";
- $prep_statement = $db->prepare(check_sql($sql));
- $prep_statement->execute();
- $result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
+ if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/call_center/app_config.php")) {
if ($select_type == "dialplan" || $select_type == "ivr") {
- echo "