Hc_ss_incall_feature_code - Управление списками feature кодов
Hc_ss_incall_feature_code_clean
Команда используется для сброса списка feature кодов для работы с incall услугами в рамках определенного домена.
Аналог команды в CoCon:
/domain/<DOMAIN>/ss/feature-codes/incall/clean
Метод http запроса:
POST
Шаблон http запроса:
http://host:port/commands/ss_incall_feature_code_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">
Reset supplementary services' feature codes for specific domain.
Usage: http://server:9999/commands/ss_incall_feature_code_clean
Copyright (c) 2016, Eltex. All rights reserved.
</xs:documentation>
</xs:annotation>
<!-- non-empty token -->
<xs:simpleType name="prefixType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- featureCodeType -->
<xs:complexType name="featureCodeType">
<xs:attribute name="ss_name" type="xs:string" use="required"/>
<xs:attribute name="feature_key" type="xs:string" use="required"/>
<xs:attribute name="feature" type="xs:string" use="optional"/>
<xs:attribute name="prefix" type="prefixType" use="optional"/>
<xs:attribute name="default_prefix" type="prefixType" use="optional"/>
<xs:attribute name="usage_samples" type="xs:string" use="optional"/>
<xs:attribute name="description" type="xs:string" use="optional"/>
</xs:complexType>
<!-- okType -->
<xs:complexType name="okType"/>
<!-- duplicatesType -->
<xs:complexType name="duplicatesType">
<xs:sequence>
<xs:element name="feature_code" type="featureCodeType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- in-->
<xs:element name="in">
<xs:complexType>
<xs:all>
<xs:element name="request">
<xs:complexType>
<xs:sequence>
<xs:element name="feature_code" type="featureCodeType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="domain" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
<!-- out-->
<xs:element name="out">
<xs:complexType>
<xs:all>
<xs:element name="result">
<xs:complexType>
<xs:choice>
<xs:element name="ok" type="okType"/>
<xs:element name="duplicates" type="duplicatesType"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
Пример:
Запрос:
http://192.168.1.21:9999/commands/ss_incall_feature_code_clean
<?xml version="1.0"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
<request domain="biysk.local">
<feature_code ss_name="CallRecord" feature_key="use"/>
<feature_code ss_name="Flash" feature_key="use"/>
</request>
</in>
Ответ: 200
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss_incall_feature_code_clean.xsd">
<result>
<ok/>
</result>
</out>
Hc_ss_incall_feature_code_info
Команда предназначена для получения списка feature кодов для работы с incall услуг в рамках определенного домена.
Аналог команды в CoCon:
/domain/<DOMAIN>/ss/feature-codes/incall/info
Метод http запроса:
POST
Шаблон http запроса:
http://host:port/commands/ss_incall_feature_code_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">
Get supplementary services' incall feature codes for specific domain.
Usage: http://server:9999/commands/ss_feature_code_info
Copyright (c) 2016, Eltex. All rights reserved.
</xs:documentation>
</xs:annotation>
<!-- non-empty token -->
<xs:simpleType name="prefixType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- featureCodeType -->
<xs:complexType name="featureCodeType">
<xs:attribute name="ss_name" type="xs:string" use="required"/>
<xs:attribute name="feature_key" type="xs:string" use="required"/>
<xs:attribute name="feature" type="xs:string" use="required"/>
<xs:attribute name="prefix" type="prefixType" use="required"/>
<xs:attribute name="default_prefix" type="prefixType" use="required"/>
<xs:attribute name="usage_samples" type="xs:string" use="required"/>
<xs:attribute name="description" type="xs:string" use="required"/>
</xs:complexType>
<!-- in-->
<xs:element name="in">
<xs:complexType>
<xs:all>
<xs:element name="request">
<xs:complexType>
<xs:attribute name="domain" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
<!-- out-->
<xs:element name="out">
<xs:complexType>
<xs:all>
<xs:element name="result">
<xs:complexType>
<xs:sequence>
<xs:element name="feature_code" type="featureCodeType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
Пример :
Запрос:
http://192.168.1.21:9999/commands/ss_feature_code_info
<?xml version="1.0"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
<request domain="biysk.local"/>
</in>
Ответ: 200
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss_incall_feature_code_info.xsd">
<result>
<feature_code ss_name="CallRecord" feature_key="use" feature="use" prefix="*0#" default_prefix="*0#" usage_samples="" description="Start call record functionality."/>
<feature_code ss_name="Flash" feature_key="use" feature="use" prefix="*#" default_prefix="*#" usage_samples="" description="Hold/Hole functionality."/>
<feature_code ss_name="ExclusiveHold" feature_key="use" feature="use" prefix="*187" default_prefix="*187" usage_samples="" description="Boss-group's exclusive hold."/>
<feature_code ss_name="Privacy" feature_key="activate" feature="use" prefix="*186" default_prefix="*186" usage_samples="" description="Activate privacy mode for current call."/>
<feature_code ss_name="Privacy" feature_key="deactivate" feature="use" prefix="#186" default_prefix="#186" usage_samples="" description="Deactivate privacy mode for current call."/>
</result>
</out>
Hc_ss_incall_feature_code_set
Команда используется для изменения списка feature кодов для работы с incall услуг в рамках определенного домена.
Аналог команды в CoCon:
/domain/<DOMAIN>/ss/feature-codes/incall/set
Метод http запроса:
POST
Шаблон http запроса:
http://host:port/commands/ss_incall_feature_code_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 supplementary services' incall feature codes for specific domain.
Usage: http://server:9999/commands/ss_feature_code_set
Copyright (c) 2016, Eltex. All rights reserved.
</xs:documentation>
</xs:annotation>
<!-- non-empty token -->
<xs:simpleType name="prefixType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- featureCodeType -->
<xs:complexType name="featureCodeType">
<xs:attribute name="ss_name" type="xs:string" use="required"/>
<xs:attribute name="feature_key" type="xs:string" use="required"/>
<xs:attribute name="feature" type="xs:string" use="optional"/>
<xs:attribute name="prefix" type="prefixType" use="required"/>
<xs:attribute name="default_prefix" type="prefixType" use="optional"/>
<xs:attribute name="usage_samples" type="xs:string" use="optional"/>
<xs:attribute name="description" type="xs:string" use="optional"/>
</xs:complexType>
<!-- okType -->
<xs:complexType name="okType"/>
<!-- duplicatesType -->
<xs:complexType name="duplicatesType">
<xs:sequence>
<xs:element name="feature_code" type="featureCodeType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- in-->
<xs:element name="in">
<xs:complexType>
<xs:all>
<xs:element name="request">
<xs:complexType>
<xs:sequence>
<xs:element name="feature_code" type="featureCodeType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="domain" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
<!-- out-->
<xs:element name="out">
<xs:complexType>
<xs:all>
<xs:element name="result">
<xs:complexType>
<xs:choice>
<xs:element name="ok" type="okType"/>
<xs:element name="duplicates" type="duplicatesType"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
Пример 1
Запрос: http://192.168.1.21:9999/commands/ss_incall_feature_code_set
<?xml version="1.0"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
<request domain="biysk.local">
<feature_code ss_name="CallRecord" feature_key="use" prefix="*111"/>
<feature_code ss_name="Flash" feature_key="use" prefix="#222"/>
</request>
</in>
Ответ: 200
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss_incall_feature_code_set.xsd">
<result>
<ok/>
</result>
</out>
Пример 2
Запрос:
http://192.168.1.21:9999/commands/ss_incall_feature_code_set
<?xml version="1.0"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
<request domain="biysk.local">
<feature_code ss_name="CallRecord" feature_key="use" prefix="*111"/>
<feature_code ss_name="Flash" feature_key="use" prefix="*111"/>
</request>
</in>
Ответ: 200
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss_incall_feature_code_set.xsd">
<result>
<duplicates>
<feature_code ss_name="CallRecord" feature_key="use" feature="use" prefix="*111" default_prefix="*111" usage_samples="" description="Start call record functionality."/>
<feature_code ss_name="Flash" feature_key="use" feature="use" prefix="*111" default_prefix="*111" usage_samples="" description="Hold/Hole functionality."/>
</duplicates>
</result>
</out>