Support SIP auth realm for inbound. (#4522)

This commit is contained in:
Denys Smirnov
2026-05-14 10:45:16 +02:00
committed by GitHub
parent 4b8db3cfe5
commit 8b79ec9e47
3 changed files with 4 additions and 15 deletions
+1 -14
View File
@@ -150,18 +150,5 @@ func (s *IOInfoService) GetSIPTrunkAuthentication(ctx context.Context, req *rpc.
return &rpc.GetSIPTrunkAuthenticationResponse{}, nil
}
log.Debugw("SIP trunk matched for auth", "sipTrunk", trunk.SipTrunkId)
// Create provider info for the trunk
providerInfo := &livekit.ProviderInfo{
Id: trunk.SipTrunkId,
Name: trunk.Name,
Type: livekit.ProviderType_PROVIDER_TYPE_EXTERNAL, // External trunk
}
return &rpc.GetSIPTrunkAuthenticationResponse{
SipTrunkId: trunk.SipTrunkId,
Username: trunk.AuthUsername,
Password: trunk.AuthPassword,
ProviderInfo: providerInfo,
}, nil
return sip.InboundTrunkAuthPrompt(trunk)
}