Partager via


2.2.4.4 mediaRelayType

The schema definition for the mediaRelayType data type is as follows:

 <xs:complexType name="mediaRelayType">
    <xs:sequence>
       <xs:element name="location" type="tns:locationType"/>
       <xs:choice>
         <xs:element name="hostName" type="tns:hostNameType"/>
         <xs:element name="directIPAddress" type="tns:max64CharStringType"/>
        </xs:choice>
       <xs:element name="udpPort" type="xs:unsignedShort" minOccurs="0"/>
       <xs:element name="tcpPort" type="xs:unsignedShort" minOccurs="0"/>
    </xs:sequence>
 </xs:complexType>  

The mediaRelayType data type is a complex data type that specifies the details of the TURN server.

Element

Description

location

Type locationType, as defined in section 2.2.4.2. The location of the TURN server whose IPAddress and Port information are returned to the client.

hostName

Type hostNameType, as defined in section 2.2.4.6. The FQDN or the IP address of the TURN server. Either this element or the directIPAddress element in the mediaRelayType is present.

directIPAddress

Type max64CharStringType, as defined in section 2.2.4.8. The IPAddress of the TURN server.

udpPort

Type unsignedShort, as specified in [XMLSCHEMA2/2] section 3.3.23. The UDP port on which the TURN server is listening.

tcpPort

Type unsignedShort, as specified in [XMLSCHEMA2/2] section 3.3.23. The TCP port on which the TURN server is listening.