diff --git a/resources/switch.php b/resources/switch.php index 404620b581..9e2388ee69 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -2732,7 +2732,12 @@ if (!function_exists('save_call_center_xml')) { } $v_queues .= "\n"; $v_queues .= " \n"; - $v_queues .= " \n"; + if (strlen($queue_moh_sound) == 0) { + $v_queues .= " \n"; + } + else { + $v_queues .= " \n"; + } if (strlen($queue_record_template) > 0) { $v_queues .= " \n"; }