From 264144caaf26b5319c829b3b9b6f478b2fe4467f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 28 Feb 2020 18:01:57 -0700 Subject: [PATCH] Update dialplan_outbound_add.php We don't need the sleep anymore in the outbound routes. --- app/dialplan_outbound/dialplan_outbound_add.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php index 59b41978d0..48697c297c 100644 --- a/app/dialplan_outbound/dialplan_outbound_add.php +++ b/app/dialplan_outbound/dialplan_outbound_add.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2018 + Portions created by the Initial Developer are Copyright (C) 2008-2020 the Initial Developer. All Rights Reserved. Contributor(s): @@ -625,7 +625,7 @@ $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_order'] = $y * 10; $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = '0'; } - + if (strlen($prefix_number) > 0) { if ($_SESSION['cdr']['remove_prefix']['boolean'] == 'true') { $y++; @@ -640,16 +640,6 @@ } } - $y++; - $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_uuid'] = uuid(); - $array['dialplans'][$x]['dialplan_details'][$y]['domain_uuid'] = $_SESSION['domain_uuid']; - $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_uuid'] = $dialplan_uuid; - $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_tag'] = 'action'; - $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_type'] = 'sleep'; - $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_data'] = '${sleep}'; - $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_order'] = $y * 10; - $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = '0'; - if ($gateway_type == "transfer") { $dialplan_detail_type = 'transfer'; } else { $dialplan_detail_type = 'bridge'; } $y++; $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_uuid'] = uuid(); @@ -685,7 +675,6 @@ $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = '0'; } - unset($bridge_data); unset($bridge_2_data); unset($bridge_3_data); @@ -1234,4 +1223,4 @@ function type_onchange(dialplan_detail_type) { //show the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>