diff --git a/src/boot/constants.js b/src/boot/constants.js index 0fe0caac..9abedb89 100644 --- a/src/boot/constants.js +++ b/src/boot/constants.js @@ -6,4 +6,5 @@ export default ({ Vue, app }) => { { label: app.i18n.t('communication.quality.super'), value: 'super' } ] Vue.prototype.$faxQualityOptionsDefault = Vue.prototype.$faxQualityOptions[0] + Vue.prototype.$defaultVoicePromptLanguage = 'use domain default' } diff --git a/src/i18n/en.json b/src/i18n/en.json index a76fbdd1..6643c61c 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -768,6 +768,8 @@ }, "callSettings": { "musicOnHold": "Music on Hold", - "musicOnHoldHint": "\"Music on Hold\" - if set to true and a music on hold file is provided, a calling party gets that file played when put on hold" + "musicOnHoldHint": "\"Music on Hold\" - if set to true and a music on hold file is provided, a calling party gets that file played when put on hold", + "language": "Language for voicemail and app server", + "languageHint": "Voice prompts language for voicemail, conference and application server" } } diff --git a/src/pages/CscPageCallSettings.vue b/src/pages/CscPageCallSettings.vue index eec709dd..aa8c8842 100644 --- a/src/pages/CscPageCallSettings.vue +++ b/src/pages/CscPageCallSettings.vue @@ -27,6 +27,29 @@ /> + + + + + + + + @@ -53,6 +76,12 @@ export default { }, data () { return { + languages: [ + { + value: 0, + label: 'Domain default' + } + ] } }, computed: { @@ -60,7 +89,8 @@ export default { 'subscriberPreferencesInitialized' ]), ...mapGetters('callSettings', [ - 'musicOnHold' + 'musicOnHold', + 'language' ]), ...mapWaitingGetters({ processingSubscriberPreferences: 'processing subscriberPreferences' @@ -79,7 +109,8 @@ export default { methods: { ...mapWaitingActions('callSettings', { loadSubscriberPreferencesAction: 'processing subscriberPreferences', - setMusicOnHold: 'processing subscriberPreferences' + setMusicOnHold: 'processing subscriberPreferences', + setLanguage: 'processing subscriberPreferences' }), async toggleMusicOnHold () { try { diff --git a/src/store/call-settings.js b/src/store/call-settings.js index b2a67158..8705fae0 100644 --- a/src/store/call-settings.js +++ b/src/store/call-settings.js @@ -15,6 +15,9 @@ export default { }, musicOnHold (state) { return state.subscriberPreferences.music_on_hold + }, + language (state, context) { + return state.subscriberPreferences.language || state.$defaultVoicePromptLanguage } }, mutations: {