From 5848fb12e1adb46e13b961f4123068873e1bc4e7 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 26 Apr 2014 06:05:39 +0000 Subject: [PATCH] Don't forget to add the gateway_uuid to the SQL Select --- resources/switch.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/switch.php b/resources/switch.php index 09abe2e09a..859bc611f3 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -868,11 +868,9 @@ function switch_select_destination($select_type, $select_label, $select_name, $s if ($select_type == "dialplan" || $select_type == "ivr" || $select_type == "call_center_contact" || $select_type == "bridge") { echo "\n"; } - $sql = "select v_gateways.gateway, v_domains.domain_name from v_gateways "; + $sql = "select v_gateways.gateway_uuid, v_gateways.gateway, v_domains.domain_name from v_gateways "; $sql .= "inner join v_domains on v_gateways.domain_uuid=v_domains.domain_uuid "; - //$sql = "select * from v_gateways "; $sql .= "where enabled = 'true' "; - //$sql .= "and domain_uuid = '$domain_uuid' "; $sql .= "order by gateway asc "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute();