Hc_core_timers_clean

Команда сброса настроек таймеров указанной виртуальной АТС.

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

domain/<DOMAIN>/timers/core/clean

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

POST

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

http://host:port/commands/core_timers_clean

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

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

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

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" id="core_timers_clean">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Clean Core timer properties
            Copyright (c) 2015, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>

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

    <!-- in -->
    <xs:element name="in">
        <xs:complexType>
            <xs:all>
                <xs:element name="request" minOccurs="1" maxOccurs="1">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainCleanInType"
                                        minOccurs="1" maxOccurs="1" />
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:all>
        </xs:complexType>
    </xs:element>
    <!-- in -->

    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainCleanOutType"
                                        minOccurs="1" maxOccurs="1" />
                        </xs:all>
                    </xs:complexType>
                </xs:element>
                <xs:element name="error" type="errorType" minOccurs="1" maxOccurs="1" />
            </xs:choice>
        </xs:complexType>
    </xs:element>
    <!-- out -->

</xs:schema>
XML

Пример:

http://192.168.1.21:9999/commands/core_timers_clean

Запрос:

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" 
    xs:noNamespaceSchemaLocation="core_timers_clean.xsd">
    <request>
        <domain_options>
            <system/>
            <domain name="biysk.local">
                <option name="conversation_timeout"/>
                <option name="o_response_timeout"/>
                <option name="suspend_timeout_t2"/>
                <option name="suspend_timeout_t38"/>
                <option name="suspend_timeout_t6"/>
                <option name="release_ack_timeout"/>
            </domain>
        </domain_options>
    </request>
</in>
XML

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_timers_clean.xsd">
    <result>
        <domain_options>
            <system/>
            <domain name="biysk.local">
                <success option="conversation_timeout"/>
                <success option="release_ack_timeout"/>
                <success option="suspend_timeout_t2"/>
                <success option="suspend_timeout_t38"/>
                <success option="suspend_timeout_t6"/>
                <error option="o_response_timeout" reason="{error,not_found}"/>
            </domain>
        </domain_options>
    </result>
</out>
XML

Hc_core_timers_info

Команда просмотра свойств таймеров указанной виртуальной АТС.

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

domain/<DOMAIN>/timers/core/info

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

POST

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

http://host:port/commands/core_timers_info

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

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

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

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" id="core_timers_info">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Show Core timers properties
            Copyright (c) 2015, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>

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

    <xs:complexType name="octTimersOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="abonent_manager_statistic_boom_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="cc_queue_remember_choice_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="fill_seizure_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="release_ack_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="trunk_manager_cache_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="voicemail_read_message_cleanup_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="conversation_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="no_answer_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="o_no_answer_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="response_ack_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="response_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="router_resp_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="suspend_timeout_t38" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="suspend_timeout_t6" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="suspend_timeout_t2" type="nonEmptyTokenType" use="optional" />
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>

    <!-- in -->
    <xs:element name="in">
        <xs:complexType>
            <xs:all>
                <xs:element name="request" minOccurs="1" maxOccurs="1">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainInfoInType"
                                        minOccurs="1" maxOccurs="1" />
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:all>
        </xs:complexType>
    </xs:element>
    <!-- in -->

    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainInfoOutType"
                                        minOccurs="1" maxOccurs="1" />
                        </xs:all>
                    </xs:complexType>
                </xs:element>
                <xs:element name="error" type="errorType" minOccurs="1" maxOccurs="1" />
            </xs:choice>
        </xs:complexType>
    </xs:element>
    <!-- out -->

</xs:schema>

XML

Пример:

http://192.168.1.21:9999/commands/core_timers_info

Запрос значений всех доступных свойств:

<?xml version="1.0" encoding="UTF-8"?>
<in
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_timers_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_timers_info.xsd">
    <result>
        <domain_options>
            <system>
                <options xs:type="octTimersOptionsType"/>
            </system>
            <domain name="biysk.local">
                <options xs:type="octTimersOptionsType" voicemail_read_message_cleanup_timeout="86400000" trunk_manager_cache_timeout="60000" suspend_timeout_t6="60000" suspend_timeout_t38="90000" suspend_timeout_t2="180000" router_resp_timeout="5000" response_timeout="25000" response_ack_timeout="6000" release_ack_timeout="5000" no_answer_timeout="60000" conversation_timeout="3600000" cc_queue_remember_choice_timeout="3600000" abonent_manager_statistic_boom_timeout="300000"/>
            </domain>
        </domain_options>
    </result>
</out>
XML

Hc_core_timers_set

Команда изменения свойств таймера указанной виртуальной АТС.

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

domain/<DOMAIN>/timers/core/set

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

POST

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

http://host:port/commands/core_timers_set

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

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

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

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" id="core_timers_set">
  <xs:annotation>
    <xs:documentation xml:lang="en">
      Change Core timers properties
      Copyright (c) 2015, Eltex. All rights reserved.
    </xs:documentation>
  </xs:annotation>

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

  <xs:complexType name="octTimersOptionsType">
    <xs:complexContent>
      <xs:extension base="baseOptionsType">
        <xs:attribute name="abonent_manager_statistic_boom_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="cc_queue_remember_choice_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="fill_seizure_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="release_ack_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="trunk_manager_cache_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="voicemail_read_message_cleanup_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="conversation_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="no_answer_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="o_no_answer_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="response_ack_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="response_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="router_resp_timeout" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="suspend_timeout_t38" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="suspend_timeout_t6" type="nonEmptyTokenType" use="optional" />
        <xs:attribute name="suspend_timeout_t2" type="nonEmptyTokenType" use="optional" />
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

  <!-- in -->
  <xs:element name="in">
    <xs:complexType>
      <xs:all>
        <xs:element name="request">
          <xs:complexType>
            <xs:all>
              <xs:element name="domain_options" type="domainSetInType"
                          minOccurs="1" maxOccurs="1" />
            </xs:all>
          </xs:complexType>
        </xs:element>
      </xs:all>
    </xs:complexType>
  </xs:element>
  <!-- in -->

  <!-- out -->
  <xs:element name="out">
    <xs:complexType>
      <xs:choice>
        <xs:element name="result">
          <xs:complexType>
            <xs:all>
              <xs:element name="domain_options" type="domainSetOutType"
                          minOccurs="1" maxOccurs="1" />
            </xs:all>
          </xs:complexType>
        </xs:element>
        <xs:element name="error" type="errorType" minOccurs="1" maxOccurs="1" />
      </xs:choice>
    </xs:complexType>
  </xs:element>
  <!-- out -->

</xs:schema>
XML

Пример:

http://192.168.1.21:9999/commands/core_timers_set

Запрос:

<?xml version="1.0"?>
<in
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_timers_set.xsd">
    <request>
        <domain_options>
            <system>
                <options xs:type="octTimersOptionsType"/>
            </system>
            <domain name="biysk.local">
                <options xs:type="octTimersOptionsType" conversation_timeout="9" no_answer_timeout="60" suspend_timeout_t38="12" suspend_timeout_t6="disabled" suspend_timeout_t2="15" router_resp_timeout="6"/>
            </domain>
        </domain_options>
    </request>
</in>
XML

Ответ:

200

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_timers_set.xsd">
    <result>
        <domain_options>
            <system/>
            <domain name="biysk.local">
                <success option="conversation_timeout"/>
                <success option="no_answer_timeout"/>
                <success option="router_resp_timeout"/>
                <success option="suspend_timeout_t6"/>
                <error option="suspend_timeout_t2" reason="{invalid_value,15}"/>
                <error option="suspend_timeout_t38" reason="{invalid_value,12}"/>
            </domain>
        </domain_options>
    </result>
</out>
XML