<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
<xep xmlns="">
<header>
  <title>HTTP Online Meetings</title>
  <abstract>This specification defines a protocol extension to request URLs from an external HTTP entity usable to initiate and invite participants to an online meeting.</abstract>
  
<legal>
<copyright>This XMPP Extension Protocol is copyright © 1999 – 2024 by the <link url="https://xmpp.org/">XMPP Standards Foundation</link> (XSF).</copyright>
<permissions>Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the "Specification"), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.</permissions>
<warranty>## NOTE WELL: This Specification is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##</warranty>
<liability>In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.</liability>
<conformance>This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at &lt;<link url="https://xmpp.org/about/xsf/ipr-policy">https://xmpp.org/about/xsf/ipr-policy</link>&gt; or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).</conformance>
</legal>
  <number>0483</number>
  <status>Experimental</status>
  <type>Standards Track</type>
  <sig>Standards</sig>
  <approver>Council</approver>
  <dependencies/>
  <supersedes/>
  <supersededby/>
  <shortname>http_online-meetings</shortname>
  <author>
    <firstname>Dele</firstname>
    <surname>Olajide</surname>
    <email>dele@olajide.net</email>
    <jid>dele.olajide@igniterealtime.org</jid>
  </author>
  
  <author>
    <firstname>Guus</firstname>
    <surname>der Kinderen</surname>
    <email>guus.der.kinderen@gmail.com</email>
    <jid>guus.der.kinderen@igniterealtime.org</jid>
  </author>

  <revision>
    <version>0.2.0</version>
    <date>2023-12-12</date>
    <initials>do</initials>
    <remark>
      <ul>
        <li>Use XEP-0482 to send the meeting link to another party</li>
      </ul>
    </remark>	  
  </revision>   
  <revision>
    <version>0.1.0</version>
    <date>2023-12-11</date>
    <initials>XEP Editor: kis</initials>
    <remark>
      <ul>
        <li>Promoted to Experimental.</li>
      </ul>
    </remark>
  </revision>
  <revision>
    <version>0.0.3</version>
    <date>2023-09-12</date>
    <initials>gdk</initials>
    <remark>
      <ul>
        <li>Modified wording of abstract.</li>
        <li>Specified distribution of URL / add meeting invitation</li>
        <li>Differentiate between Meeting service providers that are integrated with XMPP server, and those that are not.</li>
        <li>Differentiate between URL to create and join meeting</li>
        <li>Replaced textual references with XML entities</li>
        <li>Introduced distinct namespaces for create and invite, retaining type-specific namespaces for feature discovery</li>
        <li>Introduced Meeting Service type registry</li>
        <li>Removed CORS-related implementation note</li>
        <li>Meeting ID in request now optional</li>
        <li>Add optional 'desc' in the meeting request.</li>
        <li>Moved IQ child elements into a wrapper, renamed 'create' element to 'initiate'</li>
        <li>Add fall-back body element to invite message stanza.</li>
        <li>Removed dependency on XEP-0066.</li>
      </ul>
    </remark>
  </revision>
  <revision>
    <version>0.0.2</version>
    <date>2023-08-22</date>
    <initials>do</initials>
    <remark>
      <ul>
        <li>Remove base URL attribute.</li>
        <li>Add support for a web-based protocol handler in OOB data result.</li>
      </ul>
    </remark>
  </revision>
  <revision>
    <version>0.0.1</version>
    <date>2023-08-21</date>
    <initials>do</initials>
    <remark>
      <ul>
        <li>Initial version.</li>
      </ul>
    </remark>
  </revision>
</header>
<section1 topic="Introduction" anchor="intro">
  <p>XMPP protocol extensions already defines a method for initiating peer-to-peer media sessions such as <span class="ref"><link url="https://xmpp.org/extensions/xep-0166.html">Jingle (XEP-0166)</link></span> <note>XEP-0166: Jingle &lt;<link url="https://xmpp.org/extensions/xep-0166.html">https://xmpp.org/extensions/xep-0166.html</link>&gt;.</note> however due to its very nature of being peer-to-peer it presents a few challenges in scenarios with online meetings that depend on a central Selective Forwarding Unit (SFU) or a Multipoint Control Unit (MCU) to host the meeting..</p>
  <p>Using a web browser to manually request a meeting URL from an HTTP server and sharing the link has been a workaround for this for a long time now. While users have a variety of services to choose from, the downside of this manual approach is that an XMPP client can not automate this process on behalf of the user since these services don’t share a common API.</p>
  <p>This XEP defines an approach to request initiation of an online meeting via an HTTP server and receive a URL can be used to join and invite others to the meeting. It has two main features:</p>
  <ol>
	  <li>An IQ-based protocol to request a meeting link from a server.</li>
	  <li>An element that can be added to a message stanza for sending the received meeting link to another party</li>
  </ol>
  <p>
  The second feature is achieved by using <span class="ref"><link url="https://xmpp.org/extensions/xep-0482.html">Call Invites (XEP-0482)</link></span><note>XEP-0482: Call Invites &lt;<link url="https://xmpp.org/extensions/xep-0482.html">https://xmpp.org/extensions/xep-0482.html</link>&gt;.</note>, which describes
  call invites using Jingle and external URIs. The XEP mentions how a web URLs can be used as external URI to join a call. For completeness, an example is repeated here to explicitly show how meeting invitations should be sent to invitees.
  </p>
  <p>
	<span class="ref"><link url="https://xmpp.org/extensions/xep-0482.html">Call Invites (XEP-0482)</link></span><note>XEP-0482: Call Invites &lt;<link url="https://xmpp.org/extensions/xep-0482.html">https://xmpp.org/extensions/xep-0482.html</link>&gt;.</note> has other call mangement features, like announcing call join and
	leave on the XMPP side. These are relevant for online meetings when the website behind the URL is opened
	in a frame or similar inside the XMPP client. The meeting host xmpp client can track meeting participants and know when users leave the meeting without having to depend on APIs provided by the meeting service provider which may present cross-domain challenges.
	For completeness, examples are also repeated in this XEP to explicity show their application for online meeting invitations.
  </p>
</section1>
<section1 topic="Requirements" anchor="reqs">
  <ul>
    <li>Be as easy to implement as possible. This is grounded on the idea that most programming languages already have HTTP libraries available.</li>
    <li>Usable with Meeting service providers that have no XMPP integration.</li>
    <li>Anyone who knows the URL SHOULD be able to access it.</li>
  </ul>
</section1>
<section1 topic="Discovering Support" anchor="disco">
  <section2 topic="Meeting Initiation" anchor="disco-initiation">
    <p>An entity advertises support for meeting initiation, as specified by this protocol, by including the "urn:xmpp:http:online-meetings:initiate:0" namespace, as well as "urn:xmpp:http:online-meetings#xxxxxx" (where xxxxx is the name of the supported meeting service) namespaces in its service discovery information features as specified in <span class="ref"><link url="https://xmpp.org/extensions/xep-0030.html">Service Discovery (XEP-0030)</link></span> <note>XEP-0030: Service Discovery &lt;<link url="https://xmpp.org/extensions/xep-0030.html">https://xmpp.org/extensions/xep-0030.html</link>&gt;.</note> or section 6.3 of <span class="ref"><link url="https://xmpp.org/extensions/xep-0115.html">Entity Capabilities (XEP-0115)</link></span> <note>XEP-0115: Entity Capabilities &lt;<link url="https://xmpp.org/extensions/xep-0115.html">https://xmpp.org/extensions/xep-0115.html</link>&gt;.</note>.</p>
    <p>A user’s server SHOULD include itself as a services provider for this protocol in its service discovery items.</p>
    <example caption="Client sends service discovery request to server"><![CDATA[
<iq from='romeo@montague.tld/garden'
    to='montague.tld'
    id='disco_01'
    type='get'>
  <query xmlns='http://jabber.org/protocol/disco#info'/>
</iq>]]></example>
    <example caption="Server replies to service discovery request and reports capability to initiate online meetings for Jitsi and Galene"><![CDATA[
<iq from='montague.tld'
    to='romeo@montague.tld/garden'
    id='disco_01'
    type='result'>
  <query xmlns='http://jabber.org/protocol/disco#info'>
    <identity
        category='server'
        type='im'
        name='Openfire Server'/>
    <feature var='urn:xmpp:http:online-meetings:initiate:0'/>
    <feature var='urn:xmpp:http:online-meetings#jitsi'/>
    <feature var='urn:xmpp:http:online-meetings#galene'/>
  </query>
</iq>]]></example>
  </section2>
  <section2 topic="Invitation" anchor="disco-server">
    <p>If an entity supports receiving meeting invitations as specified by this protocol, it advertises support by including the "urn:xmpp:http:online-meetings:invite:0" in its service discovery information features as specified in <span class="ref"><link url="https://xmpp.org/extensions/xep-0030.html">Service Discovery (XEP-0030)</link></span> <note>XEP-0030: Service Discovery &lt;<link url="https://xmpp.org/extensions/xep-0030.html">https://xmpp.org/extensions/xep-0030.html</link>&gt;.</note> or section 6.3 of <span class="ref"><link url="https://xmpp.org/extensions/xep-0115.html">Entity Capabilities (XEP-0115)</link></span> <note>XEP-0115: Entity Capabilities &lt;<link url="https://xmpp.org/extensions/xep-0115.html">https://xmpp.org/extensions/xep-0115.html</link>&gt;.</note>. Support for specific meeting services can be specified by including the corresponding "urn:xmpp:http:online-meetings#xxxxxx" namespaces.</p>
    <example caption="Client sends service discovery request to invitee"><![CDATA[
<iq from='romeo@montague.tld/garden'
    to='juliet@capulet.example/balcony'
    id='disco_02'
    type='get'>
  <query xmlns='http://jabber.org/protocol/disco#info'/>
</iq>]]></example>
    <example caption="Client replies to service discovery request and reports capability to accept invitations for online meeting for Jitsi."><![CDATA[
<iq from='juliet@capulet.example/balcony'
    to='romeo@montague.tld/garden'
    id='disco_02'
    type='result'>
  <query xmlns='http://jabber.org/protocol/disco#info'>
    <identity
        category='client'
        type='im'
        name='Spark'/>
    <feature var='urn:xmpp:http:online-meetings:invite:0'/>
    <feature var='urn:xmpp:http:online-meetings#jitsi'/>
  </query>
</iq>]]></example>
    <p>In order for an application to determine whether an entity supports this protocol, where possible it SHOULD use the dynamic, presence-based profile of service discovery defined in <span class="ref"><link url="https://xmpp.org/extensions/xep-0115.html">Entity Capabilities (XEP-0115)</link></span> <note>XEP-0115: Entity Capabilities &lt;<link url="https://xmpp.org/extensions/xep-0115.html">https://xmpp.org/extensions/xep-0115.html</link>&gt;.</note>. However, if an application has not received entity capabilities information from an entity, it SHOULD use explicit service discovery instead.</p>
  </section2>
</section1>
<section1 topic="Requesting a Meeting" anchor="request">
  <p>A client requests an online new meeting to be initiated by sending an IQ-get to the server containing a &lt;query&gt; child element qualified by the 'urn:xmpp:http:online-meetings:invite:0' namespace.</p>
  <p>This 'query' MUST include the type attribute specifying the Meeting Service type, which SHOULD be registered as described in the <link url="#registrar-type">Meeting Service Type Registry</link> section of this document.</p>
  <example caption="Client requests the server to initiate a new online meeting."><![CDATA[
<iq from='romeo@montague.tld/garden'
    to='montague.tld'
    id='initiate_01'
    type='get'>
  <query xmlns='urn:xmpp:http:online-meetings:0'
         type='jitsi'/>
</iq>]]></example>
  <p>If the requesting entity desires to (re)initiate a meeting with a specific identifier, the optional 'id' attribute can be used to specify the identity of the online meeting requested. When the provided value cannot be used, for example when it does not match the format used by a meeting provider, or a meeting with that particular value is already in use, the server SHOULD return an error.</p>
  <example caption="Client requests a URL for a meeting with a specific ID from the server"><![CDATA[
<iq from='romeo@montague.tld/garden'
    to='montague.tld'
    id='initiate_02'
    type='get'>
  <query xmlns='urn:xmpp:http:online-meetings:0'
         type='jitsi'
         id='my_meeting'/>
</iq>]]></example>
  <p>An optional 'desc' child element can be used to assign a human-readable description to the meeting. The server MAY use this value when configuring the online meeting with the service provider, and SHOULD use this value in its response, but otherwise treat this as an opaque value.</p>
  <example caption="Client uses the optional 'desc' when requesting a meeting to be initiated."><![CDATA[
<iq from='romeo@montague.tld/garden'
    to='montague.tld'
    id='initiate_03'
    type='get'>
  <query xmlns='urn:xmpp:http:online-meetings:0'
         type='jitsi'>
    <desc>Meeting room for Open Standards discussion</desc>
  </query>	
</iq>]]></example>
  <p>The XMPP server responds with one or two child elements: a 'initiate' element that contains a URL to be used to create and configure the meeting, and an 'invite' element as specified by <span class="ref"><link url="https://xmpp.org/extensions/xep-0482.html">Call Invites (XEP-0482)</link></span><note>XEP-0482: Call Invites &lt;<link url="https://xmpp.org/extensions/xep-0482.html">https://xmpp.org/extensions/xep-0482.html</link>&gt;.</note> to invite others into the meeting.</p>
  <p>In the URLs that it returns, the server MAY specify a web-based protocol handler if available and registered by the user. Otherwise, standard HTTPS protocol will be specified. In any case, the fully resolved URL provided by the host MUST provide Transport Layer Security (<span class="ref"><link url="http://tools.ietf.org/html/rfc5246">RFC 5246</link></span> <note>RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 &lt;<link url="http://tools.ietf.org/html/rfc5246">http://tools.ietf.org/html/rfc5246</link>&gt;.</note>). The HTTPS URL MUST adhere to <span class="ref"><link url="http://tools.ietf.org/html/rfc3986">RFC 3986</link></span> <note>RFC 3986: Uniform Resource Identifiers (URI): Generic Syntax &lt;<link url="http://tools.ietf.org/html/rfc3986">http://tools.ietf.org/html/rfc3986</link>&gt;.</note>. Non ASCII characters MUST be percent-encoded.</p>
  <example caption="The server responds with an out of band URI specifying a registered jitsi web-based protocol handler"><![CDATA[
<iq from='montague.tld'
    to='romeo@montague.tld/garden'
    id='initiate_03'
    type='result'>
  <query xmlns='urn:xmpp:http:online-meetings:0'>
    <initiate type='jitsi'>
      <url>web+jitsi:OpenStandardsMuchGreatness</url>
      <desc>Meeting room for Open Standards discussion</desc>
    </initiate>
    <invite xmlns='urn:xmpp:call-invites:0'>
	  <external uri='web+jitsi:OpenStandardsMuchGreatness' />
	  <meeting xmlns='urn:xmpp:http:online-meetings:0' 
               type='jitsi' 
               desc='Meeting room for Open Standards discussion' />
    </invite>  	
  </query>
</iq>]]></example>
  <example caption="The server responds with an out of band URI using standard HTTPS"><![CDATA[
<iq from='montague.tld'
    to='romeo@montague.tld/garden'
    id='initiate_03'
    type='result'>
  <query xmlns='urn:xmpp:http:online-meetings:0'>
    <initiate type='jitsi'>
      <url>https://meet.jit.si/OpenStandardsMuchGreatness</url>
      <desc>Meeting room for Open Standards discussion</desc>
    </initiate>
    <invite xmlns='urn:xmpp:call-invites:0'>
	  <external uri='https://meet.jit.si/OpenStandardsMuchGreatness' />
	  <meeting xmlns='urn:xmpp:http:online-meetings:0' 
               type='jitsi' 
               desc='Meeting room for Open Standards discussion' />
    </invite>  
  </query>
</iq>]]></example>
  <p>The XMPP server MAY be tightly integrated with the Meeting Provider and facilitate registration, configuration and association of a web-based protocol handler, but the protocol to implement such integration is out of scope of this document.</p>
  <p>If the XMPP server is tightly integrated with the Meeting Provider, and no other data is needed for a meeting to be initiated, the XMPP server MAY initiate a meeting on behalf of the requester and leave out the 'initiate' element from the response. Note that a server SHOULD include a 'initiate' URL in its response if it cannot initiate a meeting on behalf of the requesting entity, even if it knows that no additional data is needed for a meeting to be automatically initiated upon joining the meeting URL. Inclusion of the 'initiate' element signals that the requesting entity may need join the meeting as the first participant, in order to be assigned 'creator' or 'moderator' privileges.</p>
</section1>
<section1 topic="Error conditions" anchor="errors">
  <p>Instead of providing the client with a URL the server MAY respond with an error if the request fails. In addition, the HTTP entity MAY inform the requester about the reason for the failure.</p>
  <example caption="Alternative response by the server if the meeting initiation request includes unsupported type"><![CDATA[
<iq from='montague.tld'
    to='romeo@montague.tld/garden'
    id='initiate_01'
    type='error'>
  <query xmlns='urn:xmpp:http:online-meetings:0'
         type='jitsi'/>
  <error type='cancel'>
    <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
    <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>The 'jitsi' meeting service provider type is not supported.</text>
  </error>
</iq>]]></example>
  <example caption="Alternative response by the server if the meeting initiation request fails due to meeting ID collision"><![CDATA[
<iq from='montague.tld'
    to='romeo@montague.tld/garden'
    id='initiate_02'
    type='error'>
  <query xmlns='urn:xmpp:http:online-meetings:0'
         type='jitsi'
         id='my-meeting'/>
  <error type='modify'>
    <not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
    <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Meeting is in use</text>
  </error>
</iq>]]></example>
  <p>For any other type of error the service SHOULD respond with appropriate error types to indicate temporary or permanent errors.</p>
  <p>For temporary errors such as exceeding a personal quota the service MAY include a &lt;retry/&gt; element qualified by the 'urn:xmpp:http:online-meetings:0' namespace as a child of the &lt;error/&gt; element. The retry element MUST include an attribute 'stamp' which indicates the time at which the requesting entity may try again. The format of the timestamp MUST adhere to the date-time format specified in <span class="ref"><link url="https://xmpp.org/extensions/xep-0082.html">XMPP Date and Time Profiles (XEP-0082)</link></span> <note>XEP-0082: XMPP Date and Time Profiles &lt;<link url="https://xmpp.org/extensions/xep-0082.html">https://xmpp.org/extensions/xep-0082.html</link>&gt;.</note> and MUST be expressed in UTC.</p>
  <example caption="Alternative response by the server to indicate a temporary error after the client exceeded a quota"><![CDATA[
<iq from='montague.tld'
    to='romeo@montague.tld/garden'
    id='initiate_01'
    type='error'>
  <query xmlns='urn:xmpp:http:online-meetings:0'
         type='jitsi'/>
  <error type='wait'>
    <resource-constraint xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
    <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Quota reached. You can only request 5 meetings a day</text>
    <retry xmlns='urn:xmpp:http:online-meetings:0' stamp='2017-12-03T23:42:05Z'/>
  </error>
</iq>]]></example>
  <example caption="Alternative response by the server to indicate an auth error to a client that is not allowed to initiate an online meeting"><![CDATA[
<iq from='montague.tld'
    to='romeo@montague.tld/garden'
    id='initiate_01'
    type='error'>
  <query xmlns='urn:xmpp:http:online-meetings:0'
         type='jitsi'/>
  <error type='auth'>
    <forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
    <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Only premium members are allowed to initiate meetings</text>
  </error>
</iq>]]></example>
</section1>
<section1 topic="Meeting Invitation" anchor="meeting-invitation">
  <p>After the requesting entity has successfully initiated a meeting, it MAY invite other entities to join the meeting using the 'invite' element it received to propose the meeting</p>
  <p>To allow users of clients that do not support <span class="ref"><link url="https://xmpp.org/extensions/xep-0482.html">Call Invites (XEP-0482)</link></span><note>XEP-0482: Call Invites &lt;<link url="https://xmpp.org/extensions/xep-0482.html">https://xmpp.org/extensions/xep-0482.html</link>&gt;.</note> to receive the invitation, a <span class="ref"><link url="https://xmpp.org/extensions/xep-0066.html">Out-of-Band Data (XEP-0066)</link></span> <note>XEP-0066: Out of Band Data &lt;<link url="https://xmpp.org/extensions/xep-0066.html">https://xmpp.org/extensions/xep-0066.html</link>&gt;.</note> element and/or a 'body' element containing the meeting details MAY be included.</p>	
  <p>There is no further XMPP communication required between the server and the requesting entity for participants to join the meeting. The actual online meeting engagement with the provided URL is out of scope of this document.</p>

  <section2 topic="Proposing a meeting" anchor="meeting-proposal">  
    <p>
	Invitees are sent a message containing an &lt;invite&gt; element in the urn:xmpp:call-invites:0
	namespace. For online meetings, the audio video attributes should default to "true". 
	</p><p>
	The &lt;invite&gt; element contains sub-elements &lt;external&gt; and &lt;meeting&gt; to provide the meeting URL and the identity of the meeting service provider.
    </p>	<example caption="User sends meeting invitation"><![CDATA[
<message
    id='invite_01'
    from='romeo@montague.tld/garden'
    to='juliet@capulet.example/balcony'>
  <invite xmlns='urn:xmpp:call-invites:0'>
    <external uri='https://meet.jit.si/OpenStandardsMuchGreatness' />
    <meeting xmlns='urn:xmpp:http:online-meetings:0' 
             type='jitsi' 
             desc='Meeting room for Open Standards discussion' />
  </invite>  
  <x xmlns='jabber:x:oob'>
    <url>https://meet.jit.si/OpenStandardsMuchGreatness</url>
    <desc>Meeting room for Open Standards discussion</desc>
  </x>
  <body>You are invited to join 'Meeting room for Open Standards discussion' at https://meet.jit.si/OpenStandardsMuchGreatness</body>
</message>]]></example>
  </section2>
    <section2 topic="Retracting a meeting invitation" anchor="meeting-retraction">
      <p>
        A meeting invitation can be retracted by sending a message containing a &lt;retract&gt; element with an 'id' attribute
        containing the id of the invite message qualified by the urn:xmpp:call-invites:0 namespace.
      </p>
      <example caption="Retracting a meeting"><![CDATA[
<message to='juliet@capulet.example/balcony'>
  <retract id='invite_01' xmlns='urn:xmpp:call-invites:0' />
</message>]]></example>
    </section2>
    <section2 topic="Accepting a meeting invitation" anchor="meeting-acceptance">
      <p>
        A meeting invitation can be accepted by sending a message containing an &lt;accept&gt; element with an 'id' attribute
        containing the id of the invite message and qualified by the urn:xmpp:call-invites:0 namespace.
        The &lt;external&gt; and &lt;meeting&gt; elements from the invitation are placed in the &lt;accept&gt; element as specified in <span class="ref"><link url="https://xmpp.org/extensions/xep-0482.html">Call Invites (XEP-0482)</link></span><note>XEP-0482: Call Invites &lt;<link url="https://xmpp.org/extensions/xep-0482.html">https://xmpp.org/extensions/xep-0482.html</link>&gt;.</note>.
      </p>
      <example caption="Accepting a meeting invitation"><![CDATA[
<message to='romeo@montague.tld/garden'>
  <accept id='invite_01' xmlns='urn:xmpp:call-invites:0'>
    <external uri='https://meet.jit.si/OpenStandardsMuchGreatness' />
    <meeting type='jitsi' desc='Meeting room for Open Standards discussion' />
  </accept>
</message>]]></example>
      <p>
        After the &lt;accept&gt; was sent, the accepting client handles the URI. The exact behaviour of opening the URI is implementation specific and can be determined from the type attribute of the &lt;meeting&gt; element.
      </p>
    </section2>
    <section2 topic="Rejection a meeting invitation" anchor="meeting-rejection">
      <p>
        A meeting invitation can be rejected by sending a message containing a &lt;reject&gt; element with an 'id' attribute
        containing the id of the invite message and qualified by the urn:xmpp:call-invites:0 namespace.
      </p>
      <example caption="Rejecting a meeting invitation"><![CDATA[
<message to='romeo@montague.tld/garden'>
  <reject id='invite_01' xmlns='urn:xmpp:call-invites:0' />
</message>]]></example>
    </section2>
    <section2 topic="Leaving a meeting" anchor="meeting-exit">
      <p>
        When a meeting participant leaves a meeting, it sends a message containing a &lt;left&gt; element with an 'id' attribute
        containing the id of the invite message and qualified by the urn:xmpp:call-invites:0 namespace.
      </p>
      <example caption="Leaving a meeting"><![CDATA[
<message to='romeo@montague.tld/garden'>
  <left id='invite_01' xmlns='urn:xmpp:call-invites:0' />
</message>]]></example>
    </section2>  
 </section1>
<section1 topic="Implementation Notes" anchor="impl">
  <p>The server SHOULD choose an appropriate timeout for the validity of the URL. Since there is no reason for a client to wait between requesting the URL and joining the meeting via the URL before dispatching invitations, relatively low timeout values of around 300s are RECOMMENDED.</p>
</section1>
<section1 topic="Security Considerations" anchor="security">
  <section2 topic="General" anchor="general">
    <ul>
      <li>Service implementors SHOULD use long randomized parts in their URLs making it impossible to guess the location of arbitrary meeting url.</li>
      <li>Implementors should keep in mind, that without additional end-to-end-encryption, online meetings may not be secure. Client implementors are advised to either use this only for semi public meetings (for example meetings hosted on a public MUC) or implement appropriate end-to-end encryption.</li>
      <li>Joining an HTTP Online Meeting will leak the client’s IP address to the HTTP service. The HTTP service might not be the same service as the XMPP service the client is currently connected to.</li>
  </ul>
  </section2>
</section1>
<section1 topic="IANA Considerations" anchor="iana">
  <p>This document requires no interaction with the the <span class="ref"><link url="http://www.iana.org/">Internet Assigned Numbers Authority (IANA)</link></span> <note>The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &lt;<link url="http://www.iana.org/">http://www.iana.org/</link>&gt;.</note></p>
</section1>
<section1 topic="XMPP Registrar Considerations" anchor="registrar">
  <section2 topic="Protocol Namespaces" anchor="registrar-ns">
    <p>This specification defines the following XML namespaces:</p>
    <ul>
      <li>urn:xmpp:http:online-meetings:0</li>
      <li>urn:xmpp:http:online-meetings:initiate:0</li>
      <li>urn:xmpp:http:online-meetings:invite:0</li>
      <li>urn:xmpp:http:online-meetings#jitsi</li>
      <li>urn:xmpp:http:online-meetings#galene</li>
    </ul>
    <p>Upon advancement of this specification from a status of Experimental to a status of Draft, the <span class="ref"><link url="https://xmpp.org/registrar/">XMPP Registrar</link></span> <note>The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &lt;<link url="https://xmpp.org/registrar/">https://xmpp.org/registrar/</link>&gt;.</note> shall add the foregoing namespace to the registry located at &lt;<link url="https://xmpp.org/registrar/namespaces.html">https://xmpp.org/registrar/namespaces.html</link>&gt;, as described in Section 4 of <span class="ref"><link url="https://xmpp.org/extensions/xep-0053.html">XMPP Registrar Function (XEP-0053)</link></span> <note>XEP-0053: XMPP Registrar Function &lt;<link url="https://xmpp.org/extensions/xep-0053.html">https://xmpp.org/extensions/xep-0053.html</link>&gt;.</note>.</p>
  </section2>
  <section2 topic="Meeting Serviced Type Registry" anchor="registrar-type">
    <p>The XMPP Registrar maintains a registry of Meeting provider types at TBD.</p>
  </section2>
</section1>
<section1 topic="XML Schema" anchor="schema">
  <code><![CDATA[
<xml version="1.0" encoding="utf8">
<!-- TBD -->
]]></code>
</section1>
</xep>
