ECSS-10, версия 3.14.15 Описание интерфейсов управления Программные интерфейсы API по работе с Call-центром HTTP API Команды HTTP API Current: call_unattended_transfer.xsd call_unattended_transfer.xsd Команда для несопровождаемого трансфера указанного разговора.Метод HTTP-запроса:POSTШаблон HTTP-запроса:http://host:port/<DOMAIN>/service/cc/arm/call_unattended_transferКоды ответов:200403 — Ошибки передаются в теле ответаОшибки, передаваемые в теле ответа:cannot_perform_cmdXSD-схема XML-запроса/ответа: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="error.xsd"/> <!-- responseType --> <xs:complexType name="CallUnattendedTransfer"> <!--Если не указывать Id оператора, то будет использован идентификатор оператора запросившего трансфер--> <xs:attribute name="operator_id" type="xs:string" use="optional"/> <xs:attribute name="original_conversation_id" type="xs:string" use="required"/> <xs:attribute name="to_number" type="xs:string" use="required"/> <!--Можно опционально указывать идентификатор активного разговора вместо номера В этом случае трансфер будет сделан на номер участника этого разговора --> <xs:attribute name="destination_conversation_id" type="xs:string" use="required"/> <xs:attribute name="workitem_id" 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="call_unattended_transfer" type="CallUnattendedTransfer"/> </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 Пример использует технологию websocket Пример:Запрос: 0100000002180013call_unattended_transfer [ { "_name": "in", "_content": [ { "_name": "request", "_content": [ { "_name": "call_unattended_transfer", "_attributes": { "conversation_id": "0647e2cf80d0cc01", "to_number": "104" } } ] } ] } ] PY Код ответа:200Ответ: 0100000002310013200 [ { "_name": "out", "_attributes": { "xmlns:xs": "http://www.w3.org/2001/XMLSchema-instance", "xs:noNamespaceSchemaLocation": "call_unattended_transfer.xsd" }, "_content": [ { "_name": "response", "_content": [ { "_name": "ok" } ] } ] } ] PY ×