From a8aa185f7572b74d3e3779c52a7dcc26e826f16e Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 25 Sep 2013 01:29:43 +0000 Subject: [PATCH] Set the default music on hold correctly for call center. --- resources/switch.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"; }