From f21c251a4e8ea724da88ed8f8ae15dc84ae37ee8 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 19 Jul 2014 02:22:55 +0000 Subject: [PATCH] Fix call center per domain music on hold --- resources/switch.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/switch.php b/resources/switch.php index a05e9d7662..b38dac9d4d 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -2781,7 +2781,15 @@ if (!function_exists('save_call_center_xml')) { $v_queues .= " \n"; } else { - $v_queues .= " \n"; + if (substr($queue_moh_sound, 0, 15) == "local_stream://") { + $v_queues .= " \n"; + } + elseif (substr($queue_moh_sound, 0, 2) == "${" && substr($queue_moh_sound, -5) == "ring}") { + $v_queues .= " \n"; + } + else { + $v_queues .= " \n"; + } } if (strlen($queue_record_template) > 0) { $v_queues .= " \n";