%ents; ]>
Out of Band Data This document provides canonical documentation of two XMPP protocol extensions for communicating URIs. &LEGALNOTICE; 0066 Draft Standards Track Standards JIG XMPP Core oob jabber:iq:oob http://www.xmpp.org/schemas/iq-oob.xsd jabber:x:oob http://www.xmpp.org/schemas/x-oob.xsd &stpeter; 1.5 2006-08-16 psa

Per a vote of the Jabber Council, converted to Standards Track.

1.4 2006-01-11 psa

Removed example of including URL in presence stanza.

1.3 2004-10-18 psa

Added non-normative section on integration with stream initiation (XEP-0095); added optional sid attribute to jabber:iq:oob schema.

1.2 2004-04-13 psa

Clarified that IQ use is for basic file transfer whereas message and presence use is for communication of URIs; added presence example; added references to file transfer JEPs as well as related open issue.

1.1 2004-02-10 psa

Editorial adjustments and clarifications; added references to relevant RFCs.

1.0 2003-10-08 psa

Per a vote of the Jabber Council, changed status to Active.

0.3 2003-06-22 psa

Made several small editorial changes; added XML schemas.

0.2 2003-01-08 psa

Added information about non-HTTP URIs.

0.1 2002-12-16 psa

Initial version.

This document defines two XMPP protocol extensions for communicating URIs between Jabber entities, where the data formats are qualified by the 'jabber:iq:oob' and 'jabber:x:oob' namespaces. Although these mechanisms were originally used for out-of-band (OOB) data transfer, they are also used more generally to exchange or communicate URIs.

The intent of the 'jabber:iq:oob' was to provide a "least common denominator" mechanism for basic file transfers. Although &xep0096; defines a more generic method for communicating file exchange options, the 'jabber:iq:oob' namespace can be included as one option therein since it provides a fallback mechanism when clients do not support file transfer options such as those defined in &xep0065; and &xep0047;.

To initiate an out-of-band file transfer with an intended recipient using the 'jabber:iq:oob' namespace (whether or not negotiated via XEP-0096), the sending application sends an &IQ; of type 'set' to the recipient containing a &QUERY; child element qualified by the 'jabber:iq:oob' namespace; the &QUERY; MUST in turn contain a <url/> child specifying the URL of the file to be transferred, and MAY contain an optional <desc/> child describing the file. This usage is shown in the following example.

http://www.jabber.org/images/psa-license.jpg A license to Jabber! ]]>

The expected result is for the recipient to retrieve the file via an HTTP GET request and to then inform the sender of successful receipt of the file. The receiving application MUST NOT send the IQ result until it has retrieved the complete file (e.g., it MUST NOT send the IQ result if it has merely attempted to retrieve the file or the URL provided seems to be valid):

]]>

If the recipient attempts to retrieve the file but is unable to do so, the receiving application MUST return an &IQ; of type 'error' to the sender specifying a Not Found condition:

http://www.jabber.org/images/psa-license.jpg A license to Jabber! ]]>

If the recipient rejects the request outright, the receiving application MUST return an &IQ; of type 'error' to the sender specifying a Not Acceptable condition:

http://www.jabber.org/images/psa-license.jpg A license to Jabber! ]]>

The 'jabber:x:oob' namespace is used to communicate a URI to another user or application. This is done by including an &X; child element qualified by the 'jabber:x:oob' namespace in either a &MESSAGE; and &PRESENCE; stanza; the &X; child MUST contain a <url/> child specifying the URL of the resource, and MAY contain an optional <desc/> child describing the resource.

Yeah, but do you have a license to Jabber? http://www.jabber.org/images/psa-license.jpg ]]>

The value of the <url/> element is not limited to URIs that conform to the http: URI scheme (as specified by &rfc2616;). For example, file transfers could also be effected using ftp: URIs as (specified by &rfc0959;). Going further afield, several existing Jabber clients use the callto: URI scheme to initiate voice conferencing via NetMeeting or GnomeMeeting. Other out-of-band communications could be initiated in a similar way via URI schemes such as sip: (as specified by &rfc3261;). All of these usages are allowed by the existing OOB namespaces, as long as the value of the <url/> element is a valid URI (as specified by &rfc3986;).

This section is non-normative.

&xep0095; defines methods for negotiating content streams between any two entities, and XEP-0096 defines a profile of stream initiation for file transfer. Although the use of jabber:iq:oob is not recommended by XEP-0096, it could be offered as one option (e.g., a fallback if SOCKS5 Bytestreams and In-Band Bytestreams are not available). If so, the value of the feature negotiation option MUST be "jabber:iq:oob" and the &QUERY; element within the &IQ; stanza qualified by the 'jabber:iq:oob' namespace MUST possess a 'sid' attribute whose value is the StreamID negotiated by stream initiation.

A sample protocol flow is shown below.

]]> to='romeo@montague.net/orchard' id='offer1'> jabber:iq:oob ]]> id='send1'> http://www.shakespeare.lit/files/letter.txt ]]> to='romeo@montague.net/orchard' id='send1'/> ]]>

As with any mechanism that communicates a URI, care must be taken by the receiving application to ensure that the resource retrieved does not contain harmful or malicious data (e.g., a virus-infected file).

This document requires no interaction with &IANA;.

The 'jabber:iq:oob' and 'jabber:x:oob' namespaces are included in the protocol namespaces registry maintained by the ®ISTRAR; (see &NAMESPACES;).

The protocol documented by this schema is defined in XEP-0066: http://www.xmpp.org/extensions/xep-0066.html ]]> The protocol documented by this schema is defined in XEP-0066: http://www.xmpp.org/extensions/xep-0066.html ]]>