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;