Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

Команда подключения указанного оператора к разговору в режиме консультирования.

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xs:include schemaLocation="error.xsd"/>

    <!-- agentStatusType -->
    <xs:simpleType name="Mode">
        <xs:restriction base="xs:string">
            <xs:enumeration value="consult"/>
            <xs:enumeration value="conference"/>
        </xs:restriction>
    </xs:simpleType>

    <!-- responseType -->
    <xs:complexType name="CallConsult">
        <!--Если не указывать Id оператора, то будет использован идентификатор оператора
            запросившего конференцию-->
        <xs:attribute name="operator_id" type="xs:string" use="optional"/>
        <xs:attribute name="conversation_id" type="xs:string" use="required"/>
        <xs:attribute name="to_number" type="xs:string" use="required"/>
    </xs:complexType>

    <!-- in -->
    <xs:element name="in">
        <xs:complexType>
            <xs:all>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="call_consult" type="CallConsult"/>
                        </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>

Ответы:

200
403 - Ошибки передаются в теле ответа

Ошибки, передаваемые в теле ответа:

  • cannot_perform_cmd
  • Нет меток