From 5211750c42c6543569ab7021b40d21f3e7b5f692 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 21 Feb 2020 17:28:19 -0700 Subject: [PATCH] Update destination_edit.php --- app/destinations/destination_edit.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index d22ab12a59..1740daa1cf 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -331,6 +331,7 @@ $sql .= " dialplan_detail_data like '%tone_detect%' "; $sql .= " or dialplan_detail_type = 'tone_detect' "; $sql .= " or dialplan_detail_type = 'record_session' "; + $sql .= " or (dialplan_detail_type = 'sleep' and dialplan_detail_data = '3000') "; $sql .= ")"; $parameters['domain_uuid'] = $domain_uuid; $parameters['dialplan_uuid'] = $dialplan_uuid; @@ -774,6 +775,12 @@ if (substr($dialplan_detail_data,0,22) == "execute_on_tone_detect") { unset($dialplan_details[$x]); } + if ($row['dialplan_detail_type'] == "answer") { + unset($dialplan_details[$x]); + } + if ($row['dialplan_detail_type'] == "sleep") { + unset($dialplan_details[$x]); + } if ($row['dialplan_detail_type'] == "record_session") { unset($dialplan_details[$x]); }