outbound_route_to_bridge simplify the dialplan detail SQL select.

This commit is contained in:
Mark Crane
2015-01-09 11:10:13 +00:00
parent da38cdac5a
commit 71eb9c5a6a
2 changed files with 3 additions and 3 deletions
+1
View File
@@ -807,4 +807,5 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//show the footer //show the footer
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>
+1 -2
View File
@@ -2029,8 +2029,7 @@ function outbound_route_to_bridge ($domain_uuid, $destination_number) {
//get the extension number using the dialplan_uuid //get the extension number using the dialplan_uuid
$sql = "select * "; $sql = "select * ";
$sql .= "from v_dialplan_details "; $sql .= "from v_dialplan_details ";
$sql .= "where (domain_uuid = '".$domain_uuid."' or domain_uuid is null) "; $sql .= "where dialplan_uuid = '$dialplan_uuid' ";
$sql .= "and dialplan_uuid = '$dialplan_uuid' ";
$sql .= "order by dialplan_detail_order asc "; $sql .= "order by dialplan_detail_order asc ";
$sub_result = $db->query($sql)->fetchAll(PDO::FETCH_ASSOC); $sub_result = $db->query($sql)->fetchAll(PDO::FETCH_ASSOC);
$regex_match = false; $regex_match = false;