Update protocol to support SIP media config. (#4509)

This commit is contained in:
Denys Smirnov
2026-05-06 18:18:21 +02:00
committed by GitHub
parent 1ab1e072d1
commit 8ffcef93b2
6 changed files with 9 additions and 6 deletions
+1
View File
@@ -123,6 +123,7 @@ func (s *IOInfoService) EvaluateSIPDispatchRules(ctx context.Context, req *rpc.E
if err != nil {
return nil, err
}
resp.Upgrade()
resp.SipTrunkId = trunkID
return resp, err
}
+2
View File
@@ -421,6 +421,7 @@ func (s *SIPService) CreateSIPDispatchRule(ctx context.Context, req *livekit.Cre
if s.store == nil {
return nil, ErrSIPNotConnected
}
req.DispatchRule.Upgrade()
if err := req.Validate(); err != nil {
return nil, twirp.WrapError(twirp.NewError(twirp.InvalidArgument, err.Error()), err)
}
@@ -629,6 +630,7 @@ func (s *SIPService) CreateSIPParticipantRequest(ctx context.Context, req *livek
if s.store == nil {
return nil, ErrSIPNotConnected
}
req.Upgrade()
if err := req.Validate(); err != nil {
return nil, twirp.WrapError(twirp.NewError(twirp.InvalidArgument, err.Error()), err)
}