Hc_isup_cause_messages_clean
Команда возвращает дефолтные значения текстовых описаний для ISUP cause-ов
Аналог команды в CoCon:
domain/<DOMAIN>/sip/isup-cause-messages/clean
Метод http запроса:
POST
Шаблон http запроса:
http://host:port/commands/isup_cause_messages_clean
Код http ответа
200 – в случае успеха;
404 – в случае ошибки.
Xsd схема XML запроса/ответа:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <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/isup_cause_messages_clean
<?xml version="1.0" encoding="UTF-8"?> <in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_isup_cause_messages_clean.xsd"> <request> <domain_options> <system /> <domain name="biysk.local"> <option name="code_1"/> <option name="external"/> </domain> </domain_options> </request> </in>
Ответ:
<?xml version="1.0"?> <out xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_isup_cause_messages_clean.xsd"> <result> <domain_options> <system/> <domain name="biysk.local"> <success option="code_1"/> <success option="external"/> </domain> </domain_options> </result> </out>
Hc_isup_cause_messages_info
Команда возвращает текстовые описания для ISUP cause-ов
Аналог команды в CoCon:
domain/<DOMAIN>/sip/isup-cause-messages/info
Метод http запроса:
POST
Шаблон http запроса:
http://host:port/commands/isup_cause_messages_info
Код http ответа
200 – в случае успеха;
404 – в случае ошибки.
Xsd схема XML запроса/ответа:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:include schemaLocation="error.xsd"/> <xs:include schemaLocation="ecm_common.xsd"/> <xs:complexType name="isupCauseMessagesOptionsType"> <xs:complexContent> <xs:extension base="baseOptionsType"> <xs:attribute name="code_1" type="xs:string" use="optional" /> <xs:attribute name="code_2" type="xs:string" use="optional" /> <xs:attribute name="code_3" type="xs:string" use="optional" /> <xs:attribute name="code_4" type="xs:string" use="optional" /> <xs:attribute name="code_5" type="xs:string" use="optional" /> <xs:attribute name="code_6" type="xs:string" use="optional" /> <xs:attribute name="code_7" type="xs:string" use="optional" /> <xs:attribute name="code_8" type="xs:string" use="optional" /> <xs:attribute name="code_9" type="xs:string" use="optional" /> <xs:attribute name="code_16" type="xs:string" use="optional" /> <xs:attribute name="code_17" type="xs:string" use="optional" /> <xs:attribute name="code_18" type="xs:string" use="optional" /> <xs:attribute name="code_19" type="xs:string" use="optional" /> <xs:attribute name="code_20" type="xs:string" use="optional" /> <xs:attribute name="code_21" type="xs:string" use="optional" /> <xs:attribute name="code_22" type="xs:string" use="optional" /> <xs:attribute name="code_23" type="xs:string" use="optional" /> <xs:attribute name="code_25" type="xs:string" use="optional" /> <xs:attribute name="code_26" type="xs:string" use="optional" /> <xs:attribute name="code_27" type="xs:string" use="optional" /> <xs:attribute name="code_28" type="xs:string" use="optional" /> <xs:attribute name="code_29" type="xs:string" use="optional" /> <xs:attribute name="code_30" type="xs:string" use="optional" /> <xs:attribute name="code_31" type="xs:string" use="optional" /> <xs:attribute name="code_34" type="xs:string" use="optional" /> <xs:attribute name="code_38" type="xs:string" use="optional" /> <xs:attribute name="code_39" type="xs:string" use="optional" /> <xs:attribute name="code_40" type="xs:string" use="optional" /> <xs:attribute name="code_41" type="xs:string" use="optional" /> <xs:attribute name="code_42" type="xs:string" use="optional" /> <xs:attribute name="code_43" type="xs:string" use="optional" /> <xs:attribute name="code_44" type="xs:string" use="optional" /> <xs:attribute name="code_46" type="xs:string" use="optional" /> <xs:attribute name="code_47" type="xs:string" use="optional" /> <xs:attribute name="code_49" type="xs:string" use="optional" /> <xs:attribute name="code_50" type="xs:string" use="optional" /> <xs:attribute name="code_53" type="xs:string" use="optional" /> <xs:attribute name="code_55" type="xs:string" use="optional" /> <xs:attribute name="code_57" type="xs:string" use="optional" /> <xs:attribute name="code_58" type="xs:string" use="optional" /> <xs:attribute name="code_62" type="xs:string" use="optional" /> <xs:attribute name="code_63" type="xs:string" use="optional" /> <xs:attribute name="code_65" type="xs:string" use="optional" /> <xs:attribute name="code_66" type="xs:string" use="optional" /> <xs:attribute name="code_69" type="xs:string" use="optional" /> <xs:attribute name="code_70" type="xs:string" use="optional" /> <xs:attribute name="code_79" type="xs:string" use="optional" /> <xs:attribute name="code_81" type="xs:string" use="optional" /> <xs:attribute name="code_82" type="xs:string" use="optional" /> <xs:attribute name="code_83" type="xs:string" use="optional" /> <xs:attribute name="code_84" type="xs:string" use="optional" /> <xs:attribute name="code_85" type="xs:string" use="optional" /> <xs:attribute name="code_86" type="xs:string" use="optional" /> <xs:attribute name="code_87" type="xs:string" use="optional" /> <xs:attribute name="code_88" type="xs:string" use="optional" /> <xs:attribute name="code_90" type="xs:string" use="optional" /> <xs:attribute name="code_91" type="xs:string" use="optional" /> <xs:attribute name="code_95" type="xs:string" use="optional" /> <xs:attribute name="code_96" type="xs:string" use="optional" /> <xs:attribute name="code_97" type="xs:string" use="optional" /> <xs:attribute name="code_98" type="xs:string" use="optional" /> <xs:attribute name="code_99" type="xs:string" use="optional" /> <xs:attribute name="code_100" type="xs:string" use="optional" /> <xs:attribute name="code_101" type="xs:string" use="optional" /> <xs:attribute name="code_102" type="xs:string" use="optional" /> <xs:attribute name="code_103" type="xs:string" use="optional" /> <xs:attribute name="code_110" type="xs:string" use="optional" /> <xs:attribute name="code_111" type="xs:string" use="optional" /> <xs:attribute name="code_127" type="xs:string" use="optional" /> <xs:attribute name="external" 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/isup_cause_messages_info
<?xml version="1.0" encoding="UTF-8"?> <in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_isup_cause_messages_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="hc_isup_cause_messages_info.xsd"> <result> <domain_options> <system> <options xs:type="isupCauseMessagesOptionsType"/> </system> <domain name="biysk.local"> <options xs:type="isupCauseMessagesOptionsType" external="" code_99="language:default,text:Information element/parameter non-existent or not implemented;language:en,text:Information element/parameter non-existent or not implemented;language:ru,text:Несуществующий или нереализованный информационный элемент или параметр" code_98="language:default,text:Message not compatible with call state or message type non-existent;language:en,text:Message not compatible with call state or message type non-existent;language:ru,text:Сообщение не соответствует состоянию вызова или сообщение несуществующего типа или не реализовано" code_97="language:default,text:Message type non-existent or not implemented;language:en,text:Message type non-existent or not implemented;language:ru,text:Несуществующий тип сообщения или не реализовано" code_96="language:default,text:Mandatory information element is missing;language:en,text:Mandatory information element is missing;language:ru,text:Отсутствует обязательный информационный элемент" code_95="language:default,text:Invalid message unspecified;language:en,text:Invalid message unspecified;language:ru,text:Неправильное сообщение, без уточнения" code_91="language:default,text:Invalid transit network selection (national use);language:en,text:Invalid transit network selection (national use);language:ru,text:Неверный выбор транзитной сети" code_90="language:default,text:Non-existent CUG;language:en,text:Non-existent CUG;language:ru,text:Несуществующая замкнутая группа пользователей" code_9="language:default,text:Preemption - circuit reserved for reuse;language:en,text:Preemption - circuit reserved for reuse;language:ru,text:Прерывание обслуживания вызова - канал зарезервирован для повторного использования" code_88="language:default,text:Incompatible destination;language:en,text:Incompatible destination;language:ru,text:Несовместимый пункт назначения" code_87="language:default,text:User not member of CUG;language:en,text:User not member of CUG;language:ru,text:Абонент не является членом замкнутой группы пользователей" code_86="language:default,text:Call having the requested call identity has been cleared;language:en,text:Call having the requested call identity has been cleared;language:ru,text:Разъединение соединения для вызова, имеющего запрашиваемый идентификатор вызова" code_85="language:default,text:No call suspended;language:en,text:No call suspended;language:ru,text:Отсутствуют приостановленные вызовы" code_84="language:default,text:Call identity in use;language:en,text:Call identity in use;language:ru,text:Использование индентификатора вызова" code_83="language:default,text:A suspended call exists but this call identity does not;language:en,text:A suspended call exists but this call identity does not;language:ru,text:Существующий вызов приостановлен, вызов не идентифицирован" code_82="language:default,text:Identified channel does not exist;language:en,text:Identified channel does not exist;language:ru,text:Выбранный канал не существует" code_81="language:default,text:Invalid call reference value;language:en,text:Invalid call reference value;language:ru,text:Неверное значение ссылки вызова" code_8="language:default,text:Preemption;language:en,text:Preemption;language:ru,text:Прерывание обслуживания из-за вызова с более высоким приоритетом" code_79="language:default,text:Service or option not implemented unspecified;language:en,text:Service or option not implemented unspecified;language:ru,text:Услуга или опция не реализована, без уточнения" code_70="language:default,text:Only restricted digital information bearer capability is available;language:en,text:Only restricted digital information bearer capability is available;language:ru,text:Доступна только ограниченная функция передачи цифровой информации" code_7="language:default,text:Call awarded and being delivered in an established channel;language:en,text:Call awarded and being delivered in an established channel;language:ru,text:Вызов принят и передается по установленному каналу" code_69="language:default,text:Requested facility not implemented;language:en,text:Requested facility not implemented;language:ru,text:Запрашиваемая услуга не реализована" code_66="language:default,text:Channel type not implemented;language:en,text:Channel type not implemented;language:ru,text:Тип канала не реализован" code_65="language:default,text:Bearer capability not implemented;language:en,text:Bearer capability not implemented;language:ru,text:Функция передачи информации не реализована" code_63="language:default,text:Service or option not available, unspecified;language:en,text:Service or option not available, unspecified;language:ru,text:Услуга или опция недоступна, без уточнения" code_62="language:default,text:Inconsistency in designated outgoing access information;language:en,text:Inconsistency in designated outgoing access information;language:ru,text:Несоответствие в информации назначенного исходящего доступа и абонентского класса" code_6="language:default,text:Channel unacceptable;language:en,text:Channel unacceptable;language:ru,text:Канал не поддерживается" code_58="language:default,text:Bearer capability not presently available;language:en,text:Bearer capability not presently available;language:ru,text:Функция передачи информации в настоящее время недоступна" code_57="language:default,text:Bearer capability not authorized;language:en,text:Bearer capability not authorized;language:ru,text:Отсутствие авторизации для функции передачи информации" code_55="language:default,text:Incoming calls barred within CUG;language:en,text:Incoming calls barred within CUG;language:ru,text:Входящие вызовы ограничены в пределах замкнутой абонентской группы" code_53="language:default,text:Outgoing calls barred within CUG;language:en,text:Outgoing calls barred within CUG;language:ru,text:Исходящие вызовы огрничены в пределах замкнутой абонентской группы" code_50="language:default,text:Requested facility not subscribed;language:en,text:Requested facility not subscribed;language:ru,text:Отсутствует подписка на запрашиваемую услугу" code_5="language:default,text:Misdialled trunk prefix (national use);language:en,text:Misdialled trunk prefix (national use);language:ru,text:Неправильно набран префикс на транке" code_49="language:default,text:Quality of Service not available;language:en,text:Quality of Service not available;language:ru,text:Качество обслуживания недоступно" code_47="language:default,text:Resource unavailable unspecified;language:en,text:Resource unavailable unspecified;language:ru,text:Ресурс недоступен, без уточнения" code_46="language:default,text:Precedence call blocked;language:en,text:Precedence call blocked;language:ru,text:Заблокировано приоритетным вызовом" code_44="language:default,text:Requested circuit/channel not available;language:en,text:Requested circuit/channel not available;language:ru,text:Запрашиваемая канал не доступен" code_43="language:default,text:Access information discarded;language:en,text:Access information discarded;language:ru,text:Информация о доступе отклонена" code_42="language:default,text:Switching equipment congestion;language:en,text:Switching equipment congestion;language:ru,text:Перегрузка коммутационного оборудования" code_41="language:default,text:Temporary failure;language:en,text:Temporary failure;language:ru,text:Временная неисправность" code_40="language:default,text:Permanent frame mode connection operational;language:en,text:Permanent frame mode connection operational;language:ru,text:Действующее постоянное соединение в кадровом режиме" code_4="language:default,text:Send special information tone;language:en,text:Send special information tone;language:ru,text:Посылка специального звукового тона" code_39="language:default,text:Permanent frame mode connection out of service;language:en,text:Permanent frame mode connection out of service;language:ru,text:Постоянное соединение в кадровом режиме не обслуживается" code_38="language:default,text:Network out of order;language:en,text:Network out of order;language:ru,text:Неисправность сети" code_34="language:default,text:No circuit/channel available;language:en,text:No circuit/channel available;language:ru,text:Нет свободного канала" code_31="language:default,text:Normal unspecified;language:en,text:Normal unspecified;language:ru,text:Нормальное состояние, не уточнено" code_30="language:default,text:Response to STATUS ENQUIRY;language:en,text:Response to STATUS ENQUIRY;language:ru,text:Реакция на ЗАПРОС СОСТОЯНИЯ" code_3="language:default,text:No route to destination;language:en,text:No route to destination;language:ru,text:Нет маршрута до указанного номера" code_29="language:default,text:Facility rejected;language:en,text:Facility rejected;language:ru,text:Услуга отклонена" code_28="language:default,text:Invalid number format (address incomplete);language:en,text:Invalid number format (address incomplete);language:ru,text:Неверный формат номера (неполный адрес)" code_27="language:default,text:Destination out of order;language:en,text:Destination out of order;language:ru,text:Неисправность на конечном пункте" code_26="language:default,text:Non-selected user clearing;language:en,text:Non-selected user clearing;language:ru,text:Сброс невыбранного пользователя" code_25="language:default,text:Exchange - routing error;language:en,text:Exchange - routing error;language:ru,text:Ошибка маршрутизации при обмене" code_23="language:default,text:Redirection to new destination;language:en,text:Redirection to new destination;language:ru,text:Вызов перенаправлен" code_22="language:default,text:Number changed;language:en,text:Number changed;language:ru,text:Номер изменен" code_21="language:default,text:Call rejected;language:en,text:Call rejected;language:ru,text:Вызов отклонен" code_20="language:default,text:Subscriber absent;language:en,text:Subscriber absent;language:ru,text:Абонент недоступен" code_2="language:default,text:No route to specified transit network (national use);language:en,text:No route to specified transit network (national use);language:ru,text:Нет маршрута к указанной транзитной сети" code_19="language:default,text:No answer from user (user alerted);language:en,text:No answer from user (user alerted);language:ru,text:Нет ответа от абонента (абонент уведомлен)" code_18="language:default,text:No user responding;language:en,text:No user responding;language:ru,text:Абонент не отвечает" code_17="language:default,text:User busy;language:en,text:User busy;language:ru,text:Абонент занят" code_16="language:default,text:Normal call clearing;language:en,text:Normal call clearing;language:ru,text:Нормальное завершение вызова" code_127="language:default,text:Interworking unspecified;language:en,text:Interworking unspecified;language:ru,text:Взаимодействие, без уточнения" code_111="language:default,text:Protocol error unspecified;language:en,text:Protocol error unspecified;language:ru,text:Ошибка протокола, без уточнения" code_110="language:default,text:Message with unrecognized parameter discarded;language:en,text:Message with unrecognized parameter discarded;language:ru,text:Сообщение с нераспознанным параметром, отбрасывается" code_103="language:default,text:Parameter non-existent or not implemented - passed on (national;language:en,text:Parameter non-existent or not implemented - passed on (national;language:ru,text:Параметр не существует или не реализован" code_102="language:default,text:Recovery on timer expiry;language:en,text:Recovery on timer expiry;language:ru,text:Восстановление по истечению временного таймера" code_101="language:default,text:Message not compatible with call state;language:en,text:Message not compatible with call state;language:ru,text:Сообщение не соответствует состоянию вызова" code_100="language:default,text:Invalid information element contents;language:en,text:Invalid information element contents;language:ru,text:Неверное содержание информационного элемента" code_1="language:default,text:Unallocated (unassigned) number;language:en,text:Unallocated (unassigned) number;language:ru,text:Номер не найден (не существует)"/> </domain> </domain_options> </result> </out>
Hc_isup_cause_messages_set
Команда задает значения текстовых описаний для ISUP cause-ов
Аналог команды в CoCon:
domain/<DOMAIN>/sip/isup-cause-messages/set
Метод http запроса:
POST
Шаблон http запроса:
http://host:port/commands/isup_cause_messages_set
Код http ответа
200 – в случае успеха;
404 – в случае ошибки.
Xsd схема XML запроса/ответа:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:include schemaLocation="error.xsd"/> <xs:include schemaLocation="ecm_common.xsd"/> <xs:complexType name="isupCauseMessagesOptionsType"> <xs:complexContent> <xs:extension base="baseOptionsType"> <xs:attribute name="code_1" type="xs:string" use="optional" /> <xs:attribute name="code_2" type="xs:string" use="optional" /> <xs:attribute name="code_3" type="xs:string" use="optional" /> <xs:attribute name="code_4" type="xs:string" use="optional" /> <xs:attribute name="code_5" type="xs:string" use="optional" /> <xs:attribute name="code_6" type="xs:string" use="optional" /> <xs:attribute name="code_7" type="xs:string" use="optional" /> <xs:attribute name="code_8" type="xs:string" use="optional" /> <xs:attribute name="code_9" type="xs:string" use="optional" /> <xs:attribute name="code_16" type="xs:string" use="optional" /> <xs:attribute name="code_17" type="xs:string" use="optional" /> <xs:attribute name="code_18" type="xs:string" use="optional" /> <xs:attribute name="code_19" type="xs:string" use="optional" /> <xs:attribute name="code_20" type="xs:string" use="optional" /> <xs:attribute name="code_21" type="xs:string" use="optional" /> <xs:attribute name="code_22" type="xs:string" use="optional" /> <xs:attribute name="code_23" type="xs:string" use="optional" /> <xs:attribute name="code_25" type="xs:string" use="optional" /> <xs:attribute name="code_26" type="xs:string" use="optional" /> <xs:attribute name="code_27" type="xs:string" use="optional" /> <xs:attribute name="code_28" type="xs:string" use="optional" /> <xs:attribute name="code_29" type="xs:string" use="optional" /> <xs:attribute name="code_30" type="xs:string" use="optional" /> <xs:attribute name="code_31" type="xs:string" use="optional" /> <xs:attribute name="code_34" type="xs:string" use="optional" /> <xs:attribute name="code_38" type="xs:string" use="optional" /> <xs:attribute name="code_39" type="xs:string" use="optional" /> <xs:attribute name="code_40" type="xs:string" use="optional" /> <xs:attribute name="code_41" type="xs:string" use="optional" /> <xs:attribute name="code_42" type="xs:string" use="optional" /> <xs:attribute name="code_43" type="xs:string" use="optional" /> <xs:attribute name="code_44" type="xs:string" use="optional" /> <xs:attribute name="code_46" type="xs:string" use="optional" /> <xs:attribute name="code_47" type="xs:string" use="optional" /> <xs:attribute name="code_49" type="xs:string" use="optional" /> <xs:attribute name="code_50" type="xs:string" use="optional" /> <xs:attribute name="code_53" type="xs:string" use="optional" /> <xs:attribute name="code_55" type="xs:string" use="optional" /> <xs:attribute name="code_57" type="xs:string" use="optional" /> <xs:attribute name="code_58" type="xs:string" use="optional" /> <xs:attribute name="code_62" type="xs:string" use="optional" /> <xs:attribute name="code_63" type="xs:string" use="optional" /> <xs:attribute name="code_65" type="xs:string" use="optional" /> <xs:attribute name="code_66" type="xs:string" use="optional" /> <xs:attribute name="code_69" type="xs:string" use="optional" /> <xs:attribute name="code_70" type="xs:string" use="optional" /> <xs:attribute name="code_79" type="xs:string" use="optional" /> <xs:attribute name="code_81" type="xs:string" use="optional" /> <xs:attribute name="code_82" type="xs:string" use="optional" /> <xs:attribute name="code_83" type="xs:string" use="optional" /> <xs:attribute name="code_84" type="xs:string" use="optional" /> <xs:attribute name="code_85" type="xs:string" use="optional" /> <xs:attribute name="code_86" type="xs:string" use="optional" /> <xs:attribute name="code_87" type="xs:string" use="optional" /> <xs:attribute name="code_88" type="xs:string" use="optional" /> <xs:attribute name="code_90" type="xs:string" use="optional" /> <xs:attribute name="code_91" type="xs:string" use="optional" /> <xs:attribute name="code_95" type="xs:string" use="optional" /> <xs:attribute name="code_96" type="xs:string" use="optional" /> <xs:attribute name="code_97" type="xs:string" use="optional" /> <xs:attribute name="code_98" type="xs:string" use="optional" /> <xs:attribute name="code_99" type="xs:string" use="optional" /> <xs:attribute name="code_100" type="xs:string" use="optional" /> <xs:attribute name="code_101" type="xs:string" use="optional" /> <xs:attribute name="code_102" type="xs:string" use="optional" /> <xs:attribute name="code_103" type="xs:string" use="optional" /> <xs:attribute name="code_110" type="xs:string" use="optional" /> <xs:attribute name="code_111" type="xs:string" use="optional" /> <xs:attribute name="code_127" type="xs:string" use="optional" /> <xs:attribute name="external" 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/isup_cause_messages_set
<?xml version="1.0" encoding="UTF-8"?> <in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_isup_cause_messages_set.xsd"> <request> <domain_options> <system> <options xs:type="isupCauseMessagesOptionsType"/> </system> <domain name="biysk.local"> <options xs:type="isupCauseMessagesOptionsType" external="666:language:en,text:New desc;language:ru,text:Новое описание|667:language:en,text:Desc"/> </domain> </domain_options> </request> </in>
Ответ:
<?xml version="1.0"?> <out xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_isup_cause_messages_set.xsd"> <result> <domain_options> <system/> <domain name="biysk.local"> <success option="external"/> </domain> </domain_options> </result> </out>
Добавить комментарий