Skip to content

TEL-1048 - Ensure RoomId set for inbound calls when caller hangs up - #848

Merged
ChelseaBradbury merged 5 commits into
mainfrom
chelsea/TEL-1048-ensure-room-session-id-set
Sep 15, 2026
Merged

ChelseaBradbury merged 5 commits into
mainfrom
chelsea/TEL-1048-ensure-room-session-id-set

Conversation

@ChelseaBradbury

@ChelseaBradbury ChelseaBradbury commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

If a caller hangs up during waitSubscribe(), the call doesn't get a RoomId, even though the room has already been created and joined. Downstream, this causes the dashboard to show an empty session / room name for the call on the call overview, although the room info is still available in the event payloads.

This change sets the RoomId as soon as the room is joined, which should fix this case.

@ChelseaBradbury
ChelseaBradbury marked this pull request as ready for review September 15, 2026 00:45
@ChelseaBradbury
ChelseaBradbury requested a review from a team as a code owner September 15, 2026 00:45
devin-ai-integration[bot]

This comment was marked as resolved.

@alexfish8 alexfish8 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm!

Comment thread pkg/sip/inbound.go Outdated
if r := c.lkRoom.Room(); r != nil {
info.RoomId = r.SID()
info.RoomName = r.Name()
info.ParticipantAttributes = r.LocalParticipant.Attributes() // clones

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am not sure we want this 🤔

We do room.LocalParticipant.SetAttributes(partConf.Attributes) in Connect, but it's not guaranteed it'll be there in time. Considering this update happens right after joinRoom, it's possible it's not updated. As a result, it may wipe out what's been set earlier. Given the PR is just for roomId, I would suggest to just drop this line.

Suggested change
info.ParticipantAttributes = r.LocalParticipant.Attributes() // clones

@ChelseaBradbury
ChelseaBradbury merged commit 2dfb783 into main Sep 15, 2026
6 checks passed
@ChelseaBradbury
ChelseaBradbury deleted the chelsea/TEL-1048-ensure-room-session-id-set branch September 15, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants