Skip to content

Adding ability to specify per-trunk media timeouts#1534

Open
alexlivekit wants to merge 5 commits intomainfrom
alexmigolin/tel-565-allow-customers-to-specify-media-timeout
Open

Adding ability to specify per-trunk media timeouts#1534
alexlivekit wants to merge 5 commits intomainfrom
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: a4f3941

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.

@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
if err := validateHeaderToAttributes(p.HeadersToAttributes); err != nil {
return err
}
timeout := MaxSIPMediaTimeout
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.

After #1530 you could use new(MaxSIPMediaTimeout) as it updates Go to 1.26.

Comment thread protobufs/rpc/io.proto

// 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?


// NEXT ID: 19
// Max time a call can last without incoming RTP data received. If unset, defaults are used.
google.protobuf.Duration media_timeout = 19;
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.

Lets move it to the dispatch rule level, similar to #1530. If you move this field to the SIPMediaConfig it will already be on the right level.

In general we should avoid adding new settings to trunks, as they might be gone after we implement the webhooks.


// NEXT ID: 18
// Max time a call can last without incoming RTP data received. If unset, defaults are used.
google.protobuf.Duration media_timeout = 18;
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.

Same here, we could just leave it on the CreateSIPParticipant level and avoid using trunks.

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