summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--udp/udp-turn.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/udp/udp-turn.c b/udp/udp-turn.c
index 70cc215..ca9cf3b 100644
--- a/udp/udp-turn.c
+++ b/udp/udp-turn.c
@@ -492,11 +492,16 @@ nice_udp_turn_create_socket_full (
STUN_COMPATIBILITY_3489BIS,
long_term ? STUN_AGENT_USAGE_LONG_TERM_CREDENTIALS :
STUN_AGENT_USAGE_SHORT_TERM_CREDENTIALS);
- } else {
+ } else if (compatibility == NICE_UDP_TURN_SOCKET_COMPATIBILITY_MSN) {
stun_agent_init (&priv->agent, STUN_ALL_KNOWN_ATTRIBUTES,
STUN_COMPATIBILITY_RFC3489,
- long_term ? STUN_AGENT_USAGE_LONG_TERM_CREDENTIALS :
- STUN_AGENT_USAGE_SHORT_TERM_CREDENTIALS);
+ STUN_AGENT_USAGE_SHORT_TERM_CREDENTIALS |
+ STUN_AGENT_USAGE_NO_INDICATION_AUTH);
+ } else if (compatibility == NICE_UDP_TURN_SOCKET_COMPATIBILITY_GOOGLE) {
+ stun_agent_init (&priv->agent, STUN_ALL_KNOWN_ATTRIBUTES,
+ STUN_COMPATIBILITY_RFC3489,
+ STUN_AGENT_USAGE_SHORT_TERM_CREDENTIALS |
+ STUN_AGENT_USAGE_IGNORE_CREDENTIALS);
}
priv->channels = NULL;