Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This section follows the product behavior as described in product behavior note <10>.
The Alternate Server attribute is specified in [IETFDRAFT-TURN-08] section 9.2.2. The alternate TURN server is used in two error response messages:
An error response with an error code of 401 Unauthorized. In this case, the value of the Alternate Server attribute SHOULD be the public transport address of the TURN server from which the response originated. If the transport is UDP, the protocol client MUST use the transport address from the Alternate Server attribute as the destination for the next Allocate request message.
An error response with an error code of 300 Try Alternate, which occurs when the TURN server does not have resources to satisfy an Allocate request. In this case the value of the Alternate Server attribute is another TURN server that had available resources for the Allocate request.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Attribute Type |
Attribute Length |
||||||||||||||||||||||||||||||
Reserved |
Family |
Port |
|||||||||||||||||||||||||||||
IP Address |
Attribute Type (2 bytes): The TURN attributes are specified in [IETFDRAFT-STUN-02] section 10.2 and [IETFDRAFT-TURN-08] section 9.2. Set to "0x000E".
Attribute Length (2 bytes): This field contains the length, in bytes, of the following fields. Set to "0x0008" (8) for an IPv4 address or "0x0014" (20) for an IPv6 address.
Reserved (1 byte): The first 8 bits are used for alignment purposes and are ignored.
Family (1 byte): The address family of the Address. It MUST have the value "0x01" for an IPv4 address or "0x02" for an IPv6 address.
Port (2 bytes): A network-byte-ordered representation of the TURN server port.
IP Address (4 bytes or 16 bytes): The IPv4 or IPv6 address of the TURN server.
If the address is IPv4 (Family is set to "0x01") this is the network byte ordered 32-bit (4 byte) IPv4 address.
If the address is IPv6 (Family is set to "0x02") this is the network byte ordered 128-bit (16 byte) IPv6 address.