diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 1b599337f2..68a3521c78 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -247,7 +247,7 @@ if (strlen($destination_cid_name_prefix) > 0) { $dialplan["dialplan_xml"] .= " \n"; } - if (strlen($destination_record) > 0) { + if (strlen($destination_record) > 0 && $destination_record == 'true') { $dialplan["dialplan_xml"] .= " \n"; $dialplan["dialplan_xml"] .= " \n"; $dialplan["dialplan_xml"] .= " \n";