diff options
author | Jakub Adam <jakub.adam@ktknet.cz> | 2010-10-01 08:18:18 +0200 |
---|---|---|
committer | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2010-10-01 17:00:00 -0400 |
commit | dc8badef5d5d91a97b7f07d0e30472b4f38105a2 (patch) | |
tree | 5396d21ca9bcc309cfc9592dac32be985bd87569 /stun/usages/turn.c | |
parent | 9cf4e79cb9086e13dc52b5687f0a7eea713be2a3 (diff) | |
download | libnice-dc8badef5d5d91a97b7f07d0e30472b4f38105a2.tar.gz |
MS-TURN support for Microsoft Office Communicator
Diffstat (limited to 'stun/usages/turn.c')
-rw-r--r-- | stun/usages/turn.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/stun/usages/turn.c b/stun/usages/turn.c index 64dc604..b691fbe 100644 --- a/stun/usages/turn.c +++ b/stun/usages/turn.c @@ -94,6 +94,10 @@ size_t stun_usage_turn_create (StunAgent *agent, StunMessage *msg, return 0; } + if (compatibility == STUN_USAGE_TURN_COMPATIBILITY_OC2007) { + stun_message_append32(msg, STUN_ATTRIBUTE_MS_VERSION, 1); + } + if (lifetime >= 0) { if (stun_message_append32 (msg, STUN_ATTRIBUTE_LIFETIME, lifetime) != STUN_MESSAGE_RETURN_SUCCESS) @@ -284,7 +288,8 @@ StunUsageTurnReturn stun_usage_turn_process (StunMessage *msg, stun_debug (" No MAPPED-ADDRESS: %d\n", val); return STUN_USAGE_TURN_RETURN_ERROR; } - } else if (compatibility == STUN_USAGE_TURN_COMPATIBILITY_MSN) { + } else if (compatibility == STUN_USAGE_TURN_COMPATIBILITY_MSN || + compatibility == STUN_USAGE_TURN_COMPATIBILITY_OC2007) { val = stun_message_find_addr (msg, STUN_ATTRIBUTE_MSN_MAPPED_ADDRESS, addr, addrlen); |