Repository navigation
build(livekit): livekit/[email protected], [email protected], bypass guest lobby for dial-ins when using LK audio - #23535
Conversation
The LK integration currently does not supported guest lobbies for dial-in/SIP endpoints. It'll be fixed somehow in the future, but right now it's problematic. Always bypass guest lobby for dial-in/SIP endpoints when LiveKit is the meeting's audio bridge.
v2.19.0-beta.4 --- * fix(livekit): don't create RTC clients for non-BBB meetings * fix(livekit): incorrect metadata override for external participants
WalkthroughThe changes introduce a new helper method, Sequence Diagram(s)sequenceDiagram
participant User
participant VoiceConfHandler as UserJoinedVoiceConfEvtMsgHdlr
participant HandlerHelpers
participant LiveMeeting
User->>VoiceConfHandler: Join via dial-in
VoiceConfHandler->>HandlerHelpers: isUsingLiveKitAudio(liveMeeting)
HandlerHelpers-->>VoiceConfHandler: Boolean (is LiveKit audio?)
VoiceConfHandler->>VoiceConfHandler: Set enforceGuestPolicy based on dialInEnforceGuestPolicy and isUsingLiveKitAudio
alt enforceGuestPolicy is true
VoiceConfHandler->>VoiceConfHandler: Enforce guest lobby
else enforceGuestPolicy is false
VoiceConfHandler->>VoiceConfHandler: Skip guest lobby enforcement
end
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/voice/UserJoinedVoiceConfEvtMsgHdlr.scala(2 hunks)akka-bbb-apps/src/main/scala/org/bigbluebutton/core/running/HandlerHelpers.scala(1 hunks)bbb-webrtc-sfu.placeholder.sh(1 hunks)build/packages-template/bbb-livekit/build.sh(1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: jaapjansma
PR: bigbluebutton/bigbluebutton#21204
File: bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/MeetingsManagerActor.scala:21-21
Timestamp: 2024-10-10T12:15:03.265Z
Learning: When reviewing code changes in BigBlueButton, particularly in case classes like `RegisterUser` in `MeetingsManagerActor.scala`, ensure to accurately distinguish between added parameters and replaced parameters to avoid incorrect assessments.
bbb-webrtc-sfu.placeholder.sh (1)
Learnt from: prlanzarin
PR: bigbluebutton/bigbluebutton#21891
File: bbb-webrtc-sfu.placeholder.sh:1-1
Timestamp: 2024-12-12T17:57:29.161Z
Learning: In the `bbb-webrtc-sfu.placeholder.sh` script, adding a shebang and error handling is not necessary.
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/running/HandlerHelpers.scala (1)
Learnt from: jaapjansma
PR: bigbluebutton/bigbluebutton#21204
File: bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/MeetingsManagerActor.scala:21-21
Timestamp: 2024-10-10T12:15:03.265Z
Learning: When reviewing code changes in BigBlueButton, particularly in case classes like `RegisterUser` in `MeetingsManagerActor.scala`, ensure to accurately distinguish between added parameters and replaced parameters to avoid incorrect assessments.
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/voice/UserJoinedVoiceConfEvtMsgHdlr.scala (1)
Learnt from: jaapjansma
PR: bigbluebutton/bigbluebutton#21204
File: bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/MeetingsManagerActor.scala:21-21
Timestamp: 2024-10-10T12:15:03.265Z
Learning: When reviewing code changes in BigBlueButton, particularly in case classes like `RegisterUser` in `MeetingsManagerActor.scala`, ensure to accurately distinguish between added parameters and replaced parameters to avoid incorrect assessments.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: build-package (bbb-graphql-server)
- GitHub Check: build-package (others)
- GitHub Check: build-package (bbb-webrtc)
- GitHub Check: build-package (bbb-html5)
- GitHub Check: build-package (bbb-apps-akka)
- GitHub Check: build-package (bbb-playback-record)
🔇 Additional comments (6)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/running/HandlerHelpers.scala (2)
350-353: LGTM! Clean refactoring improves code modularity.The extraction of the audio bridge check into a separate method improves code reusability and makes the intent clearer.
355-358: LGTM! Well-designed helper method.The new
isUsingLiveKitAudiomethod follows the same pattern as the existingisUsingLiveKitmethod and encapsulates the audio bridge check logic appropriately.akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/voice/UserJoinedVoiceConfEvtMsgHdlr.scala (3)
6-6: LGTM! Proper import addition.Adding
HandlerHelpersto the import statement enables access to the newly created helper method.
12-12: LGTM! Trait extension correctly implemented.Extending
HandlerHelpersprovides access to theisUsingLiveKitAudiomethod needed for the guest lobby bypass logic.
140-147: LGTM! Correctly implements guest lobby bypass for LiveKit audio.The logic correctly combines the existing
dialInEnforceGuestPolicyflag with the LiveKit audio check. This ensures guest lobby enforcement is bypassed specifically for dial-in users joining via LiveKit audio, which aligns with the PR objectives since LiveKit doesn't fully support guest lobbies for dial-in/SIP endpoints yet.build/packages-template/bbb-livekit/build.sh (1)
7-7: Please confirm that SIP version v1.1.1 is an official, stable releaseWe found the git tag “v1.1.1” in the livekit/sip repo, but no GitHub release object (draft/prerelease) returned. Before merging:
- Verify in the GitHub UI or via the CLI that v1.1.1 is published as a stable release (not draft or prerelease).
- Ensure this tag is intended for production use; if not, update to the correct version or wait for the official release.
build/packages-template/bbb-livekit/build.sh: line 7
SIP_VERSION=v1.1.1
| #!/bin/bash | ||
|
|
||
| git clone --branch v2.19.0-beta.3 --depth 1 https://github.com/bigbluebutton/bbb-webrtc-sfu bbb-webrtc-sfu | ||
| git clone --branch v2.19.0-beta.4 --depth 1 https://github.com/bigbluebutton/bbb-webrtc-sfu bbb-webrtc-sfu |
There was a problem hiding this comment.
💡 Verification agent
🧩 Analysis chain
Verify the branch exists and is appropriate.
The version bump to v2.19.0-beta.4 aligns with the PR objectives. Please verify that this branch exists and contains the expected fixes mentioned in the PR summary.
🏁 Script executed:
#!/bin/bash
# Check if the branch v2.19.0-beta.4 exists on GitHub
curl -s "https://api.github.com/repos/bigbluebutton/bbb-webrtc-sfu/branches/v2.19.0-beta.4" | jq '.name'Length of output: 107
Branch v2.19.0-beta.4 not found on GitHub
The clone command in bbb-webrtc-sfu.placeholder.sh still references a branch that doesn’t exist in the bigbluebutton/bbb-webrtc-sfu repo. Please confirm the correct branch name or push the v2.19.0-beta.4 branch before merging.
Locations to update:
- File: bbb-webrtc-sfu.placeholder.sh
Line 3
Suggested fix (example):
- git clone --branch v2.19.0-beta.4 --depth 1 https://github.com/bigbluebutton/bbb-webrtc-sfu bbb-webrtc-sfu
+ git clone --branch v2.19.0-beta.3 --depth 1 https://github.com/bigbluebutton/bbb-webrtc-sfu bbb-webrtc-sfu—or— push the v2.19.0-beta.4 branch so it can be checked out.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| git clone --branch v2.19.0-beta.4 --depth 1 https://github.com/bigbluebutton/bbb-webrtc-sfu bbb-webrtc-sfu | |
| git clone --branch v2.19.0-beta.3 --depth 1 https://github.com/bigbluebutton/bbb-webrtc-sfu bbb-webrtc-sfu |
🤖 Prompt for AI Agents
In bbb-webrtc-sfu.placeholder.sh at line 3, the git clone command references a
non-existent branch v2.19.0-beta.4. Verify the correct branch name available in
the bigbluebutton/bbb-webrtc-sfu repository and update the clone command to use
that branch. Alternatively, if the v2.19.0-beta.4 branch is intended, ensure it
is pushed to the remote repository before merging.
Automated tests Summary✅ All the CI tests have passed! |



What does this PR do?
dial-in/SIP endpoints. It'll be fixed in the future, but right
now it's problematic to keep this enabled as it does not reflect
the participants correct state.
meeting's audio bridge.
Closes Issue(s)
None