Skip to content

Adding ability to specify per-trunk media timeouts#1534

Merged
alexlivekit merged 5 commits into
mainfrom
alexmigolin/tel-565-allow-customers-to-specify-media-timeout
May 12, 2026
Merged

Adding ability to specify per-trunk media timeouts#1534
alexlivekit merged 5 commits into
mainfrom
alexmigolin/tel-565-allow-customers-to-specify-media-timeout

Conversation

@alexlivekit
Copy link
Copy Markdown
Contributor

No description provided.

@alexlivekit alexlivekit requested a review from a team May 5, 2026 22:44
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 5, 2026

🦋 Changeset detected

Latest commit: f07fae1

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

This PR includes changesets to release 2 packages
Name Type
github.com/livekit/protocol Minor
@livekit/protocol Minor

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

@dennwc
Copy link
Copy Markdown
Contributor

dennwc commented May 6, 2026

@alexlivekit lets lend it after #1530 and move the media timeout into the new SIPMediaConfig. It will be easier to pass it everywhere that way.

Comment thread livekit/sip.go Outdated
Comment thread protobufs/rpc/io.proto Outdated

// NEXT ID: 24
// Per-call RTP media timeout; if unset, SIP service defaults apply.
google.protobuf.Duration media_timeout = 24;
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.

Do we want to allow overriding the initial media timeout as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

that was the initial approach, but opted out of it for now - this is mainly for oddball hold behavior, which happens after setup.

Comment thread protobufs/livekit_sip.proto Outdated
Comment thread protobufs/livekit_sip.proto Outdated
@alexlivekit alexlivekit force-pushed the alexmigolin/tel-565-allow-customers-to-specify-media-timeout branch from a4f3941 to 7800297 Compare May 12, 2026 21:38
@alexlivekit alexlivekit force-pushed the alexmigolin/tel-565-allow-customers-to-specify-media-timeout branch from 7800297 to ed81a8f Compare May 12, 2026 21:44
Comment thread livekit/sip.go
applyListUpdate(&info.TrunkIds, p.TrunkIds)
applyUpdatePtr(&info.Rule, p.Rule)
applyUpdatePtr(&info.Media, p.Media)
applyUpdatePtr(&info.Media, p.Media) // TODO: Consider applying partial updates
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@dennwc , we might need to revisit this to avoid it being a pain long term

Comment thread livekit/sip.go
Comment on lines +1075 to +1080
func (p *SIPMediaEncryption) Deref() SIPMediaEncryption {
if p == nil {
return SIPMediaEncryption_SIP_MEDIA_ENCRYPT_DISABLE
}
return *p
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved as-is.

@alexlivekit alexlivekit merged commit c4a1eb3 into main May 12, 2026
9 checks passed
@alexlivekit alexlivekit deleted the alexmigolin/tel-565-allow-customers-to-specify-media-timeout branch May 12, 2026 23:35
@github-actions github-actions Bot mentioned this pull request May 12, 2026
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