Hc_tts_domain_options - Управление опцией подсистемы TTS уровня домена
Hc_tts_domain_options_info
Просмотр значений опций TTS уровня домена.
Аналог команды в CoCon:
/domain/<DOMAIN>/tts/properties/info
Метод HTTP-запроса:
POST
Шаблон HTTP-запроса:
http://host:port/commands/tts_domain_options_info
Код HTTP-ответа:
- 200 – в случае успеха;
- 404 – в случае ошибки.
XSD-схема XML-запроса/ответа tts_domain_options_info.xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" id="tts_domain_options_info">
<xs:annotation>
<xs:documentation xml:lang="en">
Show TTS options.
Copyright (c) 2015, Eltex. All rights reserved.
</xs:documentation>
</xs:annotation>
<xs:include schemaLocation="error.xsd" />
<xs:include schemaLocation="ecm_common.xsd" />
<!--cdr_typeType-->
<xs:simpleType name = "cdr_typeType">
<xs:restriction base="xs:string">
<xs:enumeration value="extended"/>
<xs:enumeration value="normal"/>
<xs:enumeration value="manual"/>
</xs:restriction>
</xs:simpleType>
<!--port_sourceType-->
<xs:simpleType name = "port_sourceType">
<xs:restriction base="xs:string">
<xs:enumeration value="iface_name"/>
<xs:enumeration value="iface_id"/>
</xs:restriction>
</xs:simpleType>
<!--cdr_time_roundingType-->
<xs:simpleType name = "cdr_time_roundingType">
<xs:restriction base="xs:string">
<xs:enumeration value="downside"/>
<xs:enumeration value="upside"/>
<xs:enumeration value="downside_with_delta"/>
<xs:enumeration value="upside_with_delta"/>
<xs:enumeration value="mathematically"/>
<xs:enumeration value="millisecond"/>
</xs:restriction>
</xs:simpleType>
<!--cdr_field_delimiterType-->
<xs:simpleType name = "cdr_field_delimiterType">
<xs:restriction base="xs:string">
<xs:enumeration value="tab"/>
<xs:enumeration value="space"/>
<xs:enumeration value="comma"/>
<xs:enumeration value="semicolon"/>
<xs:enumeration value="8"/> <!-- ^H -->
<xs:enumeration value="9"/> <!-- \t -->
<xs:enumeration value="10"/> <!-- \n -->
<xs:enumeration value="11"/> <!-- ^K -->
<xs:enumeration value="12"/> <!-- ^L -->
<xs:enumeration value="32"/> <!-- -->
<xs:enumeration value="33"/> <!-- ! -->
<xs:enumeration value="34"/> <!-- " -->
<xs:enumeration value="35"/> <!-- # -->
<xs:enumeration value="36"/> <!-- $ -->
<xs:enumeration value="37"/> <!-- % -->
<xs:enumeration value="38"/> <!-- & -->
<xs:enumeration value="39"/> <!-- ' -->
<xs:enumeration value="40"/> <!-- ( -->
<xs:enumeration value="41"/> <!-- ) -->
<xs:enumeration value="42"/> <!-- * -->
<xs:enumeration value="43"/> <!-- + -->
<xs:enumeration value="44"/> <!-- , -->
<xs:enumeration value="45"/> <!-- - -->
<xs:enumeration value="46"/> <!-- . -->
<xs:enumeration value="47"/> <!-- / -->
<xs:enumeration value="48"/> <!-- 0 -->
<xs:enumeration value="49"/> <!-- 1 -->
<xs:enumeration value="50"/> <!-- 2 -->
<xs:enumeration value="51"/> <!-- 3 -->
<xs:enumeration value="52"/> <!-- 4 -->
<xs:enumeration value="53"/> <!-- 5 -->
<xs:enumeration value="54"/> <!-- 6 -->
<xs:enumeration value="55"/> <!-- 7 -->
<xs:enumeration value="56"/> <!-- 8 -->
<xs:enumeration value="57"/> <!-- 9 -->
<xs:enumeration value="58"/> <!-- : -->
<xs:enumeration value="59"/> <!-- ; -->
<xs:enumeration value="60"/> <!-- < -->
<xs:enumeration value="61"/> <!-- = -->
<xs:enumeration value="62"/> <!-- > -->
<xs:enumeration value="63"/> <!-- ? -->
<xs:enumeration value="64"/> <!-- @ -->
<xs:enumeration value="65"/> <!-- A -->
<xs:enumeration value="66"/> <!-- B -->
<xs:enumeration value="67"/> <!-- C -->
<xs:enumeration value="68"/> <!-- D -->
<xs:enumeration value="69"/> <!-- E -->
<xs:enumeration value="70"/> <!-- F -->
<xs:enumeration value="71"/> <!-- G -->
<xs:enumeration value="72"/> <!-- H -->
<xs:enumeration value="73"/> <!-- I -->
<xs:enumeration value="74"/> <!-- J -->
<xs:enumeration value="75"/> <!-- K -->
<xs:enumeration value="76"/> <!-- L -->
<xs:enumeration value="77"/> <!-- M -->
<xs:enumeration value="78"/> <!-- N -->
<xs:enumeration value="79"/> <!-- O -->
<xs:enumeration value="80"/> <!-- P -->
<xs:enumeration value="81"/> <!-- Q -->
<xs:enumeration value="82"/> <!-- R -->
<xs:enumeration value="83"/> <!-- S -->
<xs:enumeration value="84"/> <!-- T -->
<xs:enumeration value="85"/> <!-- U -->
<xs:enumeration value="86"/> <!-- V -->
<xs:enumeration value="87"/> <!-- W -->
<xs:enumeration value="88"/> <!-- X -->
<xs:enumeration value="89"/> <!-- Y -->
<xs:enumeration value="90"/> <!-- Z -->
<xs:enumeration value="91"/> <!-- [ -->
<xs:enumeration value="92"/> <!-- \ -->
<xs:enumeration value="93"/> <!-- ] -->
<xs:enumeration value="94"/> <!-- ^ -->
<xs:enumeration value="95"/> <!-- _ -->
<xs:enumeration value="96"/> <!-- ` -->
<xs:enumeration value="97"/> <!-- a -->
<xs:enumeration value="98"/> <!-- b -->
<xs:enumeration value="99"/> <!-- c -->
<xs:enumeration value="100"/> <!-- d -->
<xs:enumeration value="101"/> <!-- e -->
<xs:enumeration value="102"/> <!-- f -->
<xs:enumeration value="103"/> <!-- g -->
<xs:enumeration value="104"/> <!-- h -->
<xs:enumeration value="105"/> <!-- i -->
<xs:enumeration value="106"/> <!-- j -->
<xs:enumeration value="107"/> <!-- k -->
<xs:enumeration value="108"/> <!-- l -->
<xs:enumeration value="109"/> <!-- m -->
<xs:enumeration value="110"/> <!-- n -->
<xs:enumeration value="111"/> <!-- o -->
<xs:enumeration value="112"/> <!-- p -->
<xs:enumeration value="113"/> <!-- q -->
<xs:enumeration value="114"/> <!-- r -->
<xs:enumeration value="115"/> <!-- s -->
<xs:enumeration value="116"/> <!-- t -->
<xs:enumeration value="117"/> <!-- u -->
<xs:enumeration value="118"/> <!-- v -->
<xs:enumeration value="119"/> <!-- w -->
<xs:enumeration value="120"/> <!-- x -->
<xs:enumeration value="121"/> <!-- y -->
<xs:enumeration value="122"/> <!-- z -->
<xs:enumeration value="123"/> <!-- { -->
<xs:enumeration value="124"/> <!-- | -->
<xs:enumeration value="125"/> <!-- } -->
<xs:enumeration value="126"/> <!-- ~ -->
<xs:enumeration value="160"/> <!-- -->
<xs:enumeration value="161"/> <!-- ¡ -->
<xs:enumeration value="162"/> <!-- ¢ -->
<xs:enumeration value="163"/> <!-- £ -->
<xs:enumeration value="164"/> <!-- ¤ -->
<xs:enumeration value="165"/> <!-- ¥ -->
<xs:enumeration value="166"/> <!-- ¦ -->
<xs:enumeration value="167"/> <!-- § -->
<xs:enumeration value="168"/> <!-- ¨ -->
<xs:enumeration value="169"/> <!-- © -->
<xs:enumeration value="170"/> <!-- ª -->
<xs:enumeration value="171"/> <!-- « -->
<xs:enumeration value="172"/> <!-- ¬ -->
<xs:enumeration value="173"/> <!-- -->
<xs:enumeration value="174"/> <!-- ® -->
<xs:enumeration value="175"/> <!-- ¯ -->
<xs:enumeration value="176"/> <!-- ° -->
<xs:enumeration value="177"/> <!-- ± -->
<xs:enumeration value="178"/> <!-- ² -->
<xs:enumeration value="179"/> <!-- ³ -->
<xs:enumeration value="180"/> <!-- ´ -->
<xs:enumeration value="181"/> <!-- µ -->
<xs:enumeration value="182"/> <!-- ¶ -->
<xs:enumeration value="183"/> <!-- · -->
<xs:enumeration value="184"/> <!-- ¸ -->
<xs:enumeration value="185"/> <!-- ¹ -->
<xs:enumeration value="186"/> <!-- º -->
<xs:enumeration value="187"/> <!-- » -->
<xs:enumeration value="188"/> <!-- ¼ -->
<xs:enumeration value="189"/> <!-- ½ -->
<xs:enumeration value="190"/> <!-- ¾ -->
<xs:enumeration value="191"/> <!-- ¿ -->
<xs:enumeration value="192"/> <!-- À -->
<xs:enumeration value="193"/> <!-- Á -->
<xs:enumeration value="194"/> <!-- Â -->
<xs:enumeration value="195"/> <!-- Ã -->
<xs:enumeration value="196"/> <!-- Ä -->
<xs:enumeration value="197"/> <!-- Å -->
<xs:enumeration value="198"/> <!-- Æ -->
<xs:enumeration value="199"/> <!-- Ç -->
<xs:enumeration value="200"/> <!-- È -->
<xs:enumeration value="201"/> <!-- É -->
<xs:enumeration value="202"/> <!-- Ê -->
<xs:enumeration value="203"/> <!-- Ë -->
<xs:enumeration value="204"/> <!-- Ì -->
<xs:enumeration value="205"/> <!-- Í -->
<xs:enumeration value="206"/> <!-- Î -->
<xs:enumeration value="207"/> <!-- Ï -->
<xs:enumeration value="208"/> <!-- Ð -->
<xs:enumeration value="209"/> <!-- Ñ -->
<xs:enumeration value="210"/> <!-- Ò -->
<xs:enumeration value="211"/> <!-- Ó -->
<xs:enumeration value="212"/> <!-- Ô -->
<xs:enumeration value="213"/> <!-- Õ -->
<xs:enumeration value="214"/> <!-- Ö -->
<xs:enumeration value="215"/> <!-- × -->
<xs:enumeration value="216"/> <!-- Ø -->
<xs:enumeration value="217"/> <!-- Ù -->
<xs:enumeration value="218"/> <!-- Ú -->
<xs:enumeration value="219"/> <!-- Û -->
<xs:enumeration value="220"/> <!-- Ü -->
<xs:enumeration value="221"/> <!-- Ý -->
<xs:enumeration value="222"/> <!-- Þ -->
<xs:enumeration value="223"/> <!-- ß -->
<xs:enumeration value="224"/> <!-- à -->
<xs:enumeration value="225"/> <!-- á -->
<xs:enumeration value="226"/> <!-- â -->
<xs:enumeration value="227"/> <!-- ã -->
<xs:enumeration value="228"/> <!-- ä -->
<xs:enumeration value="229"/> <!-- å -->
<xs:enumeration value="230"/> <!-- æ -->
<xs:enumeration value="231"/> <!-- ç -->
<xs:enumeration value="232"/> <!-- è -->
<xs:enumeration value="233"/> <!-- é -->
<xs:enumeration value="234"/> <!-- ê -->
<xs:enumeration value="235"/> <!-- ë -->
<xs:enumeration value="236"/> <!-- ì -->
<xs:enumeration value="237"/> <!-- í -->
<xs:enumeration value="238"/> <!-- î -->
<xs:enumeration value="239"/> <!-- ï -->
<xs:enumeration value="240"/> <!-- ð -->
<xs:enumeration value="241"/> <!-- ñ -->
<xs:enumeration value="242"/> <!-- ò -->
<xs:enumeration value="243"/> <!-- ó -->
<xs:enumeration value="244"/> <!-- ô -->
<xs:enumeration value="245"/> <!-- õ -->
<xs:enumeration value="246"/> <!-- ö -->
<xs:enumeration value="247"/> <!-- ÷ -->
<xs:enumeration value="248"/> <!-- ø -->
<xs:enumeration value="249"/> <!-- ù -->
<xs:enumeration value="250"/> <!-- ú -->
<xs:enumeration value="251"/> <!-- û -->
<xs:enumeration value="252"/> <!-- ü -->
<xs:enumeration value="253"/> <!-- ý -->
<xs:enumeration value="254"/> <!-- þ -->
<xs:enumeration value="255"/> <!-- ÿ -->
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ttsOptionsType">
<xs:complexContent>
<xs:extension base="baseOptionsType">
<xs:attribute name="adaptation" type="xs:string" use="optional"/>
<xs:attribute name="autoclean_enabled" type="xs:boolean" use="optional"/>
<xs:attribute name="autoclean_start_at" type="xs:string" use="optional"/>
<xs:attribute name="enabled" type="xs:boolean" use="optional"/>
<xs:attribute name="sign_cdr_enabled" type="xs:boolean" use="optional"/>
<xs:attribute name="actual_calls_enabled" type="xs:boolean" use="optional"/>
<xs:attribute name="actual_calls_archive_size" type="xs:integer" use="optional"/>
<xs:attribute name="cdr_generation_enabled" type="xs:boolean" use="optional"/>
<xs:attribute name="cdr_type" type="cdr_typeType" use="optional"/>
<xs:attribute name="port_source" type="port_sourceType" use="optional"/>
<xs:attribute name="cdr_time_rounding" type="cdr_time_roundingType" use="optional"/>
<xs:attribute name="cdr_field_delimiter" type="cdr_field_delimiterType" use="optional"/>
<xs:attribute name="manual_cdr_columns" type="xs:string" use="optional"/>
<xs:attribute name="cdr_columns_name" type="xs:string" use="optional"/> <!--Key:Value, Key2:Value2-->
<xs:attribute name="partial_cdr_timeout" type="xs:integer" use="optional"/>
<xs:attribute name="purge_older_than" type="xs:string" 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>
Запрос:
http://192.168.1.21:9999/commands/tts_domain_options_info
<?xml version="1.0" encoding="UTF-8"?>
<in
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="tts_domain_options_info.xsd">
<request>
<domain_options domain="biysk.local" />
</request>
</in>
Ответ:
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="tts_domain_options_info.xsd">
<result>
<domain_options>
<system>
<options xs:type="ttsOptionsType"/>
</system>
<domain name="biysk.local">
<options xs:type="ttsOptionsType" sign_cdr_enabled="false" purge_older_than="2 month" port_source="iface_name" partial_cdr_timeout="300" manual_cdr_columns="type,datetime,kod_a,kod_b,nai_a,nai_b,n_tr_gr_a,n_tr_gr_b,t_ecd,t_dba,cause_isup,cause_int,completind,origin_dig,dialed_dig,actsusb,categ_a,place,rec_seq,servuser,servindic,treatment,conn_id,redirected,redirection,orig_called,src_ip,dst_ip,port_a,port_b,diagnostic,signal_src_ip,signal_dst_ip,signal_src_port,signal_dst_port,call_record_a,call_record_b" enabled="true" cdr_type="extended" cdr_time_rounding="downside" cdr_generation_enabled="true" cdr_field_delimiter="semicolon" cdr_columns_name="" autoclean_start_at="every 1 day at 00:00" autoclean_enabled="true" adaptation="undefined" actual_calls_enabled="true" actual_calls_archive_size="1000"/>
</domain>
</domain_options>
</result>
</out>
Hc_tts_domain_options_set
Установка значений свойств TTS на уровне домена.
Аналог команды в CoCon:
/domain/<DOMAIN>/tts/properties/set
Метод HTTP-запроса:
POST
Шаблон HTTP-запроса:
http://host:port/commands/tts_domain_options_set
Код HTTP-ответа:
- 200 – в случае успеха;
- 404 – в случае ошибки.
XSD-схема XML-запроса/ответа tts_domain_options_set.xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" id="tts_domain_options_set">
<xs:annotation>
<xs:documentation xml:lang="en">
Change TTS domain options.
Copyright (c) 2015, Eltex. All rights reserved.
</xs:documentation>
</xs:annotation>
<xs:include schemaLocation="error.xsd" />
<xs:include schemaLocation="ecm_common.xsd" />
<!--cdr_typeType-->
<xs:simpleType name = "cdr_typeType">
<xs:restriction base="xs:string">
<xs:enumeration value="extended"/>
<xs:enumeration value="normal"/>
<xs:enumeration value="manual"/>
</xs:restriction>
</xs:simpleType>
<!--port_sourceType-->
<xs:simpleType name = "port_sourceType">
<xs:restriction base="xs:string">
<xs:enumeration value="iface_name"/>
<xs:enumeration value="iface_id"/>
</xs:restriction>
</xs:simpleType>
<!--cdr_time_roundingType-->
<xs:simpleType name = "cdr_time_roundingType">
<xs:restriction base="xs:string">
<xs:enumeration value="downside"/>
<xs:enumeration value="upside"/>
<xs:enumeration value="downside_with_delta"/>
<xs:enumeration value="upside_with_delta"/>
<xs:enumeration value="mathematically"/>
<xs:enumeration value="millisecond"/>
</xs:restriction>
</xs:simpleType>
<!--cdr_field_delimiterType-->
<xs:simpleType name = "cdr_field_delimiterType">
<xs:restriction base="xs:string">
<xs:enumeration value="tab"/>
<xs:enumeration value="space"/>
<xs:enumeration value="comma"/>
<xs:enumeration value="semicolon"/>
<xs:enumeration value="8"/> <!-- ^H -->
<xs:enumeration value="9"/> <!-- \t -->
<xs:enumeration value="10"/> <!-- \n -->
<xs:enumeration value="11"/> <!-- ^K -->
<xs:enumeration value="12"/> <!-- ^L -->
<xs:enumeration value="32"/> <!-- -->
<xs:enumeration value="33"/> <!-- ! -->
<xs:enumeration value="34"/> <!-- " -->
<xs:enumeration value="35"/> <!-- # -->
<xs:enumeration value="36"/> <!-- $ -->
<xs:enumeration value="37"/> <!-- % -->
<xs:enumeration value="38"/> <!-- & -->
<xs:enumeration value="39"/> <!-- ' -->
<xs:enumeration value="40"/> <!-- ( -->
<xs:enumeration value="41"/> <!-- ) -->
<xs:enumeration value="42"/> <!-- * -->
<xs:enumeration value="43"/> <!-- + -->
<xs:enumeration value="44"/> <!-- , -->
<xs:enumeration value="45"/> <!-- - -->
<xs:enumeration value="46"/> <!-- . -->
<xs:enumeration value="47"/> <!-- / -->
<xs:enumeration value="48"/> <!-- 0 -->
<xs:enumeration value="49"/> <!-- 1 -->
<xs:enumeration value="50"/> <!-- 2 -->
<xs:enumeration value="51"/> <!-- 3 -->
<xs:enumeration value="52"/> <!-- 4 -->
<xs:enumeration value="53"/> <!-- 5 -->
<xs:enumeration value="54"/> <!-- 6 -->
<xs:enumeration value="55"/> <!-- 7 -->
<xs:enumeration value="56"/> <!-- 8 -->
<xs:enumeration value="57"/> <!-- 9 -->
<xs:enumeration value="58"/> <!-- : -->
<xs:enumeration value="59"/> <!-- ; -->
<xs:enumeration value="60"/> <!-- < -->
<xs:enumeration value="61"/> <!-- = -->
<xs:enumeration value="62"/> <!-- > -->
<xs:enumeration value="63"/> <!-- ? -->
<xs:enumeration value="64"/> <!-- @ -->
<xs:enumeration value="65"/> <!-- A -->
<xs:enumeration value="66"/> <!-- B -->
<xs:enumeration value="67"/> <!-- C -->
<xs:enumeration value="68"/> <!-- D -->
<xs:enumeration value="69"/> <!-- E -->
<xs:enumeration value="70"/> <!-- F -->
<xs:enumeration value="71"/> <!-- G -->
<xs:enumeration value="72"/> <!-- H -->
<xs:enumeration value="73"/> <!-- I -->
<xs:enumeration value="74"/> <!-- J -->
<xs:enumeration value="75"/> <!-- K -->
<xs:enumeration value="76"/> <!-- L -->
<xs:enumeration value="77"/> <!-- M -->
<xs:enumeration value="78"/> <!-- N -->
<xs:enumeration value="79"/> <!-- O -->
<xs:enumeration value="80"/> <!-- P -->
<xs:enumeration value="81"/> <!-- Q -->
<xs:enumeration value="82"/> <!-- R -->
<xs:enumeration value="83"/> <!-- S -->
<xs:enumeration value="84"/> <!-- T -->
<xs:enumeration value="85"/> <!-- U -->
<xs:enumeration value="86"/> <!-- V -->
<xs:enumeration value="87"/> <!-- W -->
<xs:enumeration value="88"/> <!-- X -->
<xs:enumeration value="89"/> <!-- Y -->
<xs:enumeration value="90"/> <!-- Z -->
<xs:enumeration value="91"/> <!-- [ -->
<xs:enumeration value="92"/> <!-- \ -->
<xs:enumeration value="93"/> <!-- ] -->
<xs:enumeration value="94"/> <!-- ^ -->
<xs:enumeration value="95"/> <!-- _ -->
<xs:enumeration value="96"/> <!-- ` -->
<xs:enumeration value="97"/> <!-- a -->
<xs:enumeration value="98"/> <!-- b -->
<xs:enumeration value="99"/> <!-- c -->
<xs:enumeration value="100"/> <!-- d -->
<xs:enumeration value="101"/> <!-- e -->
<xs:enumeration value="102"/> <!-- f -->
<xs:enumeration value="103"/> <!-- g -->
<xs:enumeration value="104"/> <!-- h -->
<xs:enumeration value="105"/> <!-- i -->
<xs:enumeration value="106"/> <!-- j -->
<xs:enumeration value="107"/> <!-- k -->
<xs:enumeration value="108"/> <!-- l -->
<xs:enumeration value="109"/> <!-- m -->
<xs:enumeration value="110"/> <!-- n -->
<xs:enumeration value="111"/> <!-- o -->
<xs:enumeration value="112"/> <!-- p -->
<xs:enumeration value="113"/> <!-- q -->
<xs:enumeration value="114"/> <!-- r -->
<xs:enumeration value="115"/> <!-- s -->
<xs:enumeration value="116"/> <!-- t -->
<xs:enumeration value="117"/> <!-- u -->
<xs:enumeration value="118"/> <!-- v -->
<xs:enumeration value="119"/> <!-- w -->
<xs:enumeration value="120"/> <!-- x -->
<xs:enumeration value="121"/> <!-- y -->
<xs:enumeration value="122"/> <!-- z -->
<xs:enumeration value="123"/> <!-- { -->
<xs:enumeration value="124"/> <!-- | -->
<xs:enumeration value="125"/> <!-- } -->
<xs:enumeration value="126"/> <!-- ~ -->
<xs:enumeration value="160"/> <!-- -->
<xs:enumeration value="161"/> <!-- ¡ -->
<xs:enumeration value="162"/> <!-- ¢ -->
<xs:enumeration value="163"/> <!-- £ -->
<xs:enumeration value="164"/> <!-- ¤ -->
<xs:enumeration value="165"/> <!-- ¥ -->
<xs:enumeration value="166"/> <!-- ¦ -->
<xs:enumeration value="167"/> <!-- § -->
<xs:enumeration value="168"/> <!-- ¨ -->
<xs:enumeration value="169"/> <!-- © -->
<xs:enumeration value="170"/> <!-- ª -->
<xs:enumeration value="171"/> <!-- « -->
<xs:enumeration value="172"/> <!-- ¬ -->
<xs:enumeration value="173"/> <!-- -->
<xs:enumeration value="174"/> <!-- ® -->
<xs:enumeration value="175"/> <!-- ¯ -->
<xs:enumeration value="176"/> <!-- ° -->
<xs:enumeration value="177"/> <!-- ± -->
<xs:enumeration value="178"/> <!-- ² -->
<xs:enumeration value="179"/> <!-- ³ -->
<xs:enumeration value="180"/> <!-- ´ -->
<xs:enumeration value="181"/> <!-- µ -->
<xs:enumeration value="182"/> <!-- ¶ -->
<xs:enumeration value="183"/> <!-- · -->
<xs:enumeration value="184"/> <!-- ¸ -->
<xs:enumeration value="185"/> <!-- ¹ -->
<xs:enumeration value="186"/> <!-- º -->
<xs:enumeration value="187"/> <!-- » -->
<xs:enumeration value="188"/> <!-- ¼ -->
<xs:enumeration value="189"/> <!-- ½ -->
<xs:enumeration value="190"/> <!-- ¾ -->
<xs:enumeration value="191"/> <!-- ¿ -->
<xs:enumeration value="192"/> <!-- À -->
<xs:enumeration value="193"/> <!-- Á -->
<xs:enumeration value="194"/> <!-- Â -->
<xs:enumeration value="195"/> <!-- Ã -->
<xs:enumeration value="196"/> <!-- Ä -->
<xs:enumeration value="197"/> <!-- Å -->
<xs:enumeration value="198"/> <!-- Æ -->
<xs:enumeration value="199"/> <!-- Ç -->
<xs:enumeration value="200"/> <!-- È -->
<xs:enumeration value="201"/> <!-- É -->
<xs:enumeration value="202"/> <!-- Ê -->
<xs:enumeration value="203"/> <!-- Ë -->
<xs:enumeration value="204"/> <!-- Ì -->
<xs:enumeration value="205"/> <!-- Í -->
<xs:enumeration value="206"/> <!-- Î -->
<xs:enumeration value="207"/> <!-- Ï -->
<xs:enumeration value="208"/> <!-- Ð -->
<xs:enumeration value="209"/> <!-- Ñ -->
<xs:enumeration value="210"/> <!-- Ò -->
<xs:enumeration value="211"/> <!-- Ó -->
<xs:enumeration value="212"/> <!-- Ô -->
<xs:enumeration value="213"/> <!-- Õ -->
<xs:enumeration value="214"/> <!-- Ö -->
<xs:enumeration value="215"/> <!-- × -->
<xs:enumeration value="216"/> <!-- Ø -->
<xs:enumeration value="217"/> <!-- Ù -->
<xs:enumeration value="218"/> <!-- Ú -->
<xs:enumeration value="219"/> <!-- Û -->
<xs:enumeration value="220"/> <!-- Ü -->
<xs:enumeration value="221"/> <!-- Ý -->
<xs:enumeration value="222"/> <!-- Þ -->
<xs:enumeration value="223"/> <!-- ß -->
<xs:enumeration value="224"/> <!-- à -->
<xs:enumeration value="225"/> <!-- á -->
<xs:enumeration value="226"/> <!-- â -->
<xs:enumeration value="227"/> <!-- ã -->
<xs:enumeration value="228"/> <!-- ä -->
<xs:enumeration value="229"/> <!-- å -->
<xs:enumeration value="230"/> <!-- æ -->
<xs:enumeration value="231"/> <!-- ç -->
<xs:enumeration value="232"/> <!-- è -->
<xs:enumeration value="233"/> <!-- é -->
<xs:enumeration value="234"/> <!-- ê -->
<xs:enumeration value="235"/> <!-- ë -->
<xs:enumeration value="236"/> <!-- ì -->
<xs:enumeration value="237"/> <!-- í -->
<xs:enumeration value="238"/> <!-- î -->
<xs:enumeration value="239"/> <!-- ï -->
<xs:enumeration value="240"/> <!-- ð -->
<xs:enumeration value="241"/> <!-- ñ -->
<xs:enumeration value="242"/> <!-- ò -->
<xs:enumeration value="243"/> <!-- ó -->
<xs:enumeration value="244"/> <!-- ô -->
<xs:enumeration value="245"/> <!-- õ -->
<xs:enumeration value="246"/> <!-- ö -->
<xs:enumeration value="247"/> <!-- ÷ -->
<xs:enumeration value="248"/> <!-- ø -->
<xs:enumeration value="249"/> <!-- ù -->
<xs:enumeration value="250"/> <!-- ú -->
<xs:enumeration value="251"/> <!-- û -->
<xs:enumeration value="252"/> <!-- ü -->
<xs:enumeration value="253"/> <!-- ý -->
<xs:enumeration value="254"/> <!-- þ -->
<xs:enumeration value="255"/> <!-- ÿ -->
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ttsOptionsType">
<xs:complexContent>
<xs:extension base="baseOptionsType">
<xs:attribute name="autoclean_enabled" type="xs:boolean" use="optional"/>
<xs:attribute name="autoclean_start_at" type="xs:string" use="optional"/>
<xs:attribute name="adaptation" type="xs:string" use="optional"/>
<xs:attribute name="enabled" type="xs:boolean" use="optional"/>
<xs:attribute name="sign_cdr_enabled" type="xs:boolean" use="optional"/>
<xs:attribute name="actual_calls_enabled" type="xs:boolean" use="optional"/>
<xs:attribute name="actual_calls_archive_size" type="xs:integer" use="optional"/>
<xs:attribute name="cdr_generation_enabled" type="xs:boolean" use="optional"/>
<xs:attribute name="manual_cdr_columns" type="xs:string" use="optional"/>
<xs:attribute name="cdr_columns_name" type="xs:string" use="optional"/><!--Key:Value,Key2:Value2-->
<xs:attribute name="cdr_type" type="cdr_typeType" use="optional"/>
<xs:attribute name="port_source" type="port_sourceType" use="optional"/>
<xs:attribute name="cdr_time_rounding" type="cdr_time_roundingType" use="optional"/>
<xs:attribute name="cdr_field_delimiter" type="cdr_field_delimiterType" use="optional"/>
<xs:attribute name="partial_cdr_timeout" type="xs:integer" use="optional"/>
<xs:attribute name="purge_older_than" type="xs:string" 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>
Пример:
Запрос:
http://192.168.1.21:9999/commands/tts_domain_options_set
<in
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="tts_domain_options_set.xsd">
<request>
<domain_options>
<system>
<options xs:type="ttsOptionsType"/>
</system>
<domain name="biysk.local">
<options xs:type="ttsOptionsType" purge_older_than="4 month" partial_cdr_timeout="600" sign_cdr_enabled="false" />
</domain>
</domain_options>
</request>
</in>
Ответ:
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="tts_domain_options_set.xsd">
<result>
<domain_options>
<system/>
<domain name="biysk.local">
<success option="partial_cdr_timeout"/>
<success option="purge_older_than"/>
<success option="sign_cdr_enabled"/>
</domain>
</domain_options>
</result>
</out>
Hc_tts_domain_options_clean
Сброс значений свойств TTS уровня домена в значения по умолчанию.
Аналог команды в CoCon:
/domain/<DOMAIN>/tts/properties/clean
Метод HTTP-запроса:
POST
Шаблон HTTP-запроса:
http://host:port/commands/tts_domain_options_clean
Код HTTP-ответа:
- 200 – в случае успеха;
- 404 – в случае ошибки.
XSD-схема XML-запроса/ответа tts_domain_options_clean.xsd :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" id="tts_domain_options_clean">
<xs:annotation>
<xs:documentation xml:lang="en">
Reset TTS domain options to defaults.
Usage: http://server:9999/commands/tts_domain_options_clean
Copyright (c) 2015, Eltex. All rights reserved.
</xs:documentation>
</xs:annotation>
<xs:include schemaLocation="error.xsd" />
<xs:include schemaLocation="ecm_common.xsd" />
<!-- in -->
<xs:element name="in">
<xs:complexType>
<xs:all minOccurs="1" maxOccurs="1">
<xs:element name="request" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:all minOccurs="1" maxOccurs="1">
<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" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:all minOccurs="1" maxOccurs="1">
<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>
Пример:
Запрос:
http://192.168.1.21:9999/commands/tts_domain_options_clean
<?xml version="1.0" encoding="UTF-8"?>
<in
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="tts_domain_options_clean.xsd">
<request>
<domain_options>
<system/>
<domain name="biysk.local">
<option name="purge_older_than"/>
</domain>
</domain_options>
</request>
</in>
Ответ: 200
<?xml version="1.0"?>
<out
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="tts_domain_options_clean.xsd">
<result>
<domain_options>
<system/>
<domain name="biysk.local">
<success option="purge_older_than"/>
</domain>
</domain_options>
</result>
</out>