diff --git a/i18n/en-US.json b/i18n/en-US.json index a514bbe..d2e031b 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -658,7 +658,8 @@ "pinLabel": "Personal Conference Room number", "number": "Conferencing Phone Number(s)", "help": "You can create a conference call by providing a conferencing phone number and your personal room number to the participants", - "noConfNumbers": "You need to add a Main Conference Number (in the Main number section on the left of the SmartPBX) in order to enable the Personnals Conference Bridges" + "noConfNumbers": "You need to add a Main Conference Number (in the Main number section on the left of the SmartPBX) in order to enable the Personnals Conference Bridges", + "enableVideoConferencing": "Enable Video Conferencing" }, "do_not_disturb": { "headline": "User DND Settings", diff --git a/submodules/users/users.js b/submodules/users/users.js index c7b6367..97ce4e6 100644 --- a/submodules/users/users.js +++ b/submodules/users/users.js @@ -2102,6 +2102,20 @@ define(function(require) { if (monster.ui.valid(featureForm)) { data.conference = monster.ui.getFormData('conferencing_form'); + if (data.conference.enable_video_conferencing) { + data.conference = _.merge(data.conference, { + profile_name: 'verto', + caller_controls: 'verto-participant', + moderator_controls: 'verto-moderator' + }); + } else { + delete data.conference.profile_name; + delete data.conference.caller_controls; + delete data.conference.moderator_controls; + } + + delete data.conference.enable_video_conferencing; + if (switchFeature.prop('checked')) { self.usersUpdateConferencing(data, function(data) { args.userId = data.user.id; @@ -2125,6 +2139,8 @@ define(function(require) { }, usersFormatConferencingData: function(data) { + data.conference.enable_video_conferencing = _.has(data, 'conference.profile_name'); + return data; }, diff --git a/submodules/users/views/feature-conferencing.html b/submodules/users/views/feature-conferencing.html index 66e6553..9ee5ff6 100644 --- a/submodules/users/views/feature-conferencing.html +++ b/submodules/users/views/feature-conferencing.html @@ -30,6 +30,14 @@ {{ i18n.users.conferencing.pinLabel }} + +
+ +
{{#monsterText}}