Abstract: | This specification defines an XMPP protocol extension that enables an XMPP entity to advertise the fact that it is willing accept a particular Jingle session request. The protocol is used mainly to inform other entities that a particular file is available for transfer via the Jingle File Transfer protocol defined in XEP-0234. |
Authors: | Philipp Hancke, Lance Stout, Peter Saint-Andre |
Copyright: | © 1999 - 2016 XMPP Standards Foundation. SEE LEGAL NOTICES. |
Status: | Experimental |
Type: | Standards Track |
Version: | 0.2 |
Last Updated: | 2015-08-11 |
WARNING: This Standards-Track document is Experimental. Publication as an XMPP Extension Protocol does not imply approval of this proposal by the XMPP Standards Foundation. Implementation of the protocol described herein is encouraged in exploratory implementations, but production systems are advised to carefully consider whether it is appropriate to deploy implementations of this protocol before it advances to a status of Draft.
1. Introduction
2. Use Cases
2.1. Publishing a Jingle Session Request
2.2. Triggering the Stream Initiation Request
3. Security Considerations
4. IANA Considerations
5. XMPP Registrar Considerations
5.1. Protocol Namespaces
6. XML Schema
Appendices
A: Document Information
B: Author Information
C: Legal Notices
D: Relation to XMPP
E: Discussion Venue
F: Requirements Conformance
G: Notes
H: Revision History
This document defines a way for an entity that can initiate a Jingle session (often for the purpose of file transfer as specified in Jingle File Transfer (XEP-0234) [1]) 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) [2] (previously defined for Stream Initiation (XEP-0095) [3]).
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) [4] and Personal Eventing Protocol (XEP-0163) [5]), or sent directly to potential recipients within a <message/> stanza.
The format of the <jinglepub/> element is as follows:
<jinglepub xmlns='urn:xmpp:jinglepub:1' from='sender-jid' id='someid'> [<uri/> element for an alternate or informational URI of the content] [<meta/> element(s) for human-friendly information] [<description/> element(s) for application format(s)] </jinglepub>
The 'from' attribute MUST be present and MUST be the valid JID for the session owner.
The 'id' attribute is an opaque 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.
<iq from='bard@shakespeare.lit/globe' id='yhe51f39' type='set'> <pubsub xmlns='http://jabber.org/protocol/pubsub'> <publish node='scenes'> <jinglepub xmlns='urn:xmpp:jinglepub:1' from='bard@shakespeare.lit' id='9559976B-3FBF-4E7E-B457-2DAA225972BB'> <meta xml:lang='en' title='Act III, Scene I of Hamlet' summary='High-definition audio and video recording for Act III, Scene I of Hamlet, captured last week at the Globe Theatre, London.'/> <description xmlns='urn:xmpp:jingle:apps:rtp:1' media='audio'> <description xmlns='urn:xmpp:jingle:apps:rtp:1' media='video'> </jinglepub> </publish> </pubsub> </iq>
<message from='bard@shakespeare.lit' to='juliet@capulet.com/balcony'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='scenes'> <item id='current'> <jinglepub xmlns='urn:xmpp:jinglepub:1' from='bard@shakespeare.lit' id='9559976B-3FBF-4E7E-B457-2DAA225972BB'> <meta xml:lang='en' title='Act III, Scene I of Hamlet' summary='High-definition audio and video recording for Act III, Scene I of Hamlet, captured last week at the Globe Theatre, London.'/> <description xmlns='urn:xmpp:jingle:apps:rtp:1' media='audio'> <description xmlns='urn:xmpp:jingle:apps:rtp:1' media='video'> </jinglepub> </item> </items> </event> </message>
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) [6]). This can be especially useful for informing an offline entity about an available stream.
<message from='romeo@montague.net/pda' to='juliet@capulet.com'> <jinglepub xmlns='urn:xmpp:jinglepub:1' id='9559976B-3FBF-4E7E-B457-2DAA225972BB'> <meta xml:lang='en' title='Act III, Scene I of Hamlet' summary='High-definition audio and video recording for Act III, Scene I of Hamlet, captured last week at the Globe Theatre, London.'/> <description xmlns='urn:xmpp:jingle:apps:rtp:1' media='audio'> <description xmlns='urn:xmpp:jingle:apps:rtp:1' media='video'> </jinglepub> </message>
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:
<iq type='get' id='jinglepub-request-0' from='juliet@capulet.com/balcony' to='romeo@montague.net/pda'> <start xmlns='urn:xmpp:jinglepub:1' id='9559976B-3FBF-4E7E-B457-2DAA225972BB'/> </iq>
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:
<iq type='result' id='jinglepub-request-0' from='romeo@montague.net/pda' to='juliet@capulet.com/balcony'> <starting xmlns='urn:xmpp:jinglepub:1' sid='851ba2'/> </iq>
Then the sender initiates the Jingle session:
<iq from='romeo@montague.lit/orchard' id='nzu25s8' to='juliet@capulet.lit/balcony' type='set'> <jingle xmlns='urn:xmpp:jingle:1' action='session-initiate' initiator='romeo@montague.lit/orchard' sid='851ba2'> <content creator='initiator' name='scene-audio'> <description xmlns='urn:xmpp:jingle:apps:rtp:1' media='audio'> <payload-type id='101' name='opus' clockrate='48000'> <parameter name='stereo' value='1'/> <parameter name='sprop-stereo' value='1'/> </payload-type> <payload-type id='97' name='speex' clockrate='8000'/> <payload-type id='18' name='G729'/> </description> <transport xmlns='urn:xmpp:jingle:transports:ice-udp:1'> <candidate component='1' foundation='1' generation='0' id='or2ii2syr1' ip='192.0.2.1' network='0' port='3478' priority='2130706431' protocol='udp' type='host'/> </transport> </content> <content creator='initiator' name='scene-video'> <description xmlns='urn:xmpp:jingle:apps:rtp:1' media='video'> <payload-type id='98' name='theora' clockrate='90000'> <parameter name='height' value='600'/> <parameter name='width' value='800'/> <parameter name='delivery-method' value='inline'/> <parameter name='configuration' value='somebase16string'/> <parameter name='sampling' value='YCbCr-4:2:2'/> </payload-type> <payload-type id='28' name='nv' clockrate='90000'/> <payload-type id='25' name='CelB' clockrate='90000'/> <payload-type id='32' name='MPV' clockrate='90000'/> <bandwidth type='AS'>128</bandwidth> </description> <transport xmlns='urn:xmpp:jingle:transports:ice-udp:1'/> </content> </jingle> </iq>
If the requested identifier is not valid, the sender SHOULD respond with a <not-acceptable/> error:
<iq type='error' id='jinglepub-set-1' from='romeo@montague.net/pda' to='juliet@capulet.com/balcony'> <start xmlns='urn:xmpp:jinglepub:1'>9559976B-3FBF-4E7E-B457-2DAA225972BB</start> <error code='405' type='modify'> <not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> </error> </iq>
If the receiver does not have permission to request the data stream, the sender SHOULD respond with a <forbidden/> error:
<iq type='error' id='jinglepub-set-1' from='romeo@montague.net/pda' to='juliet@capulet.com/balcony'> <start xmlns='urn:xmpp:jinglepub:1'>9559976B-3FBF-4E7E-B457-2DAA225972BB</start> <error code='403' type='auth'> <forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> </error> </iq>
This document introduces no security concerns beyond those specified in XEP-0060 and the relevant Jingle application format in use.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [7].
The XMPP Registrar [8] will be requested to include 'urn:xmpp:jinglepub:1' in its registry of protocol namespaces.
<?xml version='1.0' encoding='UTF-8'?> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:xml='http://www.w3.org/XML/1998/namespace' targetNamespace='urn:xmpp:jinglepub:1' xmlns='urn:xmpp:jinglepub:1' elementFormDefault='qualified'> <xs:element name='jinglepub'> <xs:complexType> <xs:all> <xs:any namespace='##other' minOccurs='0' maxOccurs='unbounded'/> <xs:element name='meta' type='metaElementType' minOccurs='0' maxOccurs='unbounded' /> <xs:element name='uri' type='xs:anyURI' minOccurs='0' maxOccurs='1' /> </xs:all> <xs:attribute name='description' type='xs:string' use='optional'/> <xs:attribute name='from' type='xs:string' use='required'/> <xs:attribute name='id' type='xs:string' use='required'/> <xs:attribute name='title' type='xs:string' use='optional'/> </xs:complexType> </xs:element> <xs:complexType name='metaElementType'> <xs:simpleContent> <xs:extension base='empty'> <xs:attribute name='summary' type='xs:string' use='optional'/> <xs:attribute name='title' type='xs:string' use='required'/> <xs:attribute ref='xml:lang' use='optional'/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name='start'> <xs:complexType> <xs:attribute name='id' type='xs:string' use='required'/> </xs:complexType> </xs:element> <xs:element name='starting'> <xs:complexType> <xs:attribute name='sid' type='xs:string' use='required'/> </xs:complexType> </xs:element> </xs:schema>
Series: XEP
Number: 0358
Publisher: XMPP Standards Foundation
Status:
Experimental
Type:
Standards Track
Version: 0.2
Last Updated: 2015-08-11
Approving Body: XMPP Council
Dependencies: XMPP Core, XEP-0030, XEP-0234
Supersedes: None
Superseded By: None
Short Name: jinglepub
Schema: <>
Source Control:
HTML
This document in other formats:
XML
PDF
Email:
fippo@andyet.com
JabberID:
fippo@goodadvice.pages.de
Email:
lance@andyet.com
JabberID:
lance@lance.im
Email:
peter@andyet.net
JabberID:
stpeter@stpeter.im
URI:
https://stpeter.im/
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 <http://xmpp.org/about/discuss.shtml> 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-0234: Jingle File Transfer <http://xmpp.org/extensions/xep-0234.html>.
2. XEP-0137: Publishing Stream Initiation Requests <http://xmpp.org/extensions/xep-0137.html>.
3. XEP-0095: Stream Initiation <http://xmpp.org/extensions/xep-0095.html>.
4. XEP-0060: Publish-Subscribe <http://xmpp.org/extensions/xep-0060.html>.
5. XEP-0163: Personal Eventing Protocol <http://xmpp.org/extensions/xep-0163.html>.
6. XEP-0045: Multi-User Chat <http://xmpp.org/extensions/xep-0045.html>.
7. 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/>.
8. 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 <http://xmpp.org/registrar/>.
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/
Add <uri/> element.
(ls)Initial published version approved by the XMPP Council.
(XEP Editor (psa))END