Skip to content

Adding ability to generate predictable room names#1426

Open
alexlivekit wants to merge 2 commits intomainfrom
alexmigolin/tel-378-standalone-sip-e2e-test
Open

Adding ability to generate predictable room names#1426
alexlivekit wants to merge 2 commits intomainfrom
alexmigolin/tel-378-standalone-sip-e2e-test

Conversation

@alexlivekit
Copy link
Contributor

No description provided.

@alexlivekit alexlivekit requested a review from a team February 23, 2026 21:28
@changeset-bot
Copy link

changeset-bot bot commented Feb 23, 2026

🦋 Changeset detected

Latest commit: 39efffe

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "github.com/livekit/protocol" specified in the `fixed` option does not match any package in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

sip/sip.go Outdated
if !predictableRoomName {
suffix = guid.New("")
}
room = fmt.Sprintf("%s_%s_%s", pref, from, suffix)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If predictableRoomName is true, there will be no suffix. Room name may not be unique? how about we add call ID as the suffix in this case?

if pref := rule.DispatchRuleCallee.GetRoomPrefix(); pref != "" {
room = pref + "_" + to
}
if rule.DispatchRuleCallee.Randomize {
Copy link
Contributor

@dennwc dennwc Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use similar approach here? Why pass a flag to the whole function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants