Fix SIP updates when replacing slices. (#3592)

This commit is contained in:
Denys Smirnov authored and GitHub committed 2025-04-08 17:39:16 +03:00
1 parent e24fe77bc7
commit ec2dff96a3
3 files changed
+9 -6

No files matched your search

+6 -3
View File
@@ -198,7 +198,8 @@ func (s *SIPService) UpdateSIPInboundTrunk(ctx context.Context, req *livekit.Upd
default:
return nil, errors.New("missing or unsupported action")
case livekit.UpdateSIPInboundTrunkRequestAction:
if err = a.Apply(info); err != nil {
info, err = a.Apply(info)
if err != nil {
return nil, err
}
}
@@ -248,7 +249,8 @@ func (s *SIPService) UpdateSIPOutboundTrunk(ctx context.Context, req *livekit.Up
default:
return nil, errors.New("missing or unsupported action")
case livekit.UpdateSIPOutboundTrunkRequestAction:
if err = a.Apply(info); err != nil {
info, err = a.Apply(info)
if err != nil {
return nil, err
}
}
@@ -464,7 +466,8 @@ func (s *SIPService) UpdateSIPDispatchRule(ctx context.Context, req *livekit.Upd
default:
return nil, errors.New("missing or unsupported action")
case livekit.UpdateSIPDispatchRuleRequestAction:
if err = a.Apply(info); err != nil {
info, err = a.Apply(info)
if err != nil {
return nil, err
}
}