Hc_ss_preset_packages_info

Команда позволяет вывести список ДВО с указанием их уровня.

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

Нет

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

POST

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

http://host:port/commands/ss_preset_packages_info

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

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

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

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xs:complexType name="presetPackageType">
		<xs:attribute name="level" type="xs:integer"/>
		<xs:attribute name="ss_list" type="xs:string"/>
	</xs:complexType>

	<xs:complexType name="resultType">
		<xs:sequence>
			<xs:element name="preset_package" type="presetPackageType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

	<!-- in-->
	<xs:element name="in">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="request"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<!-- out -->
	<xs:element name="out">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="result" type="resultType"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>

Пример

Запрос: http://192.168.1.21:9999/commands/ss_preset_packages_info

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss_preset_packages_info.xsd">
    <request />
</in>


Ответ: 200

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="ss_preset_packages_info.xsd">
	<result>
		<preset_package level="1" ss_list="cfb,cfnr,cfos,cfu,clip,cnip,chold,ctr,cw,direct_call,mcid,cc_agent,teleconference,teleconference_manager,tsmn_request,qsig_cfb,qsig_cfnr,qsig_cfu"/>
		<preset_package level="2" ss_list="3way,clir,cliro,dnd,pickup,redial,cfnr_type2,cfu_type2,ml"/>
		<preset_package level="3" ss_list="acb,alarm,auto_redial,auto_redial_with_callback,callback,cf_sip,conference,fbc,hide_cf_name,meet_me_conference,rbp,rfc,ring_back_tone,sca,sco_black,sco_white,scr,speed_dial,voicemail,vip_call,cf_aon"/>
		<preset_package level="4" ss_list="call_recording,blf,cft,cgg,chunt,click_to_call,fax_receiver,fax_to_email,find_me,find_me_no_response,follow_me,follow_me_no_response,intercom,park,presence,second_handset,sip_message"/>
		<preset_package level="5" ss_list="avatar,assistant,boss_group,cpip,distinctive_picture,distinctive_ring,flexicall,fxo_trunk,intervention,introduce,message,multicast_listen,multicast_page,personal_ivr,privacy,remote_phone,remote_ring,smart_cancel,voice_page,voice_page_control,walkie_talkie,zone_page"/>
	</result>
</out>