Команда подключения к разговору в режиме супервизинга.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="error.xsd"/>
<xs:simpleType name="SupervisingType">
<xs:restriction base="xs:string">
<xs:enumeration value="conference"/>
<xs:enumeration value="consult"/>
<xs:enumeration value="observing"/>
</xs:restriction>
</xs:simpleType>
<!-- responseType -->
<xs:complexType name="Supervise">
<xs:attribute name="conversation_id" type="xs:string" use="required"/>
<xs:attribute name="conversation_ref" type="xs:string" use="required"/>
<xs:attribute name="mode" type="SupervisingType" use="required"/>
</xs:complexType>
<!-- in -->
<xs:element name="in">
<xs:complexType>
<xs:all>
<xs:element name="request">
<xs:complexType>
<xs:sequence>
<xs:element name="supervise" type="Supervise"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
<!-- out -->
<xs:element name="out">
<xs:complexType>
<xs:choice>
<xs:element name="response">
<xs:complexType>
<xs:sequence>
<xs:element name="ok"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="error" type="errorType"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
XML
Ответ:
200