From 71eb9c5a6a5831e3da09a2b4e3dd5bd2abdb3cff Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 9 Jan 2015 11:10:13 +0000 Subject: [PATCH] outbound_route_to_bridge simplify the dialplan detail SQL select. --- app/dialplan/dialplan_edit.php | 3 ++- resources/switch.php | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/dialplan/dialplan_edit.php b/app/dialplan/dialplan_edit.php index f857527c9a..7745585ec0 100644 --- a/app/dialplan/dialplan_edit.php +++ b/app/dialplan/dialplan_edit.php @@ -807,4 +807,5 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { //show the footer require_once "resources/footer.php"; -?> + +?> \ No newline at end of file diff --git a/resources/switch.php b/resources/switch.php index 2ded66537c..29e22138e1 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -2029,8 +2029,7 @@ function outbound_route_to_bridge ($domain_uuid, $destination_number) { //get the extension number using the dialplan_uuid $sql = "select * "; $sql .= "from v_dialplan_details "; - $sql .= "where (domain_uuid = '".$domain_uuid."' or domain_uuid is null) "; - $sql .= "and dialplan_uuid = '$dialplan_uuid' "; + $sql .= "where dialplan_uuid = '$dialplan_uuid' "; $sql .= "order by dialplan_detail_order asc "; $sub_result = $db->query($sql)->fetchAll(PDO::FETCH_ASSOC); $regex_match = false;