Assigning a priority to TURN server list passed to PeerConnection. First entry in the TURN server list will get the highest priotity and so forth.
This priority will be used in calculating the candidate priority generated from the server. This will allow candidate generated from server to have unique priority. BUG=3223 R=jiayl@webrtc.org, juberti@webrtc.org, pthatcher@webrtc.org Review URL: https://webrtc-codereview.appspot.com/16549004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6721 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -1026,7 +1026,7 @@ void AllocationSequence::CreateTurnPort(const RelayServerConfig& config) {
|
||||
session_->socket_factory(),
|
||||
network_, udp_socket_.get(),
|
||||
session_->username(), session_->password(),
|
||||
*relay_port, config.credentials);
|
||||
*relay_port, config.credentials, config.priority);
|
||||
// If we are using shared socket for TURN and udp ports, we need to
|
||||
// find a way to demux the packets to the correct port when received.
|
||||
// Mapping against server_address is one way of doing this. When packet
|
||||
@@ -1051,7 +1051,7 @@ void AllocationSequence::CreateTurnPort(const RelayServerConfig& config) {
|
||||
session_->allocator()->max_port(),
|
||||
session_->username(),
|
||||
session_->password(),
|
||||
*relay_port, config.credentials);
|
||||
*relay_port, config.credentials, config.priority);
|
||||
}
|
||||
ASSERT(port != NULL);
|
||||
session_->AddAllocatedPort(port, this, true);
|
||||
|
Reference in New Issue
Block a user