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

Hc_core_ai_clean

Команда для очистки свойств автоответчика.

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

domain/<DOMAIN>/core/ai/clean

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

http://host:port/commands/core_ai_clean

Коды ответа:

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

XML-схема:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" id="core_ai_clean">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Clean Core domain properties (auto-informers).
            Copyright (c) 2015, Eltex. All rights reserved.
        </xs:documentation>
    </xs:annotation>
    <xs:include schemaLocation="error.xsd"/>
    <xs:include schemaLocation="ecm_common.xsd"/>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainCleanOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainCleanInType"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType"/>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>

Пример:

Запрос:

http://192.168.1.21:9999/commands/core_ai_clean

<?xml version="1.0"?>
<in
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_ai_clean.xsd">
    <request>
        <domain_options>
            <system />
            <domain name="biysk.local">
                <option name="cc_agent_already_on"/>
                <option name="wait_time"/>
                <option name="number_not_found"/>
            </domain>
        </domain_options>
    </request>
</in>

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_ai_clean.xsd">
    <result>
        <domain_options>
            <system/>
            <domain name="biysk.local">
                <success option="cc_agent_already_on"/>
                <success option="number_not_found"/>
                <success option="wait_time"/>
            </domain>
        </domain_options>
    </result>
</out>

Hc_core_ai_info

Команда для получения информации об автоответчиках.

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

domain/<DOMAIN>/core/ai/info

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

http://host:port/commands/core_ai_info

Коды ответа:

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

XML-схема:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
    xmlns:xs="http://www.w3.org/2001/XMLSchema" id="core_ai_info">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Show Core domain properties (auto-informers).
            Copyright (c) 2015, Eltex. All rights reserved.
            Tone id format:
                tone://?f2=425&amp;off_msec=4000&amp;on_msec=1000&amp;f1=0
                system://PATH/FILE.wav
                domain://PATH/FILE.wav
        </xs:documentation>
    </xs:annotation>
    <xs:include schemaLocation="error.xsd" />
    <xs:include schemaLocation="ecm_common.xsd" />
    <xs:complexType name="coreAIOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="beep" type="xs:string" use="optional" />
                <xs:attribute name="alerting" type="xs:string" use="optional" />
                <xs:attribute name="busy" type="xs:string" use="optional" />
                <xs:attribute name="error" type="xs:string" use="optional" />
                <xs:attribute name="alarm_one_digit" type="xs:string" use="optional" />
                <xs:attribute name="alarm_multi_digits" type="xs:string" use="optional" />
                <xs:attribute name="wait_connection" type="xs:string" use="optional" />
                <xs:attribute name="wait_time" type="xs:string" use="optional" />
                <xs:attribute name="number_not_found" type="xs:string" use="optional" />
                <xs:attribute name="number_not_detected" type="xs:string" use="optional" />
                <xs:attribute name="last_incoming_number" type="xs:string" use="optional" />
                <xs:attribute name="my_number" type="xs:string" use="optional" />
                <xs:attribute name="ss_activated" type="xs:string" use="optional" />
                <xs:attribute name="autoredial_with_cb_activated" type="xs:string" use="optional" />
                <xs:attribute name="ss_changed" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivated" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivated_all" type="xs:string" use="optional" />
                <xs:attribute name="ss_activate_error" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivate_error" type="xs:string" use="optional" />
                <xs:attribute name="ss_test_error" type="xs:string" use="optional" />
                <xs:attribute name="pin_incorrect" type="xs:string" use="optional" />
                <xs:attribute name="enter_pin" type="xs:string" use="optional" />
                <xs:attribute name="enter_number_sharp" type="xs:string" use="optional" />
                <xs:attribute name="enter_pin_number_sharp" type="xs:string" use="optional" />
                <xs:attribute name="to_turn_on" type="xs:string" use="optional" />
                <xs:attribute name="to_turn_off" type="xs:string" use="optional" />
                <xs:attribute name="cc_auth_incorrect" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_already_on" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_number_occupied" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_login_ok" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_logged_out" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_busy" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_auxwork" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_auxwork_planned" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_make_available" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_conversations_completed" type="xs:string" use="optional" />
                <xs:attribute name="ms_ringback" type="xs:string" use="optional" />
                <xs:attribute name="ms_music_on_hold" type="xs:string" use="optional" />
                <xs:attribute name="ms_call_waiting" type="xs:string" use="optional" />
                <xs:attribute name="ms_call_waiting_ringback" type="xs:string" use="optional" />
                <xs:attribute name="ms_busy" type="xs:string" use="optional" />
                <xs:attribute name="ms_one_hold_busy" type="xs:string" use="optional" />
                <xs:attribute name="ms_two_hold_busy" type="xs:string" use="optional" />
                <xs:attribute name="ms_one_hold_collect" type="xs:string" use="optional" />
                <xs:attribute name="ms_two_hold_collect" type="xs:string" use="optional" />
                <xs:attribute name="zero" type="xs:string" use="optional" />
                <xs:attribute name="one" type="xs:string" use="optional" />
                <xs:attribute name="one_n" type="xs:string" use="optional" />
                <xs:attribute name="one_et" type="xs:string" use="optional" />
                <xs:attribute name="two" type="xs:string" use="optional" />
                <xs:attribute name="two_et" type="xs:string" use="optional" />
                <xs:attribute name="three" type="xs:string" use="optional" />
                <xs:attribute name="four" type="xs:string" use="optional" />
                <xs:attribute name="five" type="xs:string" use="optional" />
                <xs:attribute name="six" type="xs:string" use="optional" />
                <xs:attribute name="seven" type="xs:string" use="optional" />
                <xs:attribute name="eight" type="xs:string" use="optional" />
                <xs:attribute name="nine" type="xs:string" use="optional" />
                <xs:attribute name="star" type="xs:string" use="optional" />
                <xs:attribute name="star1" type="xs:string" use="optional" />
                <xs:attribute name="sharp" type="xs:string" use="optional" />
                <xs:attribute name="sharp1" type="xs:string" use="optional" />
                <xs:attribute name="push_sharp" type="xs:string" use="optional" />
                <xs:attribute name="push_star" type="xs:string" use="optional" />
                <xs:attribute name="push_zero" type="xs:string" use="optional" />
                <xs:attribute name="push_one" type="xs:string" use="optional" />
                <xs:attribute name="push_two" type="xs:string" use="optional" />
                <xs:attribute name="push_three" type="xs:string" use="optional" />
                <xs:attribute name="push_four" type="xs:string" use="optional" />
                <xs:attribute name="push_five" type="xs:string" use="optional" />
                <xs:attribute name="push_six" type="xs:string" use="optional" />
                <xs:attribute name="push_seven" type="xs:string" use="optional" />
                <xs:attribute name="push_eight" type="xs:string" use="optional" />
                <xs:attribute name="push_nine" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_prompt" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_mailbox_empty" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_you_have" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_new_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_new_messages1" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_new_messages2" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_old_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_old_messages1" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_old_messages2" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_saved_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_saved_messages1" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_saved_messages2" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_new_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_old_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_save_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_remove_new_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_remove_old_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_remove_save_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_confirm_remove_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_decline_remove_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_no_more_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_play_file_delimiter" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_messages_successfully_removed" type="xs:string" use="optional" />
                <xs:attribute name="for_listen_next_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_play_back_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_play_forward_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_replay_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_remove_current_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_save_current_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_current_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_message_saved" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_call_to_sender" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_pause_resume_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_play_message_details" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_ai_skip_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_help" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_go_back" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_exit" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_message_from_number" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_enter_password" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_enter_number_sharp" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_try_once_more" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_password_incorrect" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_message_successfully_removed" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_ss_unavailable" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_number_absent" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_service_settings" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_write_conditions" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_common_settings" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_mgm_intro" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_password" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_send_by_email" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_play_details" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_enter_current_password" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_enter_new_password" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_reenter_new_password" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_passwords_different" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_password_successfully_changed" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_property_changed" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_write_by_no_reply" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_write_by_busy" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_write_by_out_of_service" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_write_by_unconditional" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_remove_user_intro" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_write_user_intro" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_say_message_after_beep" type="xs:string" use="optional" />
                <xs:attribute name="monday" type="xs:string" use="optional" />
                <xs:attribute name="tuesday" type="xs:string" use="optional" />
                <xs:attribute name="wednesday" type="xs:string" use="optional" />
                <xs:attribute name="wednesday2" type="xs:string" use="optional" />
                <xs:attribute name="thursday" type="xs:string" use="optional" />
                <xs:attribute name="friday" type="xs:string" use="optional" />
                <xs:attribute name="friday2" type="xs:string" use="optional" />
                <xs:attribute name="saturday" type="xs:string" use="optional" />
                <xs:attribute name="saturday2" type="xs:string" use="optional" />
                <xs:attribute name="sunday" type="xs:string" use="optional" />
                <xs:attribute name="alarm_on" type="xs:string" use="optional" />
                <xs:attribute name="alarm_off" type="xs:string" use="optional" />
                <xs:attribute name="alarm_today_off" type="xs:string" use="optional" />
                <xs:attribute name="nearest1" type="xs:string" use="optional" />
                <xs:attribute name="nearest2" type="xs:string" use="optional" />
                <xs:attribute name="nearest3" type="xs:string" use="optional" />
                <xs:attribute name="nearest4" type="xs:string" use="optional" />
                <xs:attribute name="every1" type="xs:string" use="optional" />
                <xs:attribute name="every2" type="xs:string" use="optional" />
                <xs:attribute name="every3" type="xs:string" use="optional" />
                <xs:attribute name="every4" type="xs:string" use="optional" />
                <xs:attribute name="call_forwarding" type="xs:string" use="optional" />
                <xs:attribute name="from" type="xs:string" use="optional" />
                <xs:attribute name="untill" type="xs:string" use="optional" />
                <xs:attribute name="activated" type="xs:string" use="optional" />
                <xs:attribute name="second1" type="xs:string" use="optional" />
                <xs:attribute name="second2" type="xs:string" use="optional" />
                <xs:attribute name="second3" type="xs:string" use="optional" />
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainInfoOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainInfoInType" minOccurs="1"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType"/>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>

Пример:

Запрос значений всех доступных свойств:

http://192.168.1.21:9999/commands/core_ai_info

<?xml version="1.0" encoding="UTF-8"?>
<in
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_ai_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="core_ai_info.xsd">
    <result>
        <domain_options>
            <system>
                <options xs:type="coreAIOptionsType"/>
            </system>
            <domain name="biysk.local">
                <options xs:type="coreAIOptionsType" zero="system://sounds/numbers/0.wav" wednesday2="system://sounds/dow/ai_wednesday2.wav" wednesday="system://sounds/dow/wednesday.wav" wait_time="system://sounds/ai_wait_time.wav" wait_connection="system://sounds/ai_wait_connection.wav" voicemail_you_have="system://sounds/voicemail/ai_you_have.wav" voicemail_write_user_intro="system://sounds/voicemail/ai_voicemail_write_user_intro.wav" voicemail_try_once_more="system://sounds/voicemail/ai_try_once_more.wav" voicemail_ss_unavailable="system://sounds/voicemail/ai_ss_unavailable.wav" voicemail_say_message_after_beep="system://sounds/voicemail/ai_say_message_after_beep.wav" voicemail_saved_messages2="system://sounds/voicemail/ai_saved_messages_2.wav" voicemail_saved_messages1="system://sounds/voicemail/ai_saved_messages_1.wav" voicemail_saved_message="system://sounds/voicemail/ai_saved_message.wav" voicemail_save_current_message="system://sounds/voicemail/ai_save_current_message.wav" voicemail_replay_message="system://sounds/voicemail/ai_replay_message.wav" voicemail_remove_user_intro="system://sounds/voicemail/ai_voicemail_remove_user_intro.wav" voicemail_remove_save_messages="system://sounds/voicemail/ai_remove_save_messages.wav" voicemail_remove_old_messages="system://sounds/voicemail/ai_remove_old_messages.wav" voicemail_remove_new_messages="system://sounds/voicemail/ai_remove_new_messages.wav" voicemail_remove_current_message="system://sounds/voicemail/ai_remove_current_message.wav" voicemail_reenter_new_password="system://sounds/voicemail/ai_reenter_new_password.wav" voicemail_property_changed="system://sounds/ai_changed.wav" voicemail_play_message_details="system://sounds/voicemail/ai_play_message_details.wav" voicemail_play_forward_message="system://sounds/voicemail/ai_play_forward_message.wav" voicemail_play_file_delimiter="tone://?f2=525&amp;off_msec=500&amp;on_msec=500&amp;f1=525&amp;duration=1000" voicemail_play_back_message="system://sounds/voicemail/ai_play_back_message.wav" voicemail_pause_resume_message="system://sounds/voicemail/ai_pause_resume_message.wav" voicemail_passwords_different="system://sounds/voicemail/ai_passwords_different.wav" voicemail_password_successfully_changed="system://sounds/voicemail/ai_password_successfully_changed.wav" voicemail_password_incorrect="system://sounds/voicemail/ai_voicemail_password_incorrect.wav" voicemail_old_messages2="system://sounds/voicemail/ai_old_messages_2.wav" voicemail_old_messages1="system://sounds/voicemail/ai_old_messages_1.wav" voicemail_old_message="system://sounds/voicemail/ai_old_message.wav" voicemail_number_absent="system://sounds/ai_number_absent.wav" voicemail_no_more_messages="system://sounds/voicemail/ai_no_more_messages.wav" voicemail_new_messages2="system://sounds/voicemail/ai_new_messages_2.wav" voicemail_new_messages1="system://sounds/voicemail/ai_new_messages_1.wav" voicemail_new_message="system://sounds/voicemail/ai_new_message.wav" voicemail_mgm_intro="system://sounds/voicemail/ai_voicemail_mgm_intro.wav" voicemail_messages_successfully_removed="system://sounds/voicemail/ai_messages_successfully_removed.wav" voicemail_message_successfully_removed="system://sounds/voicemail/ai_message_successfully_removed.wav" voicemail_message_saved="system://sounds/voicemail/ai_message_saved.wav" voicemail_message_from_number="system://sounds/voicemail/ai_message_from_number.wav" voicemail_mailbox_empty="system://sounds/voicemail/ai_voicemail_mailbox_empty.wav" voicemail_listen_save_messages="system://sounds/voicemail/ai_listen_save_messages.wav" voicemail_listen_prompt="system://sounds/voicemail/ai_listen_prompt.wav" voicemail_listen_old_messages="system://sounds/voicemail/ai_listen_old_messages.wav" voicemail_listen_new_messages="system://sounds/voicemail/ai_listen_new_messages.wav" voicemail_listen_messages="system://sounds/voicemail/ai_listen_messages.wav" voicemail_listen_current_message="system://sounds/voicemail/ai_listen_current_file.wav" voicemail_help="system://sounds/ai_for_help_at_any_time.wav" voicemail_go_back="system://sounds/ai_to_go_back_at_any_time.wav" voicemail_exit="system://sounds/voicemail/ai_exit.wav" voicemail_enter_password="system://sounds/ai_enter_password.wav" voicemail_enter_number_sharp="system://sounds/voicemail/ai_enter_number_sharp.wav" voicemail_enter_new_password="system://sounds/voicemail/ai_enter_new_password.wav" voicemail_enter_current_password="system://sounds/voicemail/ai_enter_current_password.wav" voicemail_decline_remove_messages="system://sounds/voicemail/ai_decline_remove_messages.wav" voicemail_confirm_remove_messages="system://sounds/voicemail/ai_confirm_remove_messages.wav" voicemail_change_write_conditions="system://sounds/voicemail/ai_voicemail_change_write_conditions.wav" voicemail_change_write_by_unconditional="system://sounds/voicemail/ai_voicemail_change_write_by_unconditional.wav" voicemail_change_write_by_out_of_service="system://sounds/voicemail/ai_voicemail_change_write_by_out_of_service.wav" voicemail_change_write_by_no_reply="system://sounds/voicemail/ai_voicemail_change_write_by_no_reply.wav" voicemail_change_write_by_busy="system://sounds/voicemail/ai_voicemail_change_write_by_busy.wav" voicemail_change_service_settings="system://sounds/voicemail/ai_change_service_settings.wav" voicemail_change_send_by_email="system://sounds/voicemail/ai_voicemail_change_send_by_email.wav" voicemail_change_play_details="system://sounds/voicemail/ai_voicemail_change_play_details.wav" voicemail_change_password="system://sounds/voicemail/ai_voicemail_change_password.wav" voicemail_change_common_settings="system://sounds/voicemail/ai_voicemail_change_common_settings.wav" voicemail_call_to_sender="system://sounds/voicemail/ai_call_to_sender.wav" voicemail_ai_skip_message="system://sounds/voicemail/ai_skip_message.wav" untill="system://sounds/ai_until.wav" two_et="system://sounds/et/2.wav" two="system://sounds/numbers/2.wav" tuesday="system://sounds/dow/tuesday.wav" to_turn_on="system://sounds/ai_to_turn_on.wav" to_turn_off="system://sounds/ai_to_turn_off.wav" thursday="system://sounds/dow/thursday.wav" three="system://sounds/numbers/3.wav" sunday="system://sounds/dow/sunday.wav" star1="system://sounds/numbers/*1.wav" star="system://sounds/numbers/*.wav" ss_test_error="system://sounds/ai_error.wav" ss_deactivated_all="system://sounds/ai_deactivated_all.wav" ss_deactivated="system://sounds/ai_deactivated.wav" ss_deactivate_error="system://sounds/ai_error.wav" ss_changed="system://sounds/ai_changed.wav" ss_activated="system://sounds/ai_activated.wav" ss_activate_error="system://sounds/ai_error.wav" six="system://sounds/numbers/6.wav" sharp1="system://sounds/numbers/#1.wav" sharp="system://sounds/numbers/#.wav" seven="system://sounds/numbers/7.wav" second3="system://sounds/et/second3.wav" second2="system://sounds/et/second2.wav" second1="system://sounds/et/second1.wav" saturday2="system://sounds/dow/ai_saturday2.wav" saturday="system://sounds/dow/saturday.wav" push_zero="system://sounds/push_numbers/ai_push_0.wav" push_two="system://sounds/push_numbers/ai_push_2.wav" push_three="system://sounds/push_numbers/ai_push_3.wav" push_star="system://sounds/push_numbers/ai_push_*.wav" push_six="system://sounds/push_numbers/ai_push_6.wav" push_sharp="system://sounds/push_numbers/ai_push_#.wav" push_seven="system://sounds/push_numbers/ai_push_7.wav" push_one="system://sounds/push_numbers/ai_push_1.wav" push_nine="system://sounds/push_numbers/ai_push_9.wav" push_four="system://sounds/push_numbers/ai_push_4.wav" push_five="system://sounds/push_numbers/ai_push_5.wav" push_eight="system://sounds/push_numbers/ai_push_8.wav" pin_incorrect="system://sounds/ai_pin_incorrect.wav" one_n="system://sounds/numbers/1n.wav" one_et="system://sounds/et/1.wav" one="system://sounds/numbers/1.wav" number_not_found="system://sounds/ai_number_not_found.wav" number_not_detected="system://sounds/ai_number_not_detected.wav" nine="system://sounds/numbers/9.wav" nearest4="system://sounds/ai_nearest4.wav" nearest3="system://sounds/ai_nearest3.wav" nearest2="system://sounds/ai_nearest2.wav" nearest1="system://sounds/ai_nearest1.wav" my_number="system://sounds/ai_my_number.wav" ms_two_hold_collect="tone://?f2=425&amp;off_msec=0&amp;on_msec=1000&amp;f1=0&amp;duration=30000" ms_two_hold_busy="tone://?f2=425&amp;off_msec=400&amp;on_msec=400&amp;f1=0&amp;duration=10000" ms_ringback="tone://?f2=425&amp;off_msec=4000&amp;on_msec=1000&amp;f1=0&amp;duration=-1" ms_one_hold_collect="tone://?f2=425&amp;off_msec=0&amp;on_msec=1000&amp;f1=0&amp;duration=30000" ms_one_hold_busy="tone://?f2=425&amp;off_msec=400&amp;on_msec=400&amp;f1=0&amp;duration=10000" ms_music_on_hold="system://sounds/ai_remote_hold.wav" ms_call_waiting_ringback="tone://?f2=425&amp;off_msec=4000&amp;on_msec=1000&amp;f1=0&amp;duration=-1" ms_call_waiting="tone://?f2=425&amp;off_msec=5000&amp;on_msec=200&amp;f1=0&amp;duration=-1" ms_busy="tone://?f2=425&amp;off_msec=400&amp;on_msec=400&amp;f1=0&amp;duration=10000" monday="system://sounds/dow/monday.wav" last_incoming_number="system://sounds/ai_last_incoming_number.wav" from="system://sounds/ai_from.wav" friday2="system://sounds/dow/ai_friday2.wav" friday="system://sounds/dow/friday.wav" four="system://sounds/numbers/4.wav" for_listen_next_message="system://sounds/voicemail/ai_for_listen_next_message.wav" five="system://sounds/numbers/5.wav" every4="system://sounds/ai_every4.wav" every3="system://sounds/ai_every3.wav" every2="system://sounds/ai_every2.wav" every1="system://sounds/ai_every1.wav" error="system://sounds/ai_error.wav" enter_pin_number_sharp="system://sounds/ai_enter_pin_number_sharp.wav" enter_pin="system://sounds/ai_enter_pin.wav" enter_number_sharp="system://sounds/ai_enter_number_sharp.wav" eight="system://sounds/numbers/8.wav" cc_auth_incorrect="system://sounds/ai_auth_incorrect.wav" cc_agent_number_occupied="system://sounds/ai_agent_number_occupied.wav" cc_agent_make_available="system://sounds/ai_activated.wav" cc_agent_login_ok="system://sounds/ai_agent_login_ok.wav" cc_agent_logged_out="system://sounds/ai_agent_logged_out.wav" cc_agent_conversations_completed="system://sounds/ai_activated.wav" cc_agent_busy="system://sounds/ai_agent_busy.wav" cc_agent_auxwork_planned="system://sounds/ai_activated.wav" cc_agent_auxwork="system://sounds/ai_agent_auxwork.wav" cc_agent_already_on="system://sounds/ai_agent_already_on.wav" call_forwarding="system://sounds/ai_call_forwarding.wav" busy="tone://?f2=425&amp;off_msec=400&amp;on_msec=400&amp;f1=0&amp;duration=300000" beep="tone://?f1=525&amp;f2=525&amp;on_msec=500&amp;off_msec=500&amp;duration=1000" alerting="tone://?f2=425&amp;off_msec=4000&amp;on_msec=1000&amp;f1=0&amp;duration=300000" alarm_today_off="system://sounds/ai_alarm_off_today.wav" alarm_one_digit="system://sounds/ai_alarm_one_digit.wav" alarm_on="system://sounds/ai_alarm_on.wav" alarm_off="system://sounds/ai_alarm_off.wav" alarm_multi_digits="system://sounds/ai_alarm_multi_digits.wav" activated="system://sounds/activated.wav"/>
            </domain>
        </domain_options>
    </result>
</out>

Hc_core_ai_set

Команда для изменения свойств автоответчика.

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

domain/<DOMAIN>/core/ai/set

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

http://host:port/commands/core_ai_set

Коды ответа:

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

XML-схема:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" id="core_ai_set">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            Change Core domain properties (auto-informers).
            Copyright (c) 2015, Eltex. All rights reserved.
            Tone id format:
                tone://?f2=425&amp;off_msec=4000&amp;on_msec=1000&amp;f1=0
                system://PATH/FILE.wav
                domain://PATH/FILE.wav
        </xs:documentation>
    </xs:annotation>

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

    <xs:complexType name="coreAIOptionsType">
        <xs:complexContent>
            <xs:extension base="baseOptionsType">
                <xs:attribute name="beep" type="xs:string" use="optional" />
                <xs:attribute name="alerting" type="xs:string" use="optional" />
                <xs:attribute name="busy" type="xs:string" use="optional" />
                <xs:attribute name="error" type="xs:string" use="optional" />
                <xs:attribute name="alarm_one_digit" type="xs:string" use="optional" />
                <xs:attribute name="alarm_multi_digits" type="xs:string" use="optional" />
                <xs:attribute name="wait_connection" type="xs:string" use="optional" />
                <xs:attribute name="wait_time" type="xs:string" use="optional" />
                <xs:attribute name="number_not_found" type="xs:string" use="optional" />
                <xs:attribute name="number_not_detected" type="xs:string" use="optional" />
                <xs:attribute name="last_incoming_number" type="xs:string" use="optional" />
                <xs:attribute name="my_number" type="xs:string" use="optional" />
                <xs:attribute name="autoredial_with_cb_activated" type="xs:string" use="optional" />
                <xs:attribute name="ss_changed" type="xs:string" use="optional" />
                <xs:attribute name="ss_activated" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivated" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivated_all" type="xs:string" use="optional" />
                <xs:attribute name="ss_activate_error" type="xs:string" use="optional" />
                <xs:attribute name="ss_deactivate_error" type="xs:string" use="optional" />
                <xs:attribute name="ss_test_error" type="xs:string" use="optional" />
                <xs:attribute name="pin_incorrect" type="xs:string" use="optional" />
                <xs:attribute name="enter_pin" type="xs:string" use="optional" />
                <xs:attribute name="enter_number_sharp" type="xs:string" use="optional" />
                <xs:attribute name="enter_pin_number_sharp" type="xs:string" use="optional" />
                <xs:attribute name="to_turn_on" type="xs:string" use="optional" />
                <xs:attribute name="to_turn_off" type="xs:string" use="optional" />
                <xs:attribute name="cc_auth_incorrect" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_already_on" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_number_occupied" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_login_ok" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_logged_out" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_busy" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_auxwork" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_auxwork_planned" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_make_available" type="xs:string" use="optional" />
                <xs:attribute name="cc_agent_conversations_completed" type="xs:string" use="optional" />
                <xs:attribute name="ms_ringback" type="xs:string" use="optional" />
                <xs:attribute name="ms_music_on_hold" type="xs:string" use="optional" />
                <xs:attribute name="ms_call_waiting" type="xs:string" use="optional" />
                <xs:attribute name="ms_call_waiting_ringback" type="xs:string" use="optional" />
                <xs:attribute name="ms_busy" type="xs:string" use="optional" />
                <xs:attribute name="ms_one_hold_busy" type="xs:string" use="optional" />
                <xs:attribute name="ms_two_hold_busy" type="xs:string" use="optional" />
                <xs:attribute name="ms_one_hold_collect" type="xs:string" use="optional" />
                <xs:attribute name="ms_two_hold_collect" type="xs:string" use="optional" />
                <xs:attribute name="zero" type="xs:string" use="optional" />
                <xs:attribute name="one" type="xs:string" use="optional" />
                <xs:attribute name="one_n" type="xs:string" use="optional" />
                <xs:attribute name="one_et" type="xs:string" use="optional" />
                <xs:attribute name="two" type="xs:string" use="optional" />
                <xs:attribute name="two_et" type="xs:string" use="optional" />
                <xs:attribute name="three" type="xs:string" use="optional" />
                <xs:attribute name="four" type="xs:string" use="optional" />
                <xs:attribute name="five" type="xs:string" use="optional" />
                <xs:attribute name="six" type="xs:string" use="optional" />
                <xs:attribute name="seven" type="xs:string" use="optional" />
                <xs:attribute name="eight" type="xs:string" use="optional" />
                <xs:attribute name="nine" type="xs:string" use="optional" />
                <xs:attribute name="star" type="xs:string" use="optional" />
                <xs:attribute name="star1" type="xs:string" use="optional" />
                <xs:attribute name="sharp" type="xs:string" use="optional" />
                <xs:attribute name="sharp1" type="xs:string" use="optional" />
                <xs:attribute name="push_sharp" type="xs:string" use="optional" />
                <xs:attribute name="push_star" type="xs:string" use="optional" />
                <xs:attribute name="push_zero" type="xs:string" use="optional" />
                <xs:attribute name="push_one" type="xs:string" use="optional" />
                <xs:attribute name="push_two" type="xs:string" use="optional" />
                <xs:attribute name="push_three" type="xs:string" use="optional" />
                <xs:attribute name="push_four" type="xs:string" use="optional" />
                <xs:attribute name="push_five" type="xs:string" use="optional" />
                <xs:attribute name="push_six" type="xs:string" use="optional" />
                <xs:attribute name="push_seven" type="xs:string" use="optional" />
                <xs:attribute name="push_eight" type="xs:string" use="optional" />
                <xs:attribute name="push_nine" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_prompt" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_mailbox_empty" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_you_have" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_new_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_new_messages1" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_new_messages2" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_old_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_old_messages1" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_old_messages2" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_saved_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_saved_messages1" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_saved_messages2" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_new_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_old_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_save_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_remove_new_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_remove_old_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_remove_save_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_confirm_remove_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_decline_remove_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_no_more_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_play_file_delimiter" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_messages_successfully_removed" type="xs:string" use="optional" />
                <xs:attribute name="for_listen_next_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_play_back_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_play_forward_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_replay_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_remove_current_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_save_current_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_current_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_message_saved" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_call_to_sender" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_pause_resume_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_play_message_details" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_ai_skip_message" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_help" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_go_back" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_exit" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_message_from_number" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_enter_password" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_enter_number_sharp" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_try_once_more" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_password_incorrect" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_message_successfully_removed" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_ss_unavailable" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_number_absent" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_service_settings" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_listen_messages" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_write_conditions" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_common_settings" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_mgm_intro" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_password" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_send_by_email" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_play_details" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_enter_current_password" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_enter_new_password" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_reenter_new_password" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_passwords_different" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_password_successfully_changed" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_property_changed" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_write_by_no_reply" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_write_by_busy" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_write_by_out_of_service" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_change_write_by_unconditional" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_remove_user_intro" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_write_user_intro" type="xs:string" use="optional" />
                <xs:attribute name="voicemail_say_message_after_beep" type="xs:string" use="optional" />
                <xs:attribute name="monday" type="xs:string" use="optional" />
                <xs:attribute name="tuesday" type="xs:string" use="optional" />
                <xs:attribute name="wednesday" type="xs:string" use="optional" />
                <xs:attribute name="wednesday2" type="xs:string" use="optional" />
                <xs:attribute name="thursday" type="xs:string" use="optional" />
                <xs:attribute name="friday" type="xs:string" use="optional" />
                <xs:attribute name="friday2" type="xs:string" use="optional" />
                <xs:attribute name="saturday" type="xs:string" use="optional" />
                <xs:attribute name="saturday2" type="xs:string" use="optional" />
                <xs:attribute name="sunday" type="xs:string" use="optional" />
                <xs:attribute name="alarm_on" type="xs:string" use="optional" />
                <xs:attribute name="alarm_off" type="xs:string" use="optional" />
                <xs:attribute name="alarm_today_off" type="xs:string" use="optional" />
                <xs:attribute name="nearest1" type="xs:string" use="optional" />
                <xs:attribute name="nearest2" type="xs:string" use="optional" />
                <xs:attribute name="nearest3" type="xs:string" use="optional" />
                <xs:attribute name="nearest4" type="xs:string" use="optional" />
                <xs:attribute name="every1" type="xs:string" use="optional" />
                <xs:attribute name="every2" type="xs:string" use="optional" />
                <xs:attribute name="every3" type="xs:string" use="optional" />
                <xs:attribute name="every4" type="xs:string" use="optional" />
                <xs:attribute name="call_forwarding" type="xs:string" use="optional" />
                <xs:attribute name="from" type="xs:string" use="optional" />
                <xs:attribute name="untill" type="xs:string" use="optional" />
                <xs:attribute name="activated" type="xs:string" use="optional" />
                <xs:attribute name="second1" type="xs:string" use="optional" />
                <xs:attribute name="second2" type="xs:string" use="optional" />
                <xs:attribute name="second3" type="xs:string" use="optional" />
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <!-- resultType-->
    <xs:complexType name="resultType">
        <xs:all>
            <xs:element name="domain_options" type="domainSetOutType" minOccurs="1"/>
        </xs:all>
    </xs:complexType>
    <!-- in-->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="domain_options" type="domainSetInType"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="result" type="resultType" minOccurs="1" maxOccurs="1"/>
                <xs:element name="error" type="errorType" minOccurs="1" maxOccurs="1"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>

Пример:

http://192.168.1.21:9999/commands/core_ai_set

Запрос:

<?xml version="1.0"?>
<in
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_ai_set.xsd">
    <request>
        <domain_options>
            <system>
                <options xs:type="coreAIOptionsType"/>
            </system>
            <domain name="biysk.local">
                <options xs:type="coreAIOptionsType" wait_time="system://sounds/ai_wait_time.wav"/>
            </domain>
        </domain_options>
    </request>
</in>

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_ai_set.xsd">
    <result>
        <domain_options>
            <system/>
            <domain name="biysk.local">
                <success option="wait_time"/>
            </domain>
        </domain_options>
    </result>
</out>
  • Нет меток