Skip to content

TransferSIPParticipant deadline should be configurable #4017

Closed

Description

@mnbbrown

Currently there is a hardcoded 30 second deadline in SIP client for TransferSIPParticipant:

livekit/pkg/service/sip.go

Lines 660 to 667 in 35fb887

timeout := 30 * time.Second
if deadline, ok := ctx.Deadline(); ok {
timeout = time.Until(deadline)
} else {
var cancel func()
ctx, cancel = context.WithTimeout(ctx, timeout)
defer cancel()
}

Expected behavior
This should ideally be configurable. From what I can see the SIP bridge can take longer than 30 seconds to respond if the REFER target takes greater than 30 seconds to send a Ringing.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions