Skip to content

Commit

Permalink
Add meta_fullaudio-bridge create parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippKilian authored and liske committed Aug 9, 2022
1 parent 75fd18e commit 292d089
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
18 changes: 18 additions & 0 deletions b3lb/rest/migrations/0010_alter_parameter_parameter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.15 on 2022-08-09 11:14

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('rest', '0009_alter_parameter_parameter'),
]

operations = [
migrations.AlterField(
model_name='parameter',
name='parameter',
field=models.CharField(choices=[('allowModsToUnmuteUsers', 'allowModsToUnmuteUsers'), ('bannerColor', 'bannerColor'), ('bannerText', 'bannerText'), ('copyright', 'copyright'), ('disabledFeatures', 'disabledFeatures'), ('duration', 'duration'), ('endWhenNoModerator', 'endWhenNoModerator'), ('endWhenNoModeratorDelayInMinutes', 'endWhenNoModeratorDelayInMinutes'), ('groups', 'groups'), ('guestPolicy', 'guestPolicy'), ('lockSettingsDisableCam', 'lockSettingsDisableCam'), ('lockSettingsDisableMic', 'lockSettingsDisableMic'), ('lockSettingsDisablePrivateChat', 'lockSettingsDisablePrivateChat'), ('lockSettingsDisablePublicChat', 'lockSettingsDisablePublicChat'), ('lockSettingsDisableNote', 'lockSettingsDisableNote'), ('lockSettingsHideViewersCursor', 'lockSettingsHideViewersCursor'), ('lockSettingsLockOnJoin', 'lockSettingsLockOnJoin'), ('lockSettingsLockOnJoinConfigurable', 'lockSettingsLockOnJoinConfigurable'), ('lockSettingsLockedLayout', 'lockSettingsLockedLayout'), ('logo', 'logo'), ('logoutURL', 'logoutURL'), ('maxParticipants', 'maxParticipants'), ('meta_fullaudio-bridge', 'meta_fullaudio-bridge'), ('meetingCameraCap', 'meetingCameraCap'), ('meetingExpireIfNoUserJoinedInMinutes', 'meetingExpireIfNoUserJoinedInMinutes'), ('meetingExpireWhenLastUserLeftInMinutes', 'meetingExpireWhenLastUserLeftInMinutes'), ('meetingKeepEvents', 'meetingKeepEvents'), ('moderatorOnlyMessage', 'moderatorOnlyMessage'), ('muteOnStart', 'muteOnStart'), ('webcamsOnlyForModerator', 'webcamsOnlyForModerator'), ('welcome', 'welcome'), ('meetingLayout', 'meetingLayout'), ('preUploadedPresentationOverrideDefault', 'preUploadedPresentationOverrideDefault'), ('learningDashboardCleanupDelayInMinutes', 'learningDashboardCleanupDelayInMinutes'), ('role', 'role'), ('excludeFromDashboard', 'excludeFromDashboard'), ('userdata-bbb_ask_for_feedback_on_logout', 'userdata-bbb_ask_for_feedback_on_logout'), ('userdata-bbb_auto_join_audio', 'userdata-bbb_auto_join_audio'), ('userdata-bbb_client_title', 'userdata-bbb_client_title'), ('userdata-bbb_force_listen_only', 'userdata-bbb_force_listen_only'), ('userdata-bbb_listen_only_mode', 'userdata-bbb_listen_only_mode'), ('userdata-bbb_skip_check_audio', 'userdata-bbb_skip_check_audio'), ('userdata-bbb_skip_check_audio_on_first_join', 'userdata-bbb_skip_check_audio_on_first_join'), ('userdata-bbb_override_default_locale', 'userdata-bbb_override_default_locale'), ('userdata-bbb_display_branding_area', 'userdata-bbb_display_branding_area'), ('userdata-bbb_shortcuts', 'userdata-bbb_shortcuts'), ('userdata-bbb_auto_share_webcam', 'userdata-bbb_auto_share_webcam'), ('userdata-bbb_preferred_camera_profile', 'userdata-bbb_preferred_camera_profile'), ('userdata-bbb_enable_screen_sharing', 'userdata-bbb_enable_screen_sharing'), ('userdata-bbb_enable_video', 'userdata-bbb_enable_video'), ('userdata-bbb_record_video', 'userdata-bbb_record_video'), ('userdata-bbb_skip_video_preview', 'userdata-bbb_skip_video_preview'), ('userdata-bbb_skip_video_preview_on_first_join', 'userdata-bbb_skip_video_preview_on_first_join'), ('userdata-bbb_mirror_own_webcam', 'userdata-bbb_mirror_own_webcam'), ('userdata-bbb_force_restore_presentation_on_new_events', 'userdata-bbb_force_restore_presentation_on_new_events'), ('userdata-bbb_multi_user_pen_only', 'userdata-bbb_multi_user_pen_only'), ('userdata-bbb_presenter_tools', 'userdata-bbb_presenter_tools'), ('userdata-bbb_multi_user_tools', 'userdata-bbb_multi_user_tools'), ('userdata-bbb_custom_style', 'userdata-bbb_custom_style'), ('userdata-bbb_custom_style_url', 'userdata-bbb_custom_style_url'), ('userdata-bbb_auto_swap_layout', 'userdata-bbb_auto_swap_layout'), ('userdata-bbb_hide_presentation', 'userdata-bbb_hide_presentation'), ('userdata-bbb_show_participants_on_login', 'userdata-bbb_show_participants_on_login'), ('userdata-bbb_show_public_chat_on_login', 'userdata-bbb_show_public_chat_on_login'), ('userdata-bbb_outside_toggle_self_voice', 'userdata-bbb_outside_toggle_self_voice'), ('userdata-bbb_outside_toggle_recording', 'userdata-bbb_outside_toggle_recording')], max_length=64),
),
]
6 changes: 5 additions & 1 deletion b3lb/rest/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ class Parameter(models.Model):
LOCK_SETTINGS_LOCK_ON_JOIN_CONFIGURABLE = "lockSettingsLockOnJoinConfigurable"
GUEST_POLICY = "guestPolicy"
GROUPS = "groups"
META_FULLAUDIO_BRIDGE = "meta_fullaudio-bridge"
MEETING_CAMERA_CAP = "meetingCameraCap"
MEETING_EXPIRE_IF_NO_USER_JOINED_IN_MINUTES = "meetingExpireIfNoUserJoinedInMinutes"
MEETING_EXPIRE_WHEN_LAST_USER_LEFT_IN_MINUTES = "meetingExpireWhenLastUserLeftInMinutes"
Expand Down Expand Up @@ -675,6 +676,7 @@ class Parameter(models.Model):
(LOGO, LOGO),
(LOGOUT_URL, LOGOUT_URL),
(MAX_PARTICIPANTS, MAX_PARTICIPANTS),
(META_FULLAUDIO_BRIDGE, META_FULLAUDIO_BRIDGE),
(MEETING_CAMERA_CAP, MEETING_CAMERA_CAP),
(MEETING_EXPIRE_IF_NO_USER_JOINED_IN_MINUTES, MEETING_EXPIRE_IF_NO_USER_JOINED_IN_MINUTES),
(MEETING_EXPIRE_WHEN_LAST_USER_LEFT_IN_MINUTES, MEETING_EXPIRE_WHEN_LAST_USER_LEFT_IN_MINUTES),
Expand Down Expand Up @@ -755,6 +757,7 @@ class Parameter(models.Model):
URL_REGEX = r"^https?://[\w.-]+(?:\.[\w.-]+)+[\w._~:/?#[\]@!\$&'()*+,;=.%-]+$"
ROLE_REGEX = r'^(VIEWER|MODERATOR)$'
MEETING_LAYOUT_REGEX = r'(CUSTOM_LAYOUT|SMART_LAYOUT|PRESENTATION_FOCUS|VIDEO_FOCUS)$'
AUDIO_BRIDGE_REGEX = r'^(sipjs|kurento|fullaudio)$'
ANY_REGEX = r'.'

PARAMETER_REGEXES = {
Expand Down Expand Up @@ -783,6 +786,7 @@ class Parameter(models.Model):
LOGO: URL_REGEX,
GUEST_POLICY: POLICY_REGEX,
GROUPS: ANY_REGEX,
META_FULLAUDIO_BRIDGE: AUDIO_BRIDGE_REGEX,
MEETING_CAMERA_CAP: NUMBER_REGEX,
MEETING_EXPIRE_IF_NO_USER_JOINED_IN_MINUTES: NUMBER_REGEX,
MEETING_EXPIRE_WHEN_LAST_USER_LEFT_IN_MINUTES: NUMBER_REGEX,
Expand Down Expand Up @@ -851,7 +855,7 @@ class Parameter(models.Model):
END_WHEN_NO_MODERATOR_DELAY_IN_MINUTES, GUEST_POLICY, LOCK_SETTINGS_DISABLE_CAM, LOCK_SETTINGS_DISABLE_MIC,
LOCK_SETTINGS_DISABLE_PRIVATE_CHAT, LOCK_SETTINGS_DISABLE_PUBLIC_CHAT, LOCK_SETTINGS_DISABLE_NOTE, LOCK_SETTINGS_HIDE_VIEWER_CURSOR,
LOCK_SETTINGS_LOCK_ON_JOIN, LOCK_SETTINGS_LOCK_ON_JOIN_CONFIGURABLE, LOCK_SETTINGS_LOCKED_LAYOUT, LOGO, LOGOUT_URL,
MAX_PARTICIPANTS, MEETING_CAMERA_CAP, MEETING_EXPIRE_IF_NO_USER_JOINED_IN_MINUTES, MEETING_EXPIRE_WHEN_LAST_USER_LEFT_IN_MINUTES,
MAX_PARTICIPANTS, META_FULLAUDIO_BRIDGE, MEETING_CAMERA_CAP, MEETING_EXPIRE_IF_NO_USER_JOINED_IN_MINUTES, MEETING_EXPIRE_WHEN_LAST_USER_LEFT_IN_MINUTES,
MEETING_KEEP_EVENT, MODERATOR_ONLY_MESSAGE, MUTE_ON_START, WEBCAMS_ONLY_FOR_MODERATOR, WELCOME, MEETING_LAYOUT, LEARNING_DASHBOARD_CLEANUP_DELAY_IN_MINUTES,
PRE_UPLOADED_PRESENTATION_OVERRIDE_DEFAULT]

Expand Down

0 comments on commit 292d089

Please sign in to comment.