Support passing SIP headers. (#2993)

This commit is contained in:
Denys Smirnov
2024-09-13 11:06:38 +03:00
committed by GitHub
parent 1b5bb4dddc
commit 0e68404f2c
8 changed files with 54 additions and 31 deletions
+1 -5
View File
@@ -105,7 +105,7 @@ func (s *RedisStore) LoadSIPOutboundTrunk(ctx context.Context, id string) (*live
return nil, ErrSIPTrunkNotFound
}
func (s *RedisStore) deleteSIPTrunk(ctx context.Context, id string) error {
func (s *RedisStore) DeleteSIPTrunk(ctx context.Context, id string) error {
tx := s.rc.TxPipeline()
tx.HDel(s.ctx, SIPTrunkKey, id)
tx.HDel(s.ctx, SIPInboundTrunkKey, id)
@@ -114,10 +114,6 @@ func (s *RedisStore) deleteSIPTrunk(ctx context.Context, id string) error {
return err
}
func (s *RedisStore) DeleteSIPTrunk(ctx context.Context, info *livekit.SIPTrunkInfo) error {
return s.deleteSIPTrunk(ctx, info.SipTrunkId)
}
func (s *RedisStore) listSIPLegacyTrunk(ctx context.Context) ([]*livekit.SIPTrunkInfo, error) {
return redisLoadMany[livekit.SIPTrunkInfo](ctx, s, SIPTrunkKey)
}