From e27646bcc699dcca611c2222b6c4d44029b032d5 Mon Sep 17 00:00:00 2001 From: Digital Daz Date: Wed, 21 Jan 2015 00:07:41 +0000 Subject: [PATCH] Fix music on hold for tone streams --- app/call_center/call_center_queue_edit.php | 37 +++++++++++----------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/app/call_center/call_center_queue_edit.php b/app/call_center/call_center_queue_edit.php index fdb489376d..b9b3b3a9c3 100644 --- a/app/call_center/call_center_queue_edit.php +++ b/app/call_center/call_center_queue_edit.php @@ -631,41 +631,42 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; $select_options = ""; - if ($queue_moh_sound == "\${us-ring}" || $queue_moh_sound == "us-ring") { - $select_options .= " \n"; + if ($queue_moh_sound == "tone_stream://\$\${us-ring};loops=-1" || $queue_moh_sound == "us-ring") { + $select_options .= " \n"; } else { - $select_options .= " \n"; + $select_options .= " \n"; } - if ($queue_moh_sound == "\${pt-ring}" || $queue_moh_sound == "pt-ring") { - $select_options .= " \n"; + if ($queue_moh_sound == "tone_stream://\$\${pt-ring};loops=-1" || $queue_moh_sound == "pt-ring") { + $select_options .= " \n"; } else { - $select_options .= " \n"; + $select_options .= " \n"; } - if ($queue_moh_sound == "\${fr-ring}" || $queue_moh_sound == "fr-ring") { - $select_options .= " \n"; + if ($queue_moh_sound == "tone_stream://\$\${fr-ring};loops=-1" || $queue_moh_sound == "fr-ring") { + $select_options .= " \n"; } else { - $select_options .= " \n"; + $select_options .= " \n"; } - if ($queue_moh_sound == "\${uk-ring}" || $queue_moh_sound == "uk-ring") { - $select_options .= " \n"; + if ($queue_moh_sound == "tone_stream://\$\${uk-ring};loops=-1" || $queue_moh_sound == "uk-ring") { + $select_options .= " \n"; } else { - $select_options .= " \n"; + $select_options .= " \n"; } - if ($queue_moh_sound == "\${rs-ring}" || $queue_moh_sound == "rs-ring") { - $select_options .= " \n"; + if ($queue_moh_sound == "tone_stream://\$\${rs-ring};loops=-1" || $queue_moh_sound == "rs-ring") { + $select_options .= " \n"; } else { - $select_options .= " \n"; + $select_options .= " \n"; } - if ($queue_moh_sound == "\${it-ring}" || $queue_moh_sound == "it-ring") { - $select_options .= " \n"; + + if ($queue_moh_sound == "tone_stream://\$\${it-ring};loops=-1" || $queue_moh_sound == "it-ring") { + $select_options .= " \n"; } else { - $select_options .= " \n"; + $select_options .= " \n"; } require_once "app/music_on_hold/resources/classes/switch_music_on_hold.php"; $moh= new switch_music_on_hold;