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]); }