Hc_core_messages_clean

Команда для восстановления настроек сообщений.

Аналог команды в Cocon:

domain/<DOMAIN>/core/<core>/messages/clean

Шаблон URL-запроса:

http://host:port/commands/core_messages_clean

Коды ответа

200 - успех;
404 - ошибка.

XSD-схема XML-файла запроса/ответа:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Clean Core domain properties (text messages auto-informers).
            Copyright (c) 2015, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>
    <xs:include schemaLocation="error.xsd"/>
    <xs:include schemaLocation="ecm_common.xsd"/>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainCleanOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainCleanInType"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType"/>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>
XML

Пример:

Запрос: 

http://192.168.1.21:9999/commands/core_messages_clean

<in
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_messages_clean.xsd">
    <request>
        <domain_options>
            <system />
            <domain name="biysk.local">
                <option name="ss_activate_error"/>
            </domain>
        </domain_options>
    </request>
</in>
XML

Ответ: 200

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_messages_clean.xsd">
    <result>
        <domain_options>
            <system/>
            <domain name="biysk.local">
                <success option="ss_activate_error"/>
            </domain>
        </domain_options>
    </result>
</out>
XML

Hc_core_messages_info

Команда предназначена для просмотра параметров сообщений

Аналог команды в Cocon:

domain/<DOMAIN>/core/<core>/messages/info

Шаблон URL-запроса:

http://host:port/commands/core_messages_info

Коды ответа

200 - успех;
404 - ошибка.

XSD-схема XML-файла запроса/ответа:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Show Core domain properties (text messages auto-informers).

            The list of the messages settings splitted by semicolon.
            language - message language;
            text - message text.

            Sample:
            error=language:ru,text:Активирован;
            error=language:en,text:Activated

            Copyright (c) 2018, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>

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

    <xs:complexType name="coreMessagesOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="error" type="xs:string" use="optional" />
                <xs:attribute name="ss_activated" type="xs:string" use="optional" />
                <xs:attribute name="ss_changed" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivated" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivated_all" type="xs:string" use="optional" />
                <xs:attribute name="ss_activate_error" type="xs:string" use="optional" />
                <xs:attribute name="ss_already_activated" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivate_error" type="xs:string" use="optional" />
                <xs:attribute name="ss_test_error" type="xs:string" use="optional" />
                <xs:attribute name="pin_incorrect" type="xs:string" use="optional" />
                <xs:attribute name="alarm_on" type="xs:string" use="optional" />
                <xs:attribute name="call_forwarding" type="xs:string" use="optional" />
                <xs:attribute name="wait_time" type="xs:string" use="optional" />
                <xs:attribute name="my_number" type="xs:string" use="optional" />
                <xs:attribute name="ivr_block_fax_subject" type="xs:string" use="optional" />
                <xs:attribute name="ivr_block_fax_body" type="xs:string" use="optional" />
                <xs:attribute name="ivr_block_fax_error_subject" type="xs:string" use="optional" />
                <xs:attribute name="ivr_block_fax_error_body" type="xs:string" use="optional" />
                <xs:attribute name="cc_queue_lost_call_subject" type="xs:string" use="optional" />
                <xs:attribute name="cc_queue_lost_call_body" type="xs:string" use="optional" />
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainInfoOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainInfoInType" minOccurs="1"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType"/>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>

XML

Пример:

Запрос: 

http://192.168.1.21:9999/commands/core_messages_info

<?xml version="1.0" encoding="UTF-8"?>
<in
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_messages_info.xsd">
    <request>
        <domain_options domain="biysk.local"/>
    </request>
</in>

XML

Ответ: 200

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_messages_info.xsd">
    <result>
        <domain_options>
            <system>
                <options xs:type="coreMessagesOptionsType"/>
            </system>
            <domain name="biysk.local">
                <options xs:type="coreMessagesOptionsType" wait_time="language:default,text:Ожидание;language:ru,text:Ожидание;language:en,text:Waiting" ss_test_error="language:default,text:Ошибка тестирования;language:ru,text:Ошибка тестирования;language:en,text:Test error" ss_deactivated_all="language:default,text:Деактивирoван;language:ru,text:Деактивирoван;language:en,text:Deactivated" ss_deactivated="language:default,text:Деактивирoван;language:ru,text:Деактивирoван;language:en,text:Deactivated" ss_deactivate_error="language:default,text:Ошибка деактивации;language:ru,text:Ошибка деактивации;language:en,text:Deactivate error" ss_changed="language:default,text:Изменен;language:ru,text:Изменен;language:en,text:Changed" ss_already_activated="language:default,text:Услуга уже активирована;language:ru,text:Услуга уже активирована;language:en,text:Already activated" ss_activated="language:default,text:Активирован;language:ru,text:Активирован;language:en,text:Activated" ss_activate_error="language:default,text:Ошибка активации;language:ru,text:Ошибка активации;language:en,text:Activate error" pin_incorrect="language:default,text:Неверный PIN;language:ru,text:Неверный PIN;language:en,text:PIN incorrect" my_number="language:default,text:Мой номер {};language:ru,text:Мой номер {};language:en,text:Current number {}" ivr_block_fax_subject="language:default,text:Факс от {}({});language:ru,text:Факс от {}({});language:en,text:Fax from {}({})" ivr_block_fax_error_subject="language:default,text:Не удалось принять факс от {}({});language:ru,text:Не удалось принять факс от {}({});language:en,text:Cannot receive fax from {}({})" ivr_block_fax_error_body="language:default,text:Время: {} Отправитель: {}({}) Получатель: {}({});language:ru,text:Время: {} Отправитель: {}({}) Получатель: {}({});language:en,text:Time: {} Sender: {}({}) Receiver: {}({})" ivr_block_fax_body="language:default,text:Получено: {} Отправитель: {}({}) Получатель: {}({});language:ru,text:Получено: {} Отправитель: {}({}) Получатель: {}({});language:en,text:Received: {} Sender: {}({}) Receiver: {}({})" error="language:default,text:Ошибка;language:ru,text:Ошибка;language:en,text:Error" cc_queue_lost_call_subject="language:default,text:Пропущенный вызов от абонента;language:ru,text:Пропущенный вызов от абонента;language:en,text:Call missed" cc_queue_lost_call_body="language:default,text:Абонент: {} Время звонка: {} Время ожидания: {} сек. Количество попыток распределения: {} Операторы не ответившие на вызов:;language:ru,text:Абонент: {} Время звонка: {} Время ожидания: {} сек. Количество попыток распределения: {} Операторы не ответившие на вызов:;language:en,text:Subscriber: {} Add time: {} Waiting time: {} sec. Distributions count: {} Operators who have missed a call:" call_forwarding="language:default,text:Переадресация на;language:ru,text:Переадресация на;language:en,text:Call forwarding on" alarm_on="language:default,text:Будильник установлен;language:ru,text:Будильник установлен;language:en,text:Alarm on"/>
            </domain>
        </domain_options>
    </result>
</out>
XML

Hc_core_messages_set

Команда предназначена для установки параметров  сообщений

Аналог команды в Cocon:

domain/<DOMAIN>/core/<core>/messages/set

Шаблон URL-запроса:

http://host:port/commands/core_messages_set

Коды ответа

200 - успех;
404 - ошибка.

XSD-схема XML-файла запроса/ответа:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Change Core domain properties (auto-informers).
            
            The list of the messages settings splitted by semicolon.
            language - message language;
            text - message text.

            Sample:  
            language:ru,text:Активирован;
            language:en,text:Activated

            Copyright (c) 2018, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>

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

    <xs:complexType name="coreMessagesOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="error" type="xs:string" use="optional" />
                <xs:attribute name="ss_activated" type="xs:string" use="optional" />
                <xs:attribute name="ss_changed" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivated" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivated_all" type="xs:string" use="optional" />
                <xs:attribute name="ss_activate_error" type="xs:string" use="optional" />
                <xs:attribute name="ss_already_activated" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivate_error" type="xs:string" use="optional" />
                <xs:attribute name="ss_test_error" type="xs:string" use="optional" />
                <xs:attribute name="pin_incorrect" type="xs:string" use="optional" />
                <xs:attribute name="alarm_on" type="xs:string" use="optional" />
                <xs:attribute name="call_forwarding" type="xs:string" use="optional" />
                <xs:attribute name="wait_time" type="xs:string" use="optional" />
                <xs:attribute name="my_number" type="xs:string" use="optional" />
                <xs:attribute name="ivr_block_fax_subject" type="xs:string" use="optional" />
                <xs:attribute name="ivr_block_fax_body" type="xs:string" use="optional" />
                <xs:attribute name="ivr_block_fax_error_subject" type="xs:string" use="optional" />
                <xs:attribute name="ivr_block_fax_error_body" type="xs:string" use="optional" />
                <xs:attribute name="cc_queue_lost_call_subject" type="xs:string" use="optional" />
                <xs:attribute name="cc_queue_lost_call_body" type="xs:string" use="optional" />
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainSetOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainSetInType"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType" minOccurs="1" maxOccurs="1"/>
                <xs:element name="error" type="errorType" minOccurs="1" maxOccurs="1"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>
XML

Пример:

Запрос:

http://192.168.1.21:9999/commands/core_messages_set

<in
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_messages_set.xsd">
    <request>
        <domain_options>
            <system>
                <options xs:type="coreMessagesOptionsType"/>
            </system>
            <domain name="biysk.local">
                <options xs:type="coreMessagesOptionsType" ss_activate_error="language:default,text:Ошибка активации;language:ru,text:Ошибка активации;language:en,text:Activate error"/>
            </domain>
        </domain_options>
    </request>
</in>
XML

Ответ: 200

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_messages_set.xsd">
    <result>
        <domain_options>
            <system/>
            <domain name="biysk.local">
                <success option="ss_activate_error"/>
            </domain>
        </domain_options>
    </result>
</out>
XML