This document defines a way for an entity that can initiate a Jingle (XEP-0166) [1] session (often for the purpose of file transfer as specified in Jingle File Transfer (XEP-0234) [2]) to advertise that session, thus enabling a receiver to then request initiation of the session by the sender. In essence, this document defines the Jingle equivalent of Publishing Stream Initiation Requests (XEP-0137) [3] (previously defined for Stream Initiation (XEP-0095) [4]).
A session owner uses the <jinglepub/> element to announce that it can initiate a specific Jingle session request. This element can be sent to a publish-subscribe node (see Publish-Subscribe (XEP-0060) [5] and Personal Eventing Protocol (XEP-0163) [6]), or sent directly to potential recipients within a <message/> stanza.
The format of the <jinglepub/> element is as follows:
The 'from' attribute MUST be present and MUST be the valid JID for the session owner.
The 'id' attribute is an opaque identifier, called the "jinglepub identifier". This attribute MUST be present, and MUST be a valid non-empty string. It uniquely identifies the published request at the session owner's JID.
The <jinglepub/> element MUST contain a <description/> element qualified by the namespace of the relevant Jingle application format (e.g., <description xmlns='urn:xmpp:jingle:apps:file-transfer:4'/> for file transfer).
The <jinglepub/> element MAY contain one or more <meta/> elements qualified by the jingle-pub namespace; if more than one element is included, each element MUST have a different value for the 'xml:lang' attribute.
The <jinglepub/> element MAY contain a <uri/> element which contains a URI for an alternative way to access the content, or other information about the content. The resource provided by the URI SHOULD be meaningful for clients that do not directly support the included Jingle content definitions, and accessing the URI MAY result in a different experience than initiating the published Jingle session. For example, the URI could be to a content landing page of an image hosting service from which an image could be viewed instead of directly downloading the image file.
The <jinglepub/> information is typically provided via pubsub.
The following example shows a possible payload for streaming of recorded audio/video sessions, here pushed out via PEP.
The <jinglepub/> element MAY also be included directly within a <message/> stanza sent to another entity (or multiple entities, e.g., in Multi-User Chat (XEP-0045) [7]). This can be especially useful for informing an offline entity about an available stream.
In general, the process to trigger a stream initiation request is as follows:
A potential receiver requests initiation of the session by sending an IQ-get to the sender, using the <start xmlns='urn:xmpp:jinglepub:1'/> element. This element contains the 'id' attribute to specify which published stream to retrieve:
If the sender accepts the request, it responds with an IQ-result containing a <starting/> element. This element indicates the session identifier to be used:
Then the sender initiates the Jingle session:
If the requested identifier is not valid, the sender SHOULD respond with a <not-acceptable/> error:
If the receiver does not have permission to request the data stream, the sender SHOULD respond with a <forbidden/> error:
This document defines the 'jingle' XMPP URI/IRI querytype, which MUST posses an 'id' key/value pair, whose value is the "jinglepub identifier".
The information found in such an URI, an XMPP address and a "jinglepub identifier", can be used to trigger an an Jingle session initation request as specified in § 2.2. This Jingle session can be used to transfer files (Jingle File Transfer (XEP-0234) [2]), audio and video streams (Jingle RTP Sessions (XEP-0167) [8]) and other Jingle application formats.
This document introduces no security concerns beyond those specified in Publish-Subscribe (XEP-0060) [5] and the relevant Jingle application format in use.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [9].
The XMPP Registrar [10] will be requested to include 'urn:xmpp:jinglepub:1' in its registry of protocol namespaces.
As authorized by XMPP URI Query Components (XEP-0147) [11], the XMPP Registrar maintains a registry of queries and key-value pairs for use in XMPP URIs (see <https://xmpp.org/registrar/querytypes.html>).The following submission registers the 'jingle' querytype.
This document in other formats: XML PDF
This XMPP Extension Protocol is copyright © 1999 – 2024 by the XMPP Standards Foundation (XSF).
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.
## 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. ##
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.
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 <https://xmpp.org/about/xsf/ipr-policy> or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).
The HTML representation (you are looking at) is maintained by the XSF. It is based on the YAML CSS Framework, which is licensed under the terms of the CC-BY-SA 2.0 license.
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 6120) and XMPP IM (RFC 6121) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
The primary venue for discussion of XMPP Extension Protocols is the <standards@xmpp.org> discussion list.
Discussion on other xmpp.org discussion lists might also be appropriate; see <https://xmpp.org/community/> for a complete list.
Errata can be sent to <editor@xmpp.org>.
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
1. XEP-0166: Jingle <https://xmpp.org/extensions/xep-0166.html>.
2. XEP-0234: Jingle File Transfer <https://xmpp.org/extensions/xep-0234.html>.
3. XEP-0137: Publishing Stream Initiation Requests <https://xmpp.org/extensions/xep-0137.html>.
4. XEP-0095: Stream Initiation <https://xmpp.org/extensions/xep-0095.html>.
5. XEP-0060: Publish-Subscribe <https://xmpp.org/extensions/xep-0060.html>.
6. XEP-0163: Personal Eventing Protocol <https://xmpp.org/extensions/xep-0163.html>.
7. XEP-0045: Multi-User Chat <https://xmpp.org/extensions/xep-0045.html>.
8. XEP-0167: Jingle RTP Sessions <https://xmpp.org/extensions/xep-0167.html>.
9. 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 <http://www.iana.org/>.
10. 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 <https://xmpp.org/registrar/>.
11. XEP-0147: XMPP URI Query Components <https://xmpp.org/extensions/xep-0147.html>.
Note: Older versions of this specification might be available at https://xmpp.org/extensions/attic/
Add Jingle query type and XMPP registrar submission.
Add <uri/> element.
Initial published version approved by the XMPP Council.
@report{hancke2014jinglepub, title = {Publishing Available Jingle Sessions}, author = {Hancke, Philipp and Stout, Lance and Saint-Andre, Peter}, type = {XEP}, number = {0358}, version = {0.4}, institution = {XMPP Standards Foundation}, url = {https://xmpp.org/extensions/xep-0358.html}, date = {2014-07-30/2017-09-11}, }
END