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

Команда просмотра истории вызовов супервизора.

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

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

    <!-- responseType -->
    <xs:complexType name="CallHistory">
        <xs:all>
            <xs:element name="url_list" type="UrlList" minOccurs="0" maxOccurs="1"/>
            <xs:element name="ss_list" type="SSList" minOccurs="0" maxOccurs="1"/>
            <xs:element name="success_faxes" type="UrlList" minOccurs="0" maxOccurs="1"/>
            <xs:element name="failed_faxes" type="UrlList" minOccurs="0" maxOccurs="1"/>
        </xs:all>
        <xs:attribute name="call_ref" type="xs:string" use="required"/>
        <xs:attribute name="digits_a" type="xs:string" use="required"/>
        <xs:attribute name="digits_b" type="xs:string" use="required"/>
        <xs:attribute name="display_name_a" type="xs:string" use="optional"/>
        <xs:attribute name="display_name_b" type="xs:string" use="optional"/>
        <xs:attribute name="agent_a_id" type="xs:string" use="optional"/>
        <xs:attribute name="agent_b_id" type="xs:string" use="optional"/>
        <xs:attribute name="start_time" type="xs:string" use="required"/>  <!-- дата и время -->
        <xs:attribute name="answer_time" type="xs:string" use="optional"/>  <!-- дата и время -->
        <xs:attribute name="distribution_time" type="xs:string" use="optional"/>  <!-- дата и время -->
        <xs:attribute name="release_time" type="xs:string" use="required"/>  <!-- дата и время -->
        <xs:attribute name="agent_answer_time" type="xs:string" use="optional"/>  <!-- дата и время -->
        <xs:attribute name="release_reason" type="xs:string" use="required"/>
        <xs:attribute name="duration" type="xs:nonNegativeInteger" use="required"/>  <!-- время в секундах -->
        <xs:attribute name="total_duration" type="xs:nonNegativeInteger" use="required"/> <!-- длительность в секундах -->
        <xs:attribute name="waiting_duration" type="xs:nonNegativeInteger" use="required"/> <!-- длительность в секундах -->
        <xs:attribute name="talk_duration" type="xs:nonNegativeInteger" use="required"/> <!-- длительность в секундах -->
        <xs:attribute name="queue_id" type="xs:string" use="optional"/>
        <xs:attribute name="call_record_a" type="xs:string" use="optional"/>
        <xs:attribute name="call_record_b" type="xs:string" use="optional"/>
        <xs:attribute name="original_participant_a" type="xs:string" use="optional"/>
        <xs:attribute name="original_participant_b" type="xs:string" use="optional"/>
    </xs:complexType>

    <xs:simpleType name="Mode">
        <xs:restriction base="xs:string">
            <xs:enumeration value="queues"/>
            <xs:enumeration value="agents"/>
        </xs:restriction>
    </xs:simpleType>

    <!-- responseType -->
    <xs:complexType name="CallHistoryList">
        <xs:sequence>
            <xs:element name="call_history" type="CallHistory" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:attribute name="tag" type="xs:string" use="optional"/> <!-- тэг, который может быть использован в дальнейшем для постраничного вывода -->
        <xs:attribute name="mode" type="Mode" use="optional"/> <!-- по умолчанию режим - queues - очереди -->
    </xs:complexType>

    <xs:complexType name="Filters">
        <xs:attribute name="limit" type="xs:integer" use="required"/>
        <xs:attribute name="from_date" type="xs:string" use="optional"/>
        <xs:attribute name="to_date" type="xs:string" use="optional"/>
        <xs:attribute name="number" type="xs:string" use="optional"/>
        <xs:attribute name="from_number" type="xs:string" use="optional"/>
        <xs:attribute name="to_number" type="xs:string" use="optional"/>
        <xs:attribute name="cc_agent_queue" type="xs:string" use="optional"/>
        <xs:attribute name="cc_agent_group" type="xs:string" use="optional"/>
        <xs:attribute name="cc_agent_a_group" type="xs:string" use="optional"/>
        <xs:attribute name="cc_agent_b_group" type="xs:string" use="optional"/>
        <xs:attribute name="cc_agent_id" type="xs:string" use="optional"/>
        <xs:attribute name="cc_agent_a_id" type="xs:string" use="optional"/>
        <xs:attribute name="cc_agent_b_id" type="xs:string" use="optional"/>
        <xs:attribute name="cc_queue_id" type="xs:string" use="optional"/>
        <xs:attribute name="display_name" type="xs:string" use="optional"/>
        <xs:attribute name="display_name_a" type="xs:string" use="optional"/>
        <xs:attribute name="display_name_b" type="xs:string" use="optional"/>
        <xs:attribute name="skip_incomplete" type="xs:boolean" use="optional"/>
        <xs:attribute name="skip_acd" type="xs:boolean" use="optional"/> <!-- По умолчанию true -->
        <xs:attribute name="call_ref" type="xs:string" use="optional"/>
        <xs:attribute name="tag" type="xs:string" use="optional"/> <!-- Тэг возвращенный при предыдущем запросе. Используется для постраничного вывода -->
    </xs:complexType>

    <!-- in -->
    <xs:element name="in">
        <xs:complexType>
            <xs:all>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="filters" type="Filters"/>
                        </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="history" type="CallHistoryList"/>
                        </xs:sequence>
                        <xs:attribute name="timestamp" type="xs:string"/> <!--Response timestamp -->
                    </xs:complexType>
                </xs:element>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>

Ответ:

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

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

  • cannot_perform_cmd
  • Нет меток
Написать комментарий...