mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 19:43:01 +00:00
SIP: Properly handle nil trunk. (#2291)
This commit is contained in:
1 parent
02c28a5946
commit
1240c1670b
1 file changed
+3
@@ -61,6 +61,9 @@ func (s *IOInfoService) GetSIPTrunkAuthentication(ctx context.Context, req *rpc.
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if trunk == nil {
|
||||
return &rpc.GetSIPTrunkAuthenticationResponse{}, nil
|
||||
}
|
||||
return &rpc.GetSIPTrunkAuthenticationResponse{
|
||||
Username: trunk.InboundUsername,
|
||||
Password: trunk.InboundPassword,
|
||||
|
||||
Reference in new issue
Block a user