Hс_domain_limits_clean

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

Название свойстваЗначение по умолчаниюОписание
alias_limitinfinity (ограничено лицензией)Общее количество абонентов (в том числе и виртуальных) в данной виртуальной АТС.
call_limitinfinity (ограничено лицензией)Общее количество одновременно активных вызовов для данной виртуальной АТС.
virtual_alias_limitinfinity (ограничено лицензией)Общее количество виртуальных абонентов в данной виртуальной АТС
digitmap

Cписок масок набора, по которому будет валидироваться алиасы при создании. описания параметра описан на странице /domain/ — команды управления виртуальными АТС

failovertrueНеобходимость в резервировании вызовов на данной виртуальной АТС. Параметр используется только в системах с резервированием. Поскольку использование резерва увеличивает потребление ресурсов системы (процессор, оперативная память и другое), то исключение виртуальной АТС из схемы резервирования позволяет сэкономить часть ресурсов и направить сэкономленные ресурсы на обработку вызовов. В штатной работе системы это позволяет увеличить производительность в ущерб надежности.
callcenter\enabledtrueДоступ к контакт-центру для данной виртуальной АТС.
callcenter\active_agentsinfinity (ограничено лицензией)Максимальное кол-во подключаемых агентов Call-center для домена
callcenter\active_supervisorsinfinity (ограничено лицензией)Максимальное кол-во подключаемых супервизоров Call-center для домена

tc\active_conferences

infinity (ограничено лицензией)Максимальное кол-во активных конференций для домена
tc_count_active_channelsinfinity (ограничено лицензией)Максимальное кол-во подключаемых абонентов в конференцию сервиса teleconference для домена
ivr\enabledtrueДоступ к функциям IVR и dialer для данной виртуальной АТС.
ivr\incoming_script\enabledtrueИспользовать для входящих транков в качестве контекста маршрутизации IVR скрипт default_incoming_call.
teleconference\enabledtrueДоступ к сервису "Селекторная связь" для данной виртуальной АТС.
tsmn\concurrent_calls0Общее количество одновременно активных вызовов для системы TSMN на основном транке
tsmn\concurrent_calls\redundancy0Общее количество одновременно активных вызовов для системы TSMN на резервном транке
add_on_conferences_limitinfinity (ограничено лицензией)Общее количество одновременно активных конференций для данной виртуальной АТС.
meet_me_limitinfinity (ограничено лицензией)Общее количество активных пользователей "meet me"комнат для данной виртуальной АТС
chat_room_limitinfinity (ограничено лицензией)Общее количество активных конференц-комнат для данной виртуальной АТС
dialer\channels0 (ограничено лицензией)Количество одновременных вызовов для кампаний обзвона
recorder\voice\channels0 (ограничено лицензией)Количество одновременных каналов записи разговоров
ss_package0 (ограничено лицензией)Количество лицензионных пакетов услуг

Аналог команды в 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>
XML

Пример 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

Ответ:

<?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="biysk.local">
                <success option="failover"/>
            </domain>
        </domain_options>
    </result>
</out>
XML

Hс_domain_limits_info

Команда для просмотра ограничений, заданных на определенном домене. Список ограничений см в описании команды Hс_domain_limits_clean

Аналог команды в 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="callcenter_active_supervisors" 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="teleconference_active_conferences" type="callType" use="optional"/>
                <xs:attribute name="tsmn_concurrent_calls" type="positiveIntegerType" use="optional"/>
                <xs:attribute name="tsmn_concurrent_calls_redundancy" type="positiveIntegerType" use="optional"/>
                <xs:attribute name="dialer_channels" type="positiveIntegerType" use="optional"/>
                <xs:attribute name="recorder_voice_channels" type="positiveIntegerType" use="optional"/>
                <xs:attribute name="ivr_enabled" type="booleanType" use="optional"/>
                <xs:attribute name="ivr_incoming_script_enabled" type="booleanType" use="optional"/>
                <xs:attribute name="failover" type="booleanType" use="optional"/>
                <xs:attribute name="ss_package" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Count of licence from ss package in current domain.
                            Example: "Expanded 1:10\nBASIC:100\nExpanded:2: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="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/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

Ответ: 200

<?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_redundancy="0" tsmn_concurrent_calls="0" teleconference_enabled="true" teleconference_active_conferences="-1" teleconference_active_channels="10" ss_package="-1" recorder_voice_channels="-1" meet_me_limit="-1" ivr_incoming_script_enabled="true" ivr_enabled="true" failover="true" digitmap="" dialer_channels="0" chat_room_limit="-1" callcenter_enabled="true" callcenter_active_supervisors="-1" callcenter_active_agents="20" call_limit="50" alias_limit="1000" add_on_conferences_limit="-1"/>
            </domain>
        </domain_options>
    </result>
</out>
XML

Hс_domain_limits_set

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

Аналог команды в 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="callcenter_active_supervisors" type="callType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total simultaneous callcenter's active supervisors in the domain. In case of no limits on simultaneous active supervisors callcenter_active_supervisors = -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="teleconference_active_conferences" type="callType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total simultaneous teleconferences active channels in the domain. In case of no limits on simultaneous active teleconferences teleconference_active_conferences = -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 master trunk for TSMN system.
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="tsmn_concurrent_calls_redundancy" type="positiveIntegerType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total counts of concurrent calls on backup trunk for 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="recorder_voice_channels" type="positiveIntegerType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Total count of simultaneous records voice 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="ivr_incoming_script_enabled" type="booleanType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Domain support IVR incoming 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:attribute name="ss_package" type="stringType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">
                            Count of licence from ss package in current domain.
                            Example: "Expanded 1:10\nBASIC:100"
                        </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>

XML

Пример

Запрос: 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

Ответ: 200

<?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>
XML