From 2abdf41a5bf90e51150757da0ae12dfd325acc5e Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 24 Apr 2014 10:04:18 +0000 Subject: [PATCH] Show only defined call groups --- resources/switch.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/switch.php b/resources/switch.php index 403d850778..9996db2421 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -530,6 +530,7 @@ function switch_select_destination($select_type, $select_label, $select_name, $s if ($select_type == "dialplan" || $select_type == "ivr") { $sql = "select distinct(call_group) from v_extensions "; $sql .= "where domain_uuid = '$domain_uuid' "; + $sql .= "and call_group <> '' "; $sql .= "order by call_group asc "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute();