2.2.2.6 Lifetime
The Lifetime attribute is specified in [IETFDRAFT-TURN-08] section 9.2.1.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Attribute Type |
Attribute Length |
||||||||||||||||||||||||||||||
Lifetime |
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 "0x000D".
Attribute Length (2 bytes): This field contains the length, in bytes, of the Lifetime field. Set to "0x0004" (4).
Lifetime (4 bytes): Number of seconds the TURN server maintains an allocated address in the absence of data traffic from the protocol client to the TURN server. If the value is zero in a subsequent Allocate request message, the TURN session associated with this protocol client MUST be torn down.