Вторая версия нотификации об участниках конференции. В отличие от первой версии здесь гарантируется, что у участника, возвращенного в конференцию повторно, будет сохраняться тот же самый идентификатор.
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:include schemaLocation="monitor.xsd"/> <xs:simpleType name="StatusType"> <xs:restriction base="xs:string"> <xs:enumeration value="connecting"/> <xs:enumeration value="connected"/> <xs:enumeration value="disconnected"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="ReasonType"> <xs:restriction base="xs:string"> <xs:enumeration value="failed"/> <xs:enumeration value="released"/> </xs:restriction> </xs:simpleType> <xs:complexType name="ParticipantInfo"> <xs:attribute name="id" type="xs:string"/> <xs:attribute name="status" type="StatusType"/> <xs:attribute name="digits" type="xs:string"/> <xs:attribute name="agent_id" type="xs:string" use="optional"/> <xs:attribute name="display_name" type="xs:string" use="optional"/> <xs:attribute name="disconnect_reason" type="ReasonType" use="optional"/> <!-- only if status == disconnected --> <xs:anyAttribute/> </xs:complexType> <xs:complexType name="Participants"> <xs:sequence> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="participant" type="ParticipantInfo"/> </xs:choice> </xs:sequence> <xs:attribute name="id" type="xs:string"/> </xs:complexType> <xs:element name="event"> <xs:complexType> <xs:complexContent> <xs:extension base="baseEventType"> <xs:sequence> <xs:element name="participants" type="Participants"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> </xs:schema>
Добавить комментарий