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";