From 93058bfc578ea22dc1e5b0ae21bc40bdd14f1206 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 10 Aug 2023 15:16:17 -0600 Subject: [PATCH] outbound_route_to_bridge check to see if the dialplan_detail_enabled is set to true --- resources/switch.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/switch.php b/resources/switch.php index fcc534960f..a066e0bbe8 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -443,6 +443,7 @@ function outbound_route_to_bridge($domain_uuid, $destination_number, array $chan $sql .= "and (hostname = :hostname or hostname is null) "; $sql .= "and d.app_uuid = '8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3' "; $sql .= "and d.dialplan_enabled = 'true' "; + $sql .= "and dd.dialplan_detail_enabled = 'true' "; $sql .= "order by d.domain_uuid, d.dialplan_order, dd.dialplan_detail_order "; $parameters['hostname'] = $hostname; $database = new database;