Команда предназначена для просмотра списка собранных конференций/конференц-комнат, а также их участников.

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

domain/<DOMAIN>/conference/list

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

POST

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

http://host:port/commands/conference_list

Код 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:complexType name="Participant">
        <xs:attribute name="participant number" use="required"/>
    </xs:complexType>

    <xs:complexType name="Participants">
        <xs:sequence>
            <xs:element name="participant number" type="Participant" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <!-- Conference -->
    <xs:complexType name="Conference">
        <xs:sequence>
            <xs:element name="participants" type="Participants"/>
        </xs:sequence>
        <xs:attribute name="space" type="xs:string" use="required"/>
        <xs:attribute name="room" type="xs:string" use="required"/>
        <xs:attribute name="legs_count" type="xs:nonNegativeInteger" use="required"/>
        <xs:attribute name="calls_limit" type="xs:string" use="required"/>
        <xs:attribute name="destroy_mode" type="xs:string" use="required"/>
        <xs:attribute name="timestamp" type="xs:string" use="required"/>
    </xs:complexType>
    <!-- Conferences-->
    <xs:complexType name="Conferences">
        <xs:sequence>
            <xs:element name="conference" type="Conference" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
	<!-- in-->
	<xs:element name="in">
		<xs:complexType>
			<xs:all>
				<xs:element name="request" minOccurs="1">
					<xs:complexType>
						<xs:attribute name="domain" type="xs:string" use="required"/>
						<xs:attribute name="addr" type="xs:string" use="required"/>
					</xs:complexType>
				</xs:element>
			</xs:all>
		</xs:complexType>
	</xs:element>
	<!-- out -->
	<xs:element name="out">
		<xs:complexType>
			<xs:all>
				<xs:element name="response" minOccurs="1">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="conferences" type="Conferences"/>
                        </xs:all>
                    </xs:complexType>
				</xs:element>
			</xs:all>
		</xs:complexType>
	</xs:element>
</xs:schema>
XML

Пример 1:

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

<?xml version="1.0"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_conference_list.xsd">
  <request domain="biysk.local" addr="3854240101"/>
</in>
XML

Код ответа:

200

Ответ:

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="hc_conference_list.xsd">
    <response>
        <conferences>
            <conference space="chat_room" room="*C71*123#" legs_count="3" calls_limit="infinity" destroy_mode="destroy_by_no_more_calls" timestamp="11.03.2021 11:52:41">
                <participants>
                    <participant number="3854240466"/>
                    <participant number="3854240101"/>
                    <participant number="3854416977"/>
                </participants>
            </conference>
        </conferences>
    </response>
</out>
XML