From 91153153e5038b58d66fdc2c9d38f260863011b0 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 4 Nov 2013 18:18:10 +0000 Subject: [PATCH] Add call center ring tone music on hold options. --- app/call_center/app_languages.php | 16 +++++++++++++ app/call_center/call_center_queue_edit.php | 26 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/app/call_center/app_languages.php b/app/call_center/app_languages.php index e09b705ca8..b73f739142 100644 --- a/app/call_center/app_languages.php +++ b/app/call_center/app_languages.php @@ -113,6 +113,22 @@ $text['label-music_on_hold']['pt-pt'] = "Música em Espera"; $text['label-music_on_hold']['fr-fr'] = "Mise de Garde"; + $text['option-usring']['en-us'] = "us-ring"; + $text['option-usring']['pt-pt'] = "us-ring"; + $text['option-usring']['fr-fr'] = "us-ring"; + + $text['option-frring']['en-us'] = "fr-ring"; + $text['option-frring']['pt-pt'] = "fr-ring"; + $text['option-frring']['fr-fr'] = "fr-ring"; + + $text['option-ukring']['en-us'] = "uk-ring"; + $text['option-ukring']['pt-pt'] = "uk-ring"; + $text['option-ukring']['fr-fr'] = "uk-ring"; + + $text['option-rsring']['en-us'] = "rs-ring"; + $text['option-rsring']['pt-pt'] = "rs-ring"; + $text['option-rsring']['fr-fr'] = "rs-ring"; + $text['label-record_template']['en-us'] = "Record Template"; $text['label-record_template']['pt-pt'] = "Gravar Template"; $text['label-record_template']['fr-fr'] = "Modèle d'enregistrement"; diff --git a/app/call_center/call_center_queue_edit.php b/app/call_center/call_center_queue_edit.php index d373c0027b..d190189fdd 100644 --- a/app/call_center/call_center_queue_edit.php +++ b/app/call_center/call_center_queue_edit.php @@ -432,10 +432,36 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; + $select_options = ""; + if ($ring_group_ringback == "\${us-ring}" || $ring_group_ringback == "us-ring") { + $select_options .= " \n"; + } + else { + $select_options .= " \n"; + } + if ($ring_group_ringback == "\${fr-ring}" || $ring_group_ringback == "fr-ring") { + $select_options .= " \n"; + } + else { + $select_options .= " \n"; + } + if ($ring_group_ringback == "\${uk-ring}" || $ring_group_ringback == "uk-ring") { + $select_options .= " \n"; + } + else { + $select_options .= " \n"; + } + if ($ring_group_ringback == "\${rs-ring}" || $ring_group_ringback == "rs-ring") { + $select_options .= " \n"; + } + else { + $select_options .= " \n"; + } require_once "app/music_on_hold/resources/classes/switch_music_on_hold.php"; $moh= new switch_music_on_hold; $moh->select_name = "queue_moh_sound"; $moh->select_value = $queue_moh_sound; + $moh->select_options = $select_options; echo $moh->select(); echo "
\n";