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

Hс_domain_limits_clean

Команда возвращает указанные ограничения, заданные на определенном домене (команда доступна только для администратора ECSS-10), в значения по умолчанию. В текущей версии доступны следующие ограничения:

  • alias_limit - максимальное количество абонентов в домене;
  • call_limit - максимальное количество одновременных вызовов в домене;
  • callcenter_enabled - в домене включена поддержка call-центра;
  • callcenter_active_agents - максимальное количество авторизованных агентов call-центра;
  • teleconference_enabled - в домене включена поддержка селекторной связи;
  • ivr_enabled - в домене включена поддержка ivr;
  • failover - для данного домена включена поддержка резервирования вызовов;
  • difitmap - cписок масок набора, по которому будет валидироваться алиасы при создании. Формат описания параметра см. в разделе Общие команды управления доменами. Параметр доступен начиная с версии ПО 3.10.1.

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

domain/<DOMAIN>/properties/restrictions/clean

Метод HTTP-запроса:

POST

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

http://host:port/commands/domain_limits_clean

Код HTTP-ответа:

  • 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">
            Clean domain limits.
            Usage: http://server:9999/commands/domain_limits_clean.
            Implementation: hc_domain_limits_clean.erl.
            Git: git@git.eltex.loc:httpTerminal.git.
            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>

Пример 1

Запрос: http://192.168.1.21:9999/commands/domain_limits_clean

<in
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="domain_limits_clean.xsd">
    <request>
        <domain_options>
            <system>
                <option name="failover" />
            </system>
            <domain name="ct.office">
                <option name="failover" />
            </domain>
        </domain_options>
    </request>
</in>

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="domain_limits_clean.xsd">
    <result>
        <domain_options>
            <system/>
            <domain name="ct.office">
                <success option="failover"/>
            </domain>
        </domain_options>
    </result>
</out>

Hс_domain_limits_info

Команда для просмотра ограничений, заданных на определенном домене. В текущей версии доступны следующие ограничения:

  • alias_limit - максимальное количество абонентов в домене;
  • call_limit - максимальное количество одновременных вызовов в домене;
  • callcenter_enabled - в домене включена поддержка call-центра;
  • callcenter_active_agents - максимальное количество авторизованных агентов call-центра;
  • teleconference_enabled - в домене включена поддержка селекторной связи;
  • teleconference_active_channels - максимальное количество участников всех конференций сервиса селекторной связи в данном домене;
  • ivr_enabled - в домене включена поддержка ivr;
  • failover - для данного домена включена поддержка резервирования вызовов.

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

domain/<DOMAIN>/properties/restrictions/info

Метод HTTP-запроса:

POST

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

http://host:port/commands/domain_limits_info

Код HTTP-ответа:

  • 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 domain limits.
            Usage: http://server:9999/commands/domain_limits_info.
            Implementation: hc_domain_limits_info.erl.
            Git: git@git.eltex.loc:httpTerminal.git.
            Copyright (c) 2016, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>
    <xs:include schemaLocation="error.xsd"/>
    <xs:include schemaLocation="ecm_common.xsd"/>
    <!-- callType -->
    <xs:simpleType name="callType">
        <xs:restriction base="integerRangeType">
            <xs:minInclusive value="-1"/>
        </xs:restriction>
    </xs:simpleType>
    <!-- domainPropertiesOptionsType -->
    <xs:complexType name="domainPropertiesOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="virtual_alias_limit" type="callType" use="optional"/>
                <xs:attribute name="alias_limit" type="callType" use="optional"/>
                <xs:attribute name="call_limit" type="callType" use="optional"/>
                <xs:attribute name="add_on_conferences_limit" type="callType" use="optional"/>
                <xs:attribute name="meet_me_limit" type="callType" use="optional"/>
                <xs:attribute name="chat_room_limit" type="callType" use="optional"/>
                <xs:attribute name="digitmap" type="stringType" use="optional"/>
                <xs:attribute name="callcenter_enabled" type="booleanType" use="optional"/>
                <xs:attribute name="callcenter_active_agents" type="callType" use="optional"/>
                <xs:attribute name="teleconference_enabled" type="booleanType" use="optional"/>
                <xs:attribute name="teleconference_active_channels" type="callType" use="optional"/>
                <xs:attribute name="tsmn_concurrent_calls" type="positiveIntegerType" use="optional"/>
                <xs:attribute name="dialer_channels" type="positiveIntegerType" use="optional"/>
                <xs:attribute name="ivr_enabled" type="booleanType" use="optional"/>
                <xs:attribute name="failover" type="booleanType" 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>

Пример

Запрос: http://192.168.1.21:9999/commands/domain_limits_info

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

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="domain_limits_info.xsd">
    <result>
        <domain_options>
            <system>
                <options xs:type="domainPropertiesOptionsType"/>
            </system>
            <domain name="biysk.local">
                <options xs:type="domainPropertiesOptionsType" virtual_alias_limit="-1" tsmn_concurrent_calls="0" teleconference_enabled="true" teleconference_active_channels="-1" meet_me_limit="-1" ivr_enabled="true" failover="true" digitmap="" dialer_channels="0" chat_room_limit="-1" callcenter_enabled="true" callcenter_active_agents="-1" call_limit="-1" alias_limit="-1" add_on_conferences_limit="-1"/>
            </domain>
        </domain_options>
    </result>
</out>

Hс_domain_limits_set

Команда изменения ограничений, заданных на определенном домене (команда доступна только для администратора ECSS-10). В текущей версии доступны следующие ограничения:

  • alias_limit - максимальное количество абонентов в домене;
  • call_limit - максимальное количество одновременных вызовов в домене;
  • callcenter_enabled - в домене включена поддержка call-центра;
  • callcenter_active_agents - максимальное количество авторизованных агентов call-центра;
  • teleconference_enabled - в домене включена поддержка селекторной связи;
  • teleconference_active_channels - максимальное количество участников всех конференций сервиса селекторной связи в данном домене;
  • ivr_enabled - в домене включена поддержка ivr;
  • failover - для данного домена включена поддержка резервирования вызовов.

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

domain/<DOMAIN>/properties/restrictions/set

Метод HTTP-запроса:

POST

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

http://host:port/commands/domain_limits_set

Код HTTP-ответа:

  • 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">
            Set domain limits.
            Usage: http://server:9999/commands/domain_limits_set.
            Implementation: hc_domain_properties_set.erl.
            Git: git@git.eltex.loc:httpTerminal.git.
            Copyright (c) 2016, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>
    <xs:include schemaLocation="error.xsd"/>
    <xs:include schemaLocation="ecm_common.xsd"/>
    <!-- callType -->
    <xs:simpleType name="callType">
        <xs:restriction base="integerRangeType">
            <xs:minInclusive value="-1"/>
        </xs:restriction>
    </xs:simpleType>
    <!-- domainPropertiesOptionsType -->
    <xs:complexType name="domainPropertiesOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="virtual_alias_limit" type="callType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total virtual aliases in the domain. In case of no limits on alias count virtual_alias_limit = -1.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="alias_limit" type="callType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total aliases in the domain. In case of no limits on alias count alias_limit = -1.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="call_limit" type="callType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total simultaneous active calls in the domain. In case of no limits on simultaneous active calls call_limit = -1.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="chat_room_limit" type="callType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total simultaneous chat rooms in the domain. In case of no limits on simultaneous chat rooms chat_room_limit = -1.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="add_on_conferences_limit" type="callType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total simultaneous add-on conferences in the domain. In case of no limits on simultaneous add-on conferences add_on_conferences_limit = -1.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="meet_me_limit" type="callType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total simultaneous meet me conferences in the domain. In case of no limits on simultaneous meet me meet_me_limit = -1.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="digitmap" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Digitmap for the specified domain
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="callcenter_enabled" type="booleanType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Domain support callcenter services.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="callcenter_active_agents" type="callType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total simultaneous callcenter's active agents in the domain. In case of no limits on simultaneous active agents callcenter_active_agents = -1.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="teleconference_enabled" type="booleanType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Domain support teleconference services.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="teleconference_active_channels" type="callType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total simultaneous teleconference's active channels in the domain. In case of no limits on simultaneous active channels teleconference_active_channels = -1.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="tsmn_concurrent_calls" type="positiveIntegerType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total counts of concurrent calls on TSMN system.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="dialer_channels" type="positiveIntegerType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Channels on dialer outgoing calls.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="ivr_enabled" type="booleanType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Domain support IVR services.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="failover" type="booleanType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Domain support reincarnate active calls in case on one of the server's is down (Work only with cluster version on ECSS-10).
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
            </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:attribute name="force" type="xs:boolean"/>
                    </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>

Пример

Запрос: http://192.168.1.21:9999/commands/domain_limits_set

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="domain_limits_set.xsd">
    <request>
        <domain_options>
            <system>
                <options xs:type="domainPropertiesOptionsType" />
            </system>
            <domain name="biysk.local">
                <options xs:type="domainPropertiesOptionsType" alias_limit="1000" call_limit="50" callcenter_enabled="true" teleconference_enabled="true" ivr_enabled="true" failover="true" callcenter_active_agents="20" teleconference_active_channels="10" />
            </domain>
        </domain_options>
    </request>
</in>

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="domain_limits_set.xsd">
    <result>
        <domain_options>
            <system/>
            <domain name="biysk.local">
                <success option="alias_limit"/>
                <success option="call_limit"/>
                <success option="callcenter_active_agents"/>
                <success option="callcenter_enabled"/>
                <success option="failover"/>
                <success option="ivr_enabled"/>
                <success option="teleconference_active_channels"/>
                <success option="teleconference_enabled"/>
            </domain>
        </domain_options>
    </result>
</out>
  • Нет меток