Hc_ss_domain_profile - Управление профилями услуг
Hc_ss_domain_profile_activate
Команда позволяет активировать услуги доменного профиля на заданном адресе.
Аналог команды в CoCon:
/domain/<DOMAIN>/ss/profile/activate
Шаблон http запроса:
http://host:port/commands/ss_domain_profile_activate
Код http ответа:
200 – в случае успеха.
Xsd схема XML запроса/ответа:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<!-- activatePropertyType -->
<xs:complexType name="propertyType">
<xs:attribute name="key" type="xs:string" use="required"/>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
<!-- activateType -->
<xs:complexType name="activateType">
<xs:sequence>
<xs:element name="property" type="propertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="address" type="xs:string" use="required"/>
<xs:attribute name="profile" type="xs:string" use="required"/>
</xs:complexType>
<!-- okType -->
<xs:complexType name="okType">
<xs:attribute name="address" type="xs:string" use="optional"/>
<xs:attribute name="profile" type="xs:string" use="required"/>
</xs:complexType>
<!-- errorType -->
<xs:complexType name="errorType">
<xs:attribute name="address" type="xs:string" use="optional"/>
<xs:attribute name="profile" type="xs:string" use="required"/>
<xs:attribute name="reason" type="xs:string" use="required"/>
</xs:complexType>
<!-- requestType -->
<xs:complexType name="requestType">
<xs:sequence>
<xs:element name="activate" type="activateType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="domain" type="xs:string" use="required"/>
<xs:attribute name="force" type="xs:string" use="optional"/>
</xs:complexType>
<!-- in -->
<xs:element name="in">
<xs:complexType>
<xs:sequence>
<xs:element name="request" type="requestType" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- out -->
<xs:element name="out">
<xs:complexType>
<xs:all>
<xs:element name="response">
<xs:complexType>
<xs:sequence>
<xs:element name="ok" type="okType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="error" type="errorType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
Код http ответа:
200 – в случае успеха;
404 – в случае ошибки.
Пример 1
Запрос:
http://192.168.1.21:9999/commands/ss_domain_profile_activate
<?xml version="1.0" encoding="UTF-8"?>
<in
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_ss_domain_profile_activate.xsd">
<request domain="biysk.local">
<activate profile="work_ss" address="240473"></activate>
<activate profile="work_ss" address="240469"></activate>
</request>
</in>
Ответ: 200
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_ss_domain_profile_activate.xsd">
<response>
<ok address="240469" profile="work_ss"/>
<ok address="240473" profile="work_ss"/>
</response>
</out>
Hs_ss_domain_profile_add_ss
Команда позволяет добавить новый набор услуг в уже созданные доменные профили.
Аналог команды в CoCon:
/domain/<DOMAIN>/ss/profile/ss-add
Шаблон http запроса:
http://host:port/commands/ss_domain_profile_add_ss
Код http ответа:
201 – в случае успеха;
200 – в случае ошибки (с указанием ошибки в теле ответа).
Xsd схема XML запроса/ответа:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="error.xsd"/>
<!-- propertyType -->
<xs:complexType name="propertyType">
<xs:attribute name="key" type="xs:string" use="required"/>
<xs:attribute name="value" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
SS property's value, formatted by in the ss_activate command.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<!-- ssType -->
<xs:complexType name="ssType">
<xs:sequence>
<xs:element name="property" type="propertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="enable" type="xs:boolean" use="required"/>
<xs:attribute name="active" type="xs:boolean" use="required"/>
</xs:complexType>
<!-- setProfileType -->
<xs:complexType name="setProfileType">
<xs:sequence>
<xs:element name="ss" type="ssType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
Domain's profile name.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<!-- requestType -->
<xs:complexType name="requestType">
<xs:sequence>
<xs:element name="profile" type="setProfileType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="domain" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
Domain name.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<!-- in -->
<xs:element name="in">
<xs:complexType>
<xs:all>
<xs:element name="request" type="requestType"/>
</xs:all>
</xs:complexType>
</xs:element>
<!-- out -->
<xs:element name="out">
<xs:complexType>
<xs:sequence>
<xs:element name="error" type="errorType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Пример:
Запрос: http://192.168.1.21:9999/commands/ss_domain_profile_add_ss
<?xml version="1.0"?>
<in
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_ss_domain_profile_add_ss.xsd">
<request domain="biysk.local">
<profile name="ss_test">
<ss name="ctr" enable="true" active="true"></ss>
</profile>
</request>
</in>
Ответ: 201
Hc_ss_domain_profile_copy
Команда позволяет сделать копию доменного профиля с новым именем.
Аналог команды в CoCon:
/domain/<DOMAIN>/ss/profile/copy
Шаблон http запроса:
http://host:port/commands/ss_domain_profile_copy
Код http ответа:
201 – в случае успеха;
200 – в случае ошибки (с указанием ошибки в теле ответа).
Xsd схема XML запроса/ответа:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="error.xsd"/>
<!-- requestType -->
<xs:complexType name="requestType">
<xs:attribute name="domain" type="xs:string" use="required"/>
<xs:attribute name="src_name" type="xs:string" use="required"/>
<xs:attribute name="dst_name" type="xs:string" use="required"/>
</xs:complexType>
<!-- in -->
<xs:element name="in">
<xs:complexType>
<xs:all>
<xs:element name="request" type="requestType"/>
</xs:all>
</xs:complexType>
</xs:element>
<!-- out -->
<xs:element name="out">
<xs:complexType>
<xs:choice>
<xs:element name="error" type="errorType"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
Пример 1
Запрос:
http://192.168.1.21:9999/commands/ss_domain_profile_copy
<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_ss_domain_profile_copy.xsd">
<request domain="biysk.local" src_name="min_ss" dst_name="min_ss_copy"/>
</in>
Ответ:
201
Пример 2
В случае, если профиль с именем min_ss_copy уже существует
Ответ:
200
<?xml version="1.0" encoding="UTF-8"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_ss_domain_profile_copy.xsd">
<error cmd="hc_ss_domain_profile_copy" reason="already_exists" body="{error,already_exists}"/>
</out>
Пример 3
В случае, если исходный профиль не существует
Запрос: http://192.168.1.21:9999/commands/ss_domain_profile_copy
<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_ss_domain_profile_copy.xsd">
<request domain="biysk.local" src_name="unknown_profile" dst_name="to"/>
</in>
Ответ:
200
?xml version="1.0" encoding="UTF-8"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_ss_domain_profile_copy.xsd">
<error cmd="hc_ss_domain_profile_copy" reason="not_exists" body="{error,not_exists}"/>
</out>
Hc_ss_domain_profile_info
Команда позволяет получить настройки доменного профиля услуги по имени.
Аналог команды в CoCon:
/domain/<DOMAIN>/ss/profile/info
Шаблон http запроса:
http://host:port/commands/ss_domain_profile_info
Код http ответа:
200 – в случае успеха.
Xsd схема XML запроса/ответа:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="ss.xsd"/>
<xs:include schemaLocation="error.xsd"/>
<!-- ssInfoType -->
<xs:complexType name="ssInfoType">
<xs:complexContent>
<xs:extension base="ssType">
<xs:attribute name="available" type="xs:boolean" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<!-- profileType -->
<xs:complexType name="profileType">
<xs:sequence>
<xs:element name="ss" type="ssInfoType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="description" type="xs:string" use="optional"/>
</xs:complexType>
<!-- requestType -->
<xs:complexType name="requestType">
<xs:attribute name="domain" type="xs:string" use="required"/>
<xs:attribute name="profile" type="xs:string" use="required"/>
</xs:complexType>
<!-- in -->
<xs:element name="in">
<xs:complexType>
<xs:all>
<xs:element name="request" type="requestType"/>
</xs:all>
</xs:complexType>
</xs:element>
<!-- out -->
<xs:element name="out">
<xs:complexType>
<xs:choice>
<xs:element name="profile" type="profileType"/>
<xs:element name="error" type="errorType"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
Пример 1
Запрос: http://192.168.1.21:9999/commands/ss_domain_profile_info
<in xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_ss_domain_profile_info.xsd">
<request domain="biysk.local" profile="work_ss"/>
</in>
Ответ: 200
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_ss_domain_profile_info.xsd">
<profile name="work_ss" description="for_office">
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="clip" version="5" description="Calling Line Identification Presentation" active="true" enabled="true" available="true"/>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cnip" version="3" description="Calling Name Identification Presentation" active="true" enabled="true" available="true">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
</msd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="chold" version="8" description="Call hold" active="true" enabled="true" available="true">
<ssd>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="disable_moh" type="boolean" description="Disable music on hold" value="false"/>
<property name="dtmf_sequence_as_flash" type="boolean" description="Try interpret the DTMF sequence as a flash (look at incall feature codes)" value="false"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="ctr" version="5" description="Call Transfer" active="true" enabled="true" available="true">
<msd>
<property_list name="dependency_list" type="atom" maxlen="0" description="List of SS that is depended from SS">
<item value="chold"/>
</property_list>
</msd>
<ssd>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="conference" version="9" description="Conference Call, Add-on" active="true" enabled="true" available="true">
<msd>
<property name="enumDestroy_mode" type="string" description="Internal field to validate mode property" value="by_no_master|by_no_more_calls"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="3way"/>
</property_list>
<property_list name="dependency_list" type="atom" maxlen="0" description="List of SS that is depended from SS">
<item value="chold"/>
<item value="ctr"/>
</property_list>
</msd>
<csd>
<property name="destroy_mode" type="enum" description="The mode of destroying conference (by_no_master|by_no_more_calls)" value="by_no_master"/>
<property name="max_participants" type="positive_integer" description="The maximum number of participants in the conference, limited to the number 64 at the top. By default 16" value="16"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cf_sip" version="9" description="Call Forwarding by SIP redirection (302 message)" active="true" enabled="true" available="true">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cfu"/>
<item value="assistant"/>
<item value="follow_me"/>
<item value="tsmn_request"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cc_agent" version="2" description="Contact-Center agent" active="true" enabled="true" available="true"/>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="ml" version="4" description="Multiline" active="true" enabled="true" available="true">
<msd>
<property name="integer_rangeLine_count_out" type="string" description="Internal field" value="[-1,16]"/>
<property name="integer_rangeLine_count" type="string" description="Internal field" value="[0,16]"/>
</msd>
<csd>
<property name="line_count" type="integer_range" description="Line count" value="3"/>
<property name="line_count_out" type="integer_range" description="Outgoing lines count" value="-1"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="mcid" version="2" description="Malicious Call Identification" active="true" enabled="true" available="true"/>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="intervention" version="4" description="Intervention" active="true" enabled="true" available="true">
<msd>
<property name="enumRestriction" type="string" description="Internal field to validate mode property" value="full_control|implicitly_allowed|explicitly_allowed"/>
</msd>
<ssd>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="restriction" type="enum" description="The restriction to the intervention call (full_control|allowed_only)" value="full_control"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="park" version="2" description="Call park" active="true" enabled="true" available="true"/>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="multicast_listen" version="1" description="Multicast Listen Service" active="false" enabled="false" available="false">
<msd>
<property name="enumCodec" type="string" description="Internal field to codec property" value="G722|PCMU|PCMA|G729|G723_53|G723_63|G726-16|G726-24|G726-32|G726-40"/>
<property name="integer_rangePort" type="string" description="Internal field to udp port property" value="[10000,65535]"/>
</msd>
<csd>
<property name="ip" type="ip" description="Ip address for listen multicast."/>
<property name="port" type="integer_range" description="Port for listen multicast (10000-65535)."/>
<property name="codec" type="enum" description="Audio codec for multicast traffic." value="G722"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="vip_call" version="2" description="Vip call" active="false" enabled="false" available="false">
<msd>
<property name="enumPriority" type="string" description="Call's priority" value="0_flash_override|1_flash|2_immediate|3_priority|4_routine"/>
</msd>
<csd>
<property name="priority" type="enum" description="(0_flash_override | 1_flash | 2_immediate | 3_priority | 4_routine)" value="4_routine"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="voice_page_control" version="2" description="'Voice Page Control' service" active="false" enabled="false" available="false">
<csd>
<property name="accept_incoming_vp" type="boolean" description="Accept or Reject voice page calls" value="true"/>
<property name="block_incoming_vp_by_dnd" type="boolean" description="Block voice page calls by DND service" value="true"/>
<property name="mute_incoming_vp" type="boolean" description="Accept incoming voice page call in silent mode" value="true"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="redial" version="2" description="Last number redial" active="false" enabled="false" available="false"/>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="fxo_trunk" version="1" description="FXO trunk service" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="trunk"/>
</msd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="sco_black" version="2" description="Selective Call Originating, Black list" active="false" enabled="false" available="false">
<csd>
<property_list name="blacklist" type="index_address" maxlen="50" description="Black list members. Format: <address>[/<index>]">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="zone_page" version="9" description="Zone Page call" active="false" enabled="false" available="false">
<msd>
<property name="enumPriority" type="string" description="Call's priority" value="0_flash_override|1_flash|2_immediate|3_priority|4_routine"/>
<property name="enumInitiation_policy" type="string" description="Initiation call's policy" value="managers|members|any"/>
<property name="integer_rangeMulticast_port" type="string" description="Internal field" value="[1,65535]"/>
<property name="integer_rangeMulticast_ttl" type="string" description="Internal field" value="[1,255]"/>
<property name="enumMulticast_codec" type="string" description="Internal field" value="G722|PCMU|PCMA|G729|G723_53|G723_63|G726-16|G726-24|G726-32|G726-40"/>
</msd>
<ssd>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="priority" type="enum" description="(0_flash_override | 1_flash | 2_immediate | 3_priority | 4_routine)" value="3_priority"/>
<property name="intro_pause" type="integer" description="Pause before play intro files" value="3"/>
<property name="announcement_pause" type="integer" description="Pause before play announcement files" value="0"/>
<property name="announcement_playback_cnt" type="integer" description="Announcement files playback count" value="1"/>
<property name="announcement_repeat_time" type="integer" description="Announcement files repeat timeout" value="10"/>
<property name="terminate_when_initiator_disconnects" type="boolean" description="Terminate call after initiator disconnected"/>
<property name="terminate_when_playback_ends" type="boolean" description="Terminate call after playback ends"/>
<property name="terminate_when_last_listener_leave" type="boolean" description="Terminate call after last listener disconnects"/>
<property name="initiation_policy" type="enum" description="Initiation call's policy" value="any"/>
<property name="display_name" type="string" description="ZonePage call DisplayName" value="ZonePage"/>
<property name="play_release_tone" type="boolean" description="ZonePage release tone" value="false"/>
<property name="announcement_repeat_digit" type="address" description="Digit to repeat announcement files" value="#"/>
<property name="multicast_ip" type="ip" description="Optional multicast address to use for announcement" value="0.0.0.0"/>
<property name="multicast_port" type="integer_range" description="Port of multicast address" value="0"/>
<property name="multicast_codec" type="enum" description="Codec to be used for multicasting" value="PCMA"/>
<property name="multicast_ttl" type="integer_range" description="TTL for multicast" value="1"/>
<property_list name="members" type="address" maxlen="256" description="Zone page member list">
<undefined/>
</property_list>
<property_list name="managers" type="address" maxlen="256" description="Zone page managers list"/>
<property_list name="intro_files" type="media_resource" maxlen="10" description="List of Intro media_files"/>
<property_list name="announcement_files" type="media_resource" maxlen="10" description="List of Announcement media_files"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="meet_me_conference" version="2" description="Meet Me Conference" active="false" enabled="false" available="false">
<msd>
<property name="regimeMode" type="string" description="Internal field to validate mode property" value="master:destroy_mode:room_number|member:room_number"/>
<property name="enumDestroy_mode" type="string" description="Internal field to validate mode property" value="by_no_master|by_no_more_calls"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="assistant"/>
<item value="follow_me"/>
<item value="cfu_type2"/>
</property_list>
</msd>
<csd>
<property name="mode" type="regime" description="The mode of meet me conference (master|member)"/>
<property name="destroy_mode" type="enum" description="The mode of destroying conference (by_no_master|by_no_more_calls)" value="by_no_more_calls"/>
<property name="room_number" type="address" description="Room number" value=""/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="teleconference" version="4" description="Teleconference" active="false" enabled="false" available="false">
<msd>
<property name="enumType" type="string" description="Teleconference type: meeting or room" value="meeting|room"/>
</msd>
<csd>
<property name="destroy_by_no_initiator" type="boolean" description="Destroy the teleconference by release from the initiator?" value="true"/>
<property name="template_from_room" type="teleconference_room" description="Get template from the teleconference room" value=""/>
<property name="type" type="enum" description="Teleconference type: meeting or room" value="meeting"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="assistant" version="2" description="Chief-assistant group" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="user"/>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property_list name="assistants" type="index_address" maxlen="4" description="Assistants numbers. Format: <address>[/<index>]">
<undefined/>
</property_list>
<property_list name="whitelist" type="index_address" maxlen="128" description="White list members. Format: <address>[/<index>]">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="personal_ivr" version="2" description="Personal IVR script" active="false" enabled="false" available="false">
<msd>
<property name="handle_module" type="atom" description="" value="ss_personal_ivr_handler"/>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="user"/>
</msd>
<csd>
<property name="script" type="ivr_script_id" description="Script ID" value=""/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="voicemail" version="12" description="Voice mail service" active="false" enabled="false" available="false">
<msd>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="assistant"/>
<item value="follow_me"/>
<item value="cfu_type2"/>
<item value="meet_me_conference"/>
<item value="cfu"/>
<item value="find_me"/>
<item value="cf_aon"/>
<item value="cft"/>
</property_list>
</msd>
<ssd>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="no_reply" type="boolean" description="Activate service when subscriber no reply" value="true"/>
<property name="busy" type="boolean" description="Activate service when subscriber is busy" value="false"/>
<property name="out_of_service" type="boolean" description="Activate service when subscriber is out of service" value="true"/>
<property name="unconditional" type="boolean" description="Activate service any time" value="false"/>
<property name="timeout" type="positive_integer" description="Timeout before call forward (sec)" value="30"/>
<property name="send_by_email" type="boolean" description="Send recorded message by email" value="false"/>
<property name="min_message_duration" type="positive_integer" description="The minimum voice mail duration (sec). In case of voice mail duration will be less that min_message_duration, this message will be dropped" value="0"/>
<property name="max_message_duration" type="positive_integer" description="The maximum voice mail duration (sec). 0 - in case of not limited duration" value="300"/>
<property name="mailbox_volume" type="positive_integer" description="The mailbox volume (sec)" value="1800"/>
<property name="override_messages" type="boolean" description="Override messages in case of mailbox is full" value="true"/>
<property name="email_from" type="string" description="Email from template. Macro variables: %DATE%, %TIME%, %CALLING%, %DISPLAYNAME%" value="%DISPLAYNAME%"/>
<property name="email_subject" type="string" description="Email subject template. Macro variables: %DATE%, %TIME%, %CALLING%, %DISPLAYNAME%" value="Voicemail from %CALLING% at %DATE% %TIME%"/>
<property name="email_body" type="string" description="Email body template. Macro variables: %DATE%, %TIME%, %CALLING%, %DISPLAYNAME%" value=""/>
<property name="play_message_details" type="boolean" description="Play message's details (number, time) before message" value="false"/>
<property name="password" type="address" description="There is password to have access to the voicemail box" value=""/>
<property name="max_silence" type="positive_integer" description="There is time(sec) while service wait for a contiguous period of silence before terminating an incoming call to voice mail" value="0"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="auto_redial" version="2" description="Auto redial" active="false" enabled="false" available="false">
<csd>
<property name="recall_timeout" type="positive_integer" description="Timeout between recalls (sec)" value="15"/>
<property name="recall_count" type="positive_integer" description="Recalls' count" value="6"/>
<property name="no_answer_timeout" type="positive_integer" description="Awaiting answer timeout (sec)" value="30"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="click_to_call" version="5" description="Click to call" active="false" enabled="false" available="false">
<csd>
<property name="number" type="address" description="User's number"/>
<property name="auto_answer" type="boolean" description="Auto answer" value="true"/>
<property_list name="hashes" type="string" maxlen="10" description="User's hashes">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="distinctive_ring" version="1" description="Destination ringtone change" active="false" enabled="false" available="false">
<csd>
<property_list name="filters" type="distinctive_ring" maxlen="16" description="Distinctive ring for specific numbers">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cw" version="5" description="Call Waiting" active="false" enabled="false" available="false">
<msd>
<property_list name="dependency_list" type="atom" maxlen="0" description="List of SS that is depended from SS">
<item value="chold"/>
</property_list>
</msd>
<ssd>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="call_recording" version="10" description="Call recording" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
<property name="enumMode" type="string" description="Internal field to validate mode property" value="always_on|on_demand|after_answer"/>
</msd>
<ssd>
<property name="locked" type="boolean" description="Can subscriber manage current SS, or not" value="true"/>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="mode" type="enum" description="The mode of the recording call (always_on|on_demand)"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="blf" version="3" description="Busy Lamp Field" active="false" enabled="false" available="false">
<csd>
<property name="max_subscribe" type="positive_integer" description="Maximum number of subscriptions" value="16"/>
<property name="ignore_page_calls" type="boolean" description="Doesn't send BLF notification from Zone Page calls" value="true"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="remote_phone" version="1" description="Remote phone" active="false" enabled="false" available="false">
<msd>
<property name="handle_module" type="atom" description="" value="ss_remote_phone_handler"/>
</msd>
<csd>
<property name="remote_endpoint" type="interface" description="Remote interface" value=""/>
<property name="pin" type="address" description="PIN-code"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="presence" version="2" description="SIP Presence" active="false" enabled="false" available="false">
<csd>
<property name="max_subscribe" type="positive_integer" description="Maximum number of subscriptions" value="16"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="message" version="2" description="Message service" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
</msd>
<ssd>
<property name="message_box_size" type="integer" description="Message box size" value="20"/>
<property name="remove_only_after_answer" type="boolean" description="Remove message only after abonent answer" value="false"/>
</ssd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="ring_back_tone" version="2" description="Ring back tone" active="false" enabled="false" available="false">
<csd>
<property name="file" type="media_resource" description="File to play on ring"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="voice_page" version="9" description="Voice Page call" active="false" enabled="false" available="false">
<msd>
<property name="enumPriority" type="string" description="Call's priority" value="0_flash_override|1_flash|2_immediate|3_priority|4_routine"/>
</msd>
<ssd>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="skip_cf" type="boolean" description="Skipping call forwarding" value="true"/>
<property name="priority" type="enum" description="(0_flash_override | 1_flash | 2_immediate | 3_priority | 4_routine)" value="3_priority"/>
<property name="announcement_repeat_time" type="integer" description="Announcement files repeat timeout" value="10"/>
<property name="announcement_playback_cnt" type="integer" description="Announcement files playback count [0..5]" value="0"/>
<property name="swap_digit" type="address" description="Digit to swap reception / transmission mode" value="*"/>
<property name="announcement_repeat_digit" type="address" description="Digit to repeat announcement files" value="#"/>
<property_list name="intro_files" type="media_resource" maxlen="10" description="List of Intro media_files"/>
<property_list name="announcement_files" type="media_resource" maxlen="10" description="List of Announcement media_files"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cfos" version="12" description="Call Forwarding Out of Service" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cfu"/>
<item value="assistant"/>
<item value="follow_me"/>
<item value="tsmn_request"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="number" type="address" description="Forward number"/>
<property name="external_number" type="address" description="External forward number" value=""/>
<property name="use_external_number" type="boolean" description="Use external forward number" value="false"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="scr" version="2" description="Selective Call Rejection" active="false" enabled="false" available="false">
<csd>
<property_list name="blacklist" type="index_address" maxlen="50" description="Black list members. Format: <address>[/<index>]">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="boss_group" version="1" description="Boss-group" active="false" enabled="false" available="false">
<msd>
<property name="integer_rangeDelay_ring_timeout" type="string" description="Internal field" value="[0,60]"/>
<property name="integer_rangeLines_count" type="string" description="Internal field" value="[0,16]"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cw"/>
</property_list>
<property_list name="dependency_list" type="atom" maxlen="0" description="List of SS that is depended from SS">
<item value="auto_redial"/>
</property_list>
</msd>
<ssd>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="display_name" type="string" description="Display name for boss group" value=""/>
<property name="delay_ring_timeout" type="integer_range" description="Timeout before call on delayed members" value="0"/>
<property name="lines_count" type="integer_range" description="Incoming boss-group lines count" value="2"/>
<property name="members_fwd_busy_override" type="boolean" description="Ignore members CFB for group calls" value="true"/>
<property name="call_waiting_tone" type="boolean" description="Play call waiting tone for second(s) calls on group" value="false"/>
<property_list name="members" type="address" maxlen="8" description="Members for immediate call">
<undefined/>
</property_list>
<property_list name="delay_members" type="address" maxlen="8" description="Members for delay call">
<undefined/>
</property_list>
<property_list name="silent_members" type="address" maxlen="8" description="Members for BLF and pickup only group calls">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cf_aon" version="8" description="Call Forwarding AON" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="assistant"/>
<item value="follow_me"/>
<item value="cfu_type2"/>
<item value="meet_me_conference"/>
<item value="cfu"/>
<item value="find_me"/>
<item value="cf_aon"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="no_reply" type="boolean" description="Activate service when subscriber no reply" value="false"/>
<property name="timeout" type="positive_integer" description="Timeout before call forward (sec)" value="15"/>
<property name="number" type="address" description="Forward number"/>
<property_list name="prefix_number" type="address" maxlen="10" description="Prefix number A">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="intercom" version="1" description="Intercom" active="false" enabled="false" available="false"/>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="direct_call" version="2" description="Direct call" active="false" enabled="false" available="false">
<csd>
<property name="number" type="address" description="Call number to direct call"/>
<property name="timeout" type="positive_integer" description="Timeout before direct call (sec)" value="5"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cgg" version="7" description="Group-calling" active="false" enabled="false" available="false">
<msd>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="assistant"/>
<item value="follow_me"/>
<item value="cfu_type2"/>
<item value="meet_me_conference"/>
<item value="cfu"/>
<item value="find_me"/>
<item value="cf_aon"/>
<item value="cft"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="send_call_diversion" type="boolean" description="Send call diversion flag in call signalisation" value="true"/>
<property_list name="numbers" type="address" maxlen="10" description="Group's numbers">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cfu" version="14" description="Call Forwarding Unconditional" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="assistant"/>
<item value="follow_me"/>
<item value="cfu_type2"/>
<item value="meet_me_conference"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="number" type="address" description="Forward number"/>
<property name="external_number" type="address" description="External forward number" value=""/>
<property name="use_external_number" type="boolean" description="Use external forward number" value="false"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="find_me" version="7" description="Find Me" active="false" enabled="false" available="false">
<msd>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="assistant"/>
<item value="follow_me"/>
<item value="cfu_type2"/>
<item value="meet_me_conference"/>
<item value="cfu"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="send_call_diversion" type="boolean" description="Send call diversion flag in call signalisation" value="true"/>
<property_list name="groups" type="find_me_group" maxlen="32" description="Find me groups"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="qsig_cfu" version="3" description="QSIG: Call Forwarding Unconditional" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="trunk"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cfu"/>
<item value="follow_me"/>
</property_list>
</msd>
<csd>
<property name="hide_forwarding" type="boolean" description="Hide forwarding fields (rgn, ocdrn)" value="false"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="follow_me" version="11" description="Follow me" active="false" enabled="false" available="false">
<msd>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="assistant"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="number" type="address" description="Followed number" value=""/>
<property name="pin" type="address" description="PIN-code" value=""/>
<property name="external_number" type="address" description="External forward number" value=""/>
<property name="use_external_number" type="boolean" description="Use external forward number" value="false"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="walkie_talkie" version="1" description="Walkie Talkie" active="false" enabled="false" available="false">
<ssd>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="swap_digit" type="address" description="Digit to swap reception / transmission mode" value="*"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="multicast_page" version="1" description="Multicast IP Paging" active="false" enabled="false" available="false">
<msd>
<property name="enumCodec" type="string" description="Internal field" value="G722|PCMU|PCMA|G729|G723_53|G723_63|G726-16|G726-24|G726-32|G726-40"/>
<property name="integer_rangePort" type="string" description="Internal field" value="[10000,65535]"/>
<property name="integer_rangeTtl" type="string" description="Internal field" value="[1,255]"/>
</msd>
<csd>
<property name="ip" type="ip" description="IP address to cast the media to"/>
<property name="port" type="integer_range" description="UDP port to cast the media to (10000-65535)"/>
<property name="codec" type="enum" description="Codec to be used for multicasting" value="PCMA"/>
<property name="ttl" type="integer_range" description="TTL for multicast packets (1-255)" value="1"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cft" version="14" description="Call Forwarding Unconditional Time Dependent" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
<property name="enumTime_format" type="string" description="Internal field to validate time_format property" value="local|utc"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="assistant"/>
<item value="follow_me"/>
<item value="cfu_type2"/>
<item value="meet_me_conference"/>
<item value="cfu"/>
<item value="find_me"/>
<item value="cf_aon"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="day_1" type="term" description="{[{{FromHour,FromMinute}, {ToHour,ToMinute}}, ...], Number, ExternalNumber}" value="off"/>
<property name="day_2" type="term" description="{[{{FromHour,FromMinute}, {ToHour,ToMinute}}, ...], Number, ExternalNumber}" value="off"/>
<property name="day_3" type="term" description="{[{{FromHour,FromMinute}, {ToHour,ToMinute}}, ...], Number, ExternalNumber}" value="off"/>
<property name="day_4" type="term" description="{[{{FromHour,FromMinute}, {ToHour,ToMinute}}, ...], Number, ExternalNumber}" value="off"/>
<property name="day_5" type="term" description="{[{{FromHour,FromMinute}, {ToHour,ToMinute}}, ...], Number, ExternalNumber}" value="off"/>
<property name="day_6" type="term" description="{[{{FromHour,FromMinute}, {ToHour,ToMinute}}, ...], Number, ExternalNumber}" value="off"/>
<property name="day_7" type="term" description="{[{{FromHour,FromMinute}, {ToHour,ToMinute}}, ...], Number, ExternalNumber}" value="off"/>
<property name="time_format" type="enum" description="CFT for Sunday (local | utc)" value="local"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="chunt" version="7" description="Call hunt groups" active="false" enabled="false" available="false">
<msd>
<property name="regimeMode" type="string" description="Internal field to validate search_strategy property" value="group:numbers:queue_strategy|serial:numbers:cyclic:search_strategy:window_shift_timeout:max_shift_count:queue_strategy|longest_idle:numbers:cyclic:window_shift_timeout:max_shift_count:queue_strategy|delay_group:numbers:window_shift_timeout:queue_strategy|manual"/>
<property name="enumSearch_strategy" type="string" description="Internal field to validate search_strategy property" value="first|last|random|longest_idle"/>
<property name="enumQueue_strategy" type="string" description="Internal field to validate queue_strategy property" value="wait|drop"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="assistant"/>
<item value="follow_me"/>
<item value="cfu_type2"/>
<item value="meet_me_conference"/>
<item value="cfu"/>
<item value="find_me"/>
<item value="cf_aon"/>
<item value="cft"/>
<item value="cgg"/>
</property_list>
</msd>
<ssd>
<property name="delay_retrieve_timeout_1" type="integer" description="Delay retrieve timeout for release group call by group subscriber" value="1000"/>
<property name="delay_retrieve_timeout_2" type="integer" description="Delay retrieve timeout for release group call by slave subscriber" value="5000"/>
<property name="delay_retrieve_timeout_3" type="integer" description="Delay retrieve timeout for waiting free group subscriber" value="15000"/>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="mode" type="regime" description="The type of the chunt"/>
<property name="cyclic" type="boolean" description="Flag that is show is call hunt group cyclic or not" value="false"/>
<property name="reset_window_start_pos_after_call" type="boolean" description="Reset window start position after all incoming calls will be connected with group calls" value="false"/>
<property name="window_shift_timeout" type="positive_integer" description="Interval after which window shift on the window_shift value" value="0"/>
<property name="max_shift_count" type="integer" description="The number of times that a window can be shift" value="-1"/>
<property name="window_size" type="positive_integer" description="The number of simultaneous calls to the call-hunt's subscribers" value="1"/>
<property name="window_start_pos" type="integer" description="The index (zero-based) of the first subscriber in the window" value="0"/>
<property name="window_shift" type="positive_integer" description="The value on which shift window_start_pos when window_shift_timeout fired" value="1"/>
<property name="queue_strategy" type="enum" description="(wait | drop)" value="wait"/>
<property name="search_strategy" type="enum" description="(first | last | random | longest_idle)" value="first"/>
<property name="queue_size" type="positive_integer" description="Wait calls' queue size" value="0"/>
<property_list name="numbers" type="address" maxlen="10" description="Call-hunt member list">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cfnr_type2" version="11" description="Call Forwarding No Reply without notification" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cfu"/>
<item value="assistant"/>
<item value="cfnr"/>
<item value="follow_me"/>
<item value="tsmn_request"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="number" type="address" description="Forward number"/>
<property name="timeout" type="positive_integer" description="Timeout before call forward (sec)" value="15"/>
<property name="use_redirection_counter" type="boolean" description="Use redirectionCounter field to count hops" value="false"/>
<property name="external_number" type="address" description="External forward number" value=""/>
<property name="use_external_number" type="boolean" description="Use external forward number" value="false"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="acb" version="2" description="Anonymous Call Blocking" active="false" enabled="false" available="false"/>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cfu_type2" version="14" description="Call Forwarding Unconditional without notification" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="assistant"/>
<item value="follow_me"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="number" type="address" description="Forward number"/>
<property name="use_redirection_counter" type="boolean" description="Use redirectionCounter field to count hops" value="false"/>
<property name="external_number" type="address" description="External forward number" value=""/>
<property name="use_external_number" type="boolean" description="Use external forward number" value="false"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cfnr" version="11" description="Call Forwarding No Reply" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cfu"/>
<item value="assistant"/>
<item value="follow_me"/>
<item value="tsmn_request"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="number" type="address" description="Forward number"/>
<property name="external_number" type="address" description="External forward number" value=""/>
<property name="use_external_number" type="boolean" description="Use external forward number" value="false"/>
<property name="timeout" type="positive_integer" description="Timeout before call forward (sec)" value="15"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="sca" version="2" description="Selective Call Acceptance" active="false" enabled="false" available="false">
<csd>
<property_list name="whitelist" type="index_address" maxlen="50" description="White list members. Format: <address>[/<index>]">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="rbp" version="3" description="SS for restricting call-processes by NI and PIN" active="false" enabled="false" available="false">
<csd>
<property name="implicit_call" type="boolean" description="Use implicit RBP call (Request PIN-code in case of use recsricted call)" value="false"/>
<property_list name="restricted_ni" type="ni" maxlen="6" description="Restricted number indication">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cliro" version="2" description="Calling Line Identification Restriction Override" active="false" enabled="false" available="false"/>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="alarm" version="8" description="Alarm Call" active="false" enabled="false" available="false">
<msd>
<property name="handle_module" type="atom" description="" value="ss_alarm_handler"/>
</msd>
<ssd>
<property name="collect_digits_timeout" type="integer" description="Wait timeout to collect cancel digits" value="60"/>
</ssd>
<csd>
<property name="no_answer_timeout" type="integer" description="Awaiting answer timer (value in seconds)" value="45"/>
<property name="call_attempt_count" type="integer" description="The count of the call's attempt" value="3"/>
<property name="call_attempt_timeout" type="integer" description="Awaiting timer between calls' attempts" value="60"/>
<property name="cancel_digits" type="address" description="Digits to cancel alarm" value="*"/>
<property name="alarm_1" type="term" description=""{" "'one-time'" | daily, "[" Day1[, Day2][, ...] "]","{"HH, MM"}"[, AlarmName]"}"" value="off"/>
<property name="alarm_2" type="term" description=""{" "'one-time'" | daily, "[" Day1[, Day2][, ...] "]","{"HH, MM"}"[, AlarmName]"}"" value="off"/>
<property name="alarm_3" type="term" description=""{" "'one-time'" | daily, "[" Day1[, Day2][, ...] "]","{"HH, MM"}"[, AlarmName]"}"" value="off"/>
<property name="alarm_4" type="term" description=""{" "'one-time'" | daily, "[" Day1[, Day2][, ...] "]","{"HH, MM"}"[, AlarmName]"}"" value="off"/>
<property name="alarm_5" type="term" description=""{" "'one-time'" | daily, "[" Day1[, Day2][, ...] "]","{"HH, MM"}"[, AlarmName]"}"" value="off"/>
<property name="alarm_6" type="term" description=""{" "'one-time'" | daily, "[" Day1[, Day2][, ...] "]","{"HH, MM"}"[, AlarmName]"}"" value="off"/>
<property name="alarm_7" type="term" description=""{" "'one-time'" | daily, "[" Day1[, Day2][, ...] "]","{"HH, MM"}"[, AlarmName]"}"" value="off"/>
<property name="alarm_8" type="term" description=""{" "'one-time'" | daily, "[" Day1[, Day2][, ...] "]","{"HH, MM"}"[, AlarmName]"}"" value="off"/>
<property name="alarm_9" type="term" description=""{" "'one-time'" | daily, "[" Day1[, Day2][, ...] "]","{"HH, MM"}"[, AlarmName]"}"" value="off"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="speed_dial" version="5" description="Speed dial (Abbreviated dialing)" active="false" enabled="false" available="false">
<msd>
<property name="enumType" type="string" description="The type of address book. address_book_10 supports 10 number in the address book. address_book_100 supports 100 numbers on the address book" value="address_book_10|address_book_100"/>
</msd>
<csd>
<property name="type" type="enum" description="(address_book_10 | address_book_100)" value="address_book_100"/>
<property_list name="map" type="speed_dial_item" maxlen="50" description="Map between short dial and full address. Format: <short_dial>/<address>"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="fax_to_email" version="2" description="Fax to email" active="false" enabled="false" available="false">
<csd>
<property name="email" type="string" description="Email address" value=""/>
<property name="send_error_report" type="boolean" description="Send email in case of fax received failed" value="false"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="flexicall" version="1" description="FlexiCall" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any." value="user"/>
<property name="enumMode" type="string" description="Internal field to validate mode property" value="all|external|internal"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cgg"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="mode" type="enum" description="Mode operating. Available values (all | external | internal)"/>
<property_list name="external_numbers" type="address" maxlen="10" description="Group's external numbers"/>
<property_list name="internal_numbers" type="address" maxlen="10" description="Group's internal numbers"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="auto_redial_with_callback" version="5" description="Auto redial with callback" active="false" enabled="false" available="false">
<msd>
<property name="enumRingback" type="string" description="Ringback" value="tone|moh"/>
</msd>
<csd>
<property name="recall_timer" type="positive_integer" description="Time between recalls (sec)" value="90"/>
<property name="recall_count" type="positive_integer" description="Recalls' count" value="30"/>
<property name="a_no_answer_timeout" type="positive_integer" description="Awaiting B-side answer timeout (sec)" value="10"/>
<property name="b_no_answer_timeout" type="positive_integer" description="Awaiting A-side answer timeout (sec)" value="30"/>
<property name="ringback" type="enum" description="Ringback (tone | moh)" value="tone"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="callback" version="5" description="CallBack" active="false" enabled="false" available="false">
<ssd>
<property name="collect_digits_timeout" type="integer" description="Wait timeout to collect cancel digits" value="60"/>
<property name="a_onhook_timeout" type="positive_integer" description="Timeout for A subscriber onhook (sec)" value="5"/>
<property name="max_call_retry" type="positive_integer" description="The maximum count of call's retry to initial subscriber" value="5"/>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="3way" version="6" description="3-Way Conference" active="false" enabled="false" available="false">
<msd>
<property_list name="dependency_list" type="atom" maxlen="0" description="List of SS that is depended from SS">
<item value="chold"/>
</property_list>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="conference"/>
</property_list>
</msd>
<ssd>
<property name="dtmf_detector" type="boolean" description="" value="true"/>
</ssd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="introduce" version="1" description="Introduce announcement from callee" active="false" enabled="false" available="false">
<csd>
<property name="announcement" type="media_resource" description="Announcement media file"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="distinctive_picture" version="2" description="Display caller image by groups" active="false" enabled="false" available="false">
<csd>
<property_list name="groups" type="distinctive_picture" maxlen="20" description="Distinctive picture for specific numbers"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="find_me_no_response" version="6" description="Find Me no response" active="false" enabled="false" available="false">
<msd>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cfu"/>
<item value="assistant"/>
<item value="ctu"/>
<item value="cgg"/>
<item value="follow_me"/>
<item value="follow_me_no_response"/>
<item value="find_me"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="false"/>
</ssd>
<csd>
<property name="send_call_diversion" type="boolean" description="Send call diversion flag in call signalisation" value="true"/>
<property name="timeout" type="positive_integer" description="Timeout before call forward (sec)" value="20"/>
<property_list name="groups" type="find_me_group" maxlen="32" description="Find me groups"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="follow_me_no_response" version="8" description="Follow me no response" active="false" enabled="false" available="false">
<msd>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cfu"/>
<item value="assistant"/>
<item value="cft"/>
<item value="cgg"/>
<item value="follow_me"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="number" type="address" description="Followed number" value=""/>
<property name="timeout" type="positive_integer" description="Timeout before call forward (sec)" value="20"/>
<property name="pin" type="address" description="PIN-code" value=""/>
<property name="external_number" type="address" description="External forward number" value=""/>
<property name="use_external_number" type="boolean" description="Use external forward number" value="false"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="sco_white" version="2" description="Selective Call Originating, White list" active="false" enabled="false" available="false">
<csd>
<property_list name="whitelist" type="index_address" maxlen="50" description="White list members. Format: <address>[/<index>]">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="tsmn_request" version="3" description="Support request on TSMN" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="trunk"/>
</msd>
<csd>
<property name="timeout" type="positive_integer" description="Timeout on TSMN request(s) (msec)" value="3000"/>
<property name="tsmn_trunk" type="trunk" description="Trunk to TSMN server"/>
<property name="tsmn_trunk_backup" type="trunk" description="Backup trunk to TSMN server" value=""/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="dnd" version="3" description="Do not Disturb" active="false" enabled="false" available="false">
<csd>
<property_list name="whitelist" type="index_address" maxlen="10" description="White list members. Format: <address>[/<index>]">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="rfc" version="2" description="Rejection of Forwarded Calls" active="false" enabled="false" available="false"/>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="fbc" version="1" description="Forwarding Barring Call" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
</msd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="qsig_cfnr" version="2" description="QSIG: Call Forwarding No Reply" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="trunk"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cfu"/>
</property_list>
</msd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cfb" version="11" description="Call Forwarding Busy" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="any"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cfu"/>
<item value="assistant"/>
<item value="follow_me"/>
<item value="tsmn_request"/>
</property_list>
</msd>
<ssd>
<property name="forwarding_ss" type="boolean" description="" value="true"/>
</ssd>
<csd>
<property name="number" type="address" description="Forward number"/>
<property name="external_number" type="address" description="External forward number" value=""/>
<property name="use_external_number" type="boolean" description="Use external forward number" value="false"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="avatar" version="2" description="Picture for outgoing calls" active="false" enabled="false" available="false">
<csd>
<property name="pic_addr" type="uri_string" description="URL to access the image" value=""/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="qsig_cfb" version="3" description="QSIG: Call Forwarding Busy" active="false" enabled="false" available="false">
<msd>
<property name="owner" type="atom" description="SS type. Available values: user | trunk | any" value="trunk"/>
<property_list name="conflict_list" type="atom" maxlen="0" description="List of SS that is conflict with current SS">
<item value="cfu"/>
</property_list>
</msd>
<csd>
<property name="hide_forwarding" type="boolean" description="Hide forwarding fields (rgn, ocdrn)" value="false"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="fax_receiver" version="2" description="Enable fax receiving ability for terminals which is not support fax by their own" active="false" enabled="false" available="false"/>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="clir" version="3" description="Calling Line Identification Restriction" active="false" enabled="false" available="false">
<msd>
<property name="enumMode" type="string" description="Internal field to validate mode property" value="user_defined|restrict_all"/>
</msd>
<csd>
<property name="mode" type="enum" description="The mode of the working clir service (user_defined|restrict_all)" value="restrict_all"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="teleconference_manager" version="3" description="Teleconference manager" active="false" enabled="false" available="false">
<csd>
<property_list name="second_line" type="address" maxlen="10" description="Second line numbers"/>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="pickup" version="2" description="Call Pickup" active="false" enabled="false" available="false">
<csd>
<property_list name="pickup_groups" type="index_string" maxlen="10" description="Call pick-up's groups names. Format: <Name>[/<Inx>]">
<undefined/>
</property_list>
</csd>
</ss>
<ss
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss.xsd" name="cpip" version="2" description="Calling Picture Identification Presentation" active="false" enabled="false" available="false">
<msd>
<property name="enumDisplay_mode" type="string" description="Internal field to validate 'display-mode' property" value="icon|fullscreen"/>
</msd>
<csd>
<property name="display_mode" type="enum" description="Sets the picture display mode: icon mode or fullscreen mode." value="icon"/>
</csd>
</ss>
</profile>
</out>
Hc_ss_domain_profile_list
Команда позволяет просмотреть список доменных профилей услуг.
Аналог команды в CoCon:
/domain/<DOMAIN>/ss/profile/info
Шаблон http запроса:
http://host:port/commands/ss_domain_profile_list
Код http ответа:
200 – в случае успеха.
Xsd схема XML запроса/ответа:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="ss.xsd"/>
<xs:include schemaLocation="error.xsd"/>
<!-- profileType -->
<xs:complexType name="profileType">
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="description" type="xs:string" use="optional"/>
</xs:complexType>
<!-- requestType -->
<xs:complexType name="requestType">
<xs:attribute name="domain" type="xs:string" use="required"/>
</xs:complexType>
<!-- in -->
<xs:element name="in">
<xs:complexType>
<xs:all>
<xs:element name="request" type="requestType"/>
</xs:all>
</xs:complexType>
</xs:element>
<!-- out -->
<xs:element name="out">
<xs:complexType>
<xs:sequence>
<xs:element name="profile" type="profileType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Пример 1
Запрос: http://192.168.1.21:9999/commands/ss_domain_profile_list
<in xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_ss_domain_profile_list.xsd">
<request domain="biysk.local"/>
</in>
Ответ:
200
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_ss_domain_profile_list.xsd">
<profile name="work_ss" description="for_office"/>
<profile name="min_ss" description="only_clip_cnip_chold"/>
<profile name="ss_test" description="test"/>
</out>
Hc_ss_domain_profile_remove
Команда позволяет удалить несколько системных профилей по имени.
Аналог команды в CoCon:
/domain/<DOMAIN>/ss/profile/remove
Шаблон http запроса:
http://host:port/commands/ss_domain_profile_remove
Код http ответа:
204 – в случае успеха;
200 – в случае ошибки (с указанием ошибки в теле ответа)
Xsd схема XML запроса/ответа:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="error.xsd"/>
<!-- removeProfileType -->
<xs:complexType name="removeProfileType">
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
<!-- requestType -->
<xs:complexType name="requestType">
<xs:sequence>
<xs:element name="profile" type="removeProfileType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="domain" type="xs:string" use="required"/>
</xs:complexType>
<!-- in -->
<xs:element name="in">
<xs:complexType>
<xs:all>
<xs:element name="request" type="requestType"/>
</xs:all>
</xs:complexType>
</xs:element>
<!-- out -->
<xs:element name="out">
<xs:complexType>
<xs:sequence>
<xs:element name="error" type="errorType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Пример 1
Запрос: http://192.168.1.21:9999/commands/ss_domain_profile_remove
<?xml version="1.0"?>
<in
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_ss_domain_profile_remove.xsd">
<request domain="biysk.local">
<profile name="ss_test"/>
<profile name="min_ss_copy"/>
</request>
</in>
Ответ:
204
Пример 2
В случае, если профили с именем profile_test не существует
Запрос: http://192.168.1.21:9999/commands/ss_domain_profile_remove
<?xml version="1.0"?>
<in
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_ss_domain_profile_remove.xsd">
<request domain="biysk.local">
<profile name="ss_test"/>
<profile name="min_ss_copy"/>
</request>
</in>
Ответ:
200
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_ss_domain_profile_remove.xsd">
<error cmd="hc_ss_domain_profile_remove" reason="not_exists" body="not_exists" entity="profile_test"/>
</out>
Hc_ss_domain_profile_set
Команда позволяет создать новые и/или изменить существующие доменные профили услуг.
Аналог команды в CoCon:
/domain/<DOMAIN>/ss/profile/set
Шаблон http запроса:
http://host:port/commands/ss_domain_profile_set
Код http ответа:
201 – в случае успеха;
200 – в случае ошибки (с указанием ошибки в теле ответа).
Xsd схема XML запроса/ответа:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="error.xsd"/>
<!-- propertyType -->
<xs:complexType name="propertyType">
<xs:attribute name="key" type="xs:string" use="required"/>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
<!-- ssType -->
<xs:complexType name="ssType">
<xs:sequence>
<xs:element name="property" type="propertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="enable" type="xs:boolean" use="required"/>
<xs:attribute name="active" type="xs:boolean" use="required"/>
</xs:complexType>
<!-- setProfileType -->
<xs:complexType name="setProfileType">
<xs:sequence>
<xs:element name="ss" type="ssType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="description" type="xs:string" use="optional"/>
</xs:complexType>
<!-- requestType -->
<xs:complexType name="requestType">
<xs:sequence>
<xs:element name="profile" type="setProfileType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="domain" type="xs:string" use="required"/>
</xs:complexType>
<!-- in -->
<xs:element name="in">
<xs:complexType>
<xs:all>
<xs:element name="request" type="requestType"/>
</xs:all>
</xs:complexType>
</xs:element>
<!-- out -->
<xs:element name="out">
<xs:complexType>
<xs:sequence>
<xs:element name="error" type="errorType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Пример 1
Запрос:
http://192.168.1.21:9999/commands/ss_domain_profile_set
<?xml version="1.0"?>
<in
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_ss_domain_profile_set.xsd">
<request domain="biysk.local">
<profile name="ss_test" description="description 1">
<ss name="chold" enable="true" active="false"/>
<ss name="cfu" enable="false" active="false"/>
<ss name="cfnr" enable="true" active="true">
<property value="5" key="timeout"/>
<property value="235" key="number"/>
</ss>
</profile>
<profile name="min_ss_copy" description="description 2">
<ss name="chold" enable="true" active="false"/>
</profile>
</request>
</in>
Ответ:
201
Пример 2
В случае, если при изменения настроек профиля с именем profile1 произошла ошибка (при этом profile2 успешно изменен):
Запрос: http://192.168.1.21:9999/commands/ss_domain_profile_set
<?xml version="1.0"?>
<in
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="hc_ss_domain_profile_set.xsd">
<request domain="biysk.local">
<profile name="ss_test" description="description 1">
<ss name="chold" enable="true" active="false"/>
<ss name="cfu" enable="false" active="false"/>
<ss name="cfnr" enable="true" active="true">
<property value="5" key="timeout"/>
</ss>
</profile>
<profile name="profile_hold" description="description 2">
<ss name="chold" enable="true" active="false"/>
</profile>
</request>
</in>
Ответ:
200
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_ss_domain_profile_set.xsd">
<error cmd="hc_ss_domain_profile_set" reason="undefined_properties" body="{undefined_properties,[{cfnr,[number]}]}" entity="ss_test"/>
</out>