diff --git a/pkg/service/ioservice_sip.go b/pkg/service/ioservice_sip.go index 076bff512..ba2286d8d 100644 --- a/pkg/service/ioservice_sip.go +++ b/pkg/service/ioservice_sip.go @@ -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,