sipsorcery
sipsorcery copied to clipboard
How to know which STUN.TURN server is used in PeerConnection
We are providing a list of STUN and TURN servers url. Now we want to know which one is used in a PeerConnection.
In case of relay server.
You can subscribe to the onicecandidate event and get the DestinationEndPoint.
pc.onicecandidate += (ice) =>
{
if(ice.type == RTCIceCandidateType.relay)
_relayServer = ice.DestinationEndPoint;
}
Is this solved?