From 93422be0c5b0a4960987aaf5712ac71d44806cd1 Mon Sep 17 00:00:00 2001 From: He Chen Date: Thu, 23 Jul 2026 15:29:24 -0700 Subject: [PATCH] TELCU-1: send resolved ringing timeout (#4697) --- pkg/service/sip.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/service/sip.go b/pkg/service/sip.go index b2420605..a1283f9d 100644 --- a/pkg/service/sip.go +++ b/pkg/service/sip.go @@ -21,6 +21,7 @@ import ( "github.com/dennwc/iters" "github.com/twitchtv/twirp" + "google.golang.org/protobuf/types/known/durationpb" "google.golang.org/protobuf/types/known/emptypb" "github.com/livekit/protocol/livekit" @@ -716,6 +717,11 @@ func (s *SIPService) TransferSIPParticipant(ctx context.Context, req *livekit.Tr ctx, cancel = context.WithTimeout(ctx, timeout) defer cancel() } + + // Send the resolved timeout so the SIP node uses our deadline, not its + // own default (which could outlive us). + ireq.RingingTimeout = durationpb.New(timeout) + _, err = s.psrpcClient.TransferSIPParticipant(ctx, ireq.SipCallId, ireq, psrpc.WithRequestTimeout(timeout)) if err != nil { log.Errorw("cannot transfer sip participant", err)