Commit 696c98b2 authored by Youness Alaoui's avatar Youness Alaoui
Browse files

gtalk relay candidate must use the turn server's username, not a random one

parent bd0a4742
......@@ -458,7 +458,14 @@ discovery_add_relay_candidate (
candidate->sockptr = relay_socket;
candidate->base_addr = base_socket->addr;
priv_generate_msn_credentials (agent, candidate);
priv_generate_candidate_credentials (agent, candidate);
/* Google uses the turn username as the candidate username */
if (agent->compatibility == NICE_COMPATIBILITY_GOOGLE) {
g_free (candidate->username);
candidate->username = g_strdup (component->turn_username);
}
priv_assign_foundation (agent, candidate);
result = priv_add_local_candidate_pruned (component, candidate);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment