Adding ProviderInfo to GetSIPTrunkAuthenticationResponse (#3993)

This commit is contained in:
Nishad
2025-10-12 15:40:32 +05:30
committed by GitHub
parent a8d4df66f4
commit 100bb46af3
3 changed files with 15 additions and 6 deletions
+12 -3
View File
@@ -149,9 +149,18 @@ 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,
SipTrunkId: trunk.SipTrunkId,
Username: trunk.AuthUsername,
Password: trunk.AuthPassword,
ProviderInfo: providerInfo,
}, nil
}