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

Hc_core_obcsm_info

Команда для получения свойств origination timers указанного домена.

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

domain/<DOMAIN>/core/obcsm/info

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

http://server:9999/commands/core_obcsm_info

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

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

XML-схема:

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

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

          
    <xs:complexType name="octOBCSMOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="conversation_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="o_response_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 version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_obcsm_info.xsd">
    <request>
        <domain_options domain="domain2" />
    </request>
</in>

Ответ:

<?xml version="1.0"?>
<out xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_tbcsm_info.xsd">
    <result>
        <domain_options>
            <system>
                <options xs:type="octOBCSMOptionsType"/>
            </system>
            <domain name="domain1">
                <options xs:type="octOBCSMOptionsType" conversation_timeout="9" o_response_timeout="10" suspend_timeout_t38="12" suspend_timeout_t6="disabled" suspend_timeout_t2="15"/>
            </domain>
        </domain_options>
    </result>
</out>

Нс_core_obcsm_clean

Команда очистки свойств origination timers указанного домена.

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

domain/<DOMAIN>/core/obcsm/clean

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

http://server:9999/commands/core_obcsm_clean

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

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

XML-схема:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" id="core_obcsm_clean">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Clean Core domain properties (origination timers).
            Copyright (c) 2014, 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 version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" 
    xs:noNamespaceSchemaLocation="core_obcsm_clean.xsd">
    <request>
        <domain_options>
            <system/>
            <domain name="domain2">
                <option name="conversation_timeout"/>
                <option name="o_response_timeout"/>
                <option name="suspend_timeout_t2"/>
                <option name="suspend_timeout_t38"/>
                <option name="suspend_timeout_t6"/>
            </domain>
        </domain_options>
    </request>
</in>

Ответ:

<?xml version="1.0"?>
<out xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_obcsm_clean.xsd">
    <result>
        <domain_options>
            <system/>
            <domain name="domain2">
                <success option="conversation_timeout"/>
                <success option="o_response_timeout"/>
                <success option="suspend_timeout_t2"/>
                <success option="suspend_timeout_t38"/>
                <success option="suspend_timeout_t6"/>
            </domain>
        </domain_options>
    </result>
</out>

Hc_core_obcsm_set

Команда для изменения свойств origination timers указанного домена.

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

domain/<DOMAIN>/core/obcsm/set

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

http://server:9999/commands/core_obcsm_set

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

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

XML-схема:

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

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

          
    <xs:complexType name="octOBCSMOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="conversation_timeout" type="nonEmptyTokenType" use="optional" />
                <xs:attribute name="o_response_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 version="1.0"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_obcsm_set.xsd">
    <request>
        <domain_options>
            <system>
                <options xs:type="octOBCSMOptionsType"/>
            </system>
            <domain name="domain2">
                <options xs:type="octOBCSMOptionsType" conversation_timeout="9" o_response_timeout="10" suspend_timeout_t38="12" suspend_timeout_t6="disabled" suspend_timeout_t2="15"/>
            </domain>
        </domain_options>
    </request>
</in>

Ответ:

<?xml version="1.0"?>
<out xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_obcsm_set.xsd">
    <result>
        <domain_options>
            <system/>
            <domain name="domain2">
                <success option="conversation_timeout"/>
                <success option="o_response_timeout"/>
                <success option="suspend_timeout_t2"/>
                <success option="suspend_timeout_t38"/>
                <success option="suspend_timeout_t6"/>
            </domain>
        </domain_options>
    </result>
</out>
  • Нет меток