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

View File

@ -807,4 +807,5 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//show the footer
require_once "resources/footer.php";
?>
?>

View File

@ -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;