From 84402ca56b368c47ab522d2f03c344698568f3c1 Mon Sep 17 00:00:00 2001 From: Peter Saint-Andre Date: Tue, 10 Apr 2007 19:52:36 +0000 Subject: [PATCH] initial version git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@744 4b5297f7-1745-476d-ba37-a9c6900126ab --- xep-0208.xml | 140 ++++++++++++++++++++++++++++++++++++++++++ xep-0209.xml | 170 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 310 insertions(+) create mode 100644 xep-0208.xml create mode 100644 xep-0209.xml diff --git a/xep-0208.xml b/xep-0208.xml new file mode 100644 index 00000000..988cbf9a --- /dev/null +++ b/xep-0208.xml @@ -0,0 +1,140 @@ + + +%ents; +]> + + +
+ Bootstrapping Implementation of Jingle + This document provides guidelines to client developers for bootstrapping implementation of Jingle technologies. + &LEGALNOTICE; + 0208 + Experimental + Informational + Standards + Council + + XMPP Core + XEP-0166 + + + + N/A + &stpeter; + + 0.1 + 2007-04-10 + psa +

Initial published version.

+
+ + 0.0.2 + 2007-03-23 + psa +

Changed echo namespace to be a content description format only; defined basic direct-tcp transport for bootstrapping purposes only.

+
+ + 0.0.1 + 2007-02-27 + psa +

First draft.

+
+
+ + +

&xep0166; defines a framework for negotiating and managing out-of-band data exchange sessions over XMPP. Unfortunately, most developers of XMPP clients have limited experience with multimedia applications such as voice and video, making it difficult to get started with implementation of Jingle technologies. Therefore this document provides a simple transport and session type that client developers can use to bootstrap Jingle implementations.

+

Note: The methods specified herein are provided for experimental use only and are not intended for inclusion in released software or production environments.

+
+ + +

The intent of this simple Jingle profile is to enable exchange of data using the Echo Protocol specified in &rfc0862;. The protocol flow is as follows. (The following examples use &xep0177; as the transport protocol; although it is possible to complete echo protocol exchanges via TCP, that is deemed less useful and there is no Jingle transport for direct TCP exchanges.)

+ + + + + + + + + + + ]]> +

Note: The standard port for the echo protocol is 7. However, since access to that port may be restricted, any other port MAY be negotiated.

+ + ]]> +

If no negotiation is required (e.g., to modify the port number or transport protocol), the receiver simply accepts the session request.

+ + + + + + + + + + + ]]> + + ]]> +

The parties may now exchange data using the echo protocol in order to test the connection.

+

Note: Protocol flows for additional use cases (e.g., renegotiation) will be added to future versions of this specification.

+
+ + +

As noted, the methods specified herein are provided for experimental use only and are not intended for inclusion in released software or production environments.

+

On some operating systems, access to the root or administrative user may be necessary in order to use the echo protocol over TCP or UDP port 7. Therefore it is recommended to negotiate use of the echo protocol on a different port if necessary.

+
+ + +

This document requires no interaction with &IANA;.

+
+ + + +

Because this specification defines an experimental protocol that is to be used only for bootstrapping purposes, the ®ISTRAR; shall not issue a permanent namespace upon approval of this specification. Therefore, its associated namespace shall always be "http://www.xmpp.org/extensions/xep-0208.html#ns".

+
+ +

The XMPP Registrar shall include "echo" in its registry of Jingle content description formats. The registry submission is as follows:

+ + echo + A bootstrapping method for exchanging echo protocol data (see RFC 862). + XEP-0208 + + ]]> +
+
+ + + + + + + + + + + + + + + + ]]> + +
diff --git a/xep-0209.xml b/xep-0209.xml new file mode 100644 index 00000000..62072e66 --- /dev/null +++ b/xep-0209.xml @@ -0,0 +1,170 @@ + + +%ents; +]> + + +
+ Metacontacts + This document specifies an XMPP protocol extension for defining metacontacts and grouping member JIDs. + &LEGALNOTICE; + 0209 + Experimental + Standards Track + Standards JIG + Council + + XMPP Core + XEP-0049 + + + + NOT YET ASSIGNED + &ksmith; + &remko; + + Yann + Le Boulanger + asterix@lagaule.org + asterix@jabber.lagaule.org + + + 0.1 + 2007-04-10 + psa +

Initial published version.

+
+ + 0.0.1 + 2007-03-26 + kis +

First draft.

+
+
+ +

It is often the case that a user will have multiple representations of a single contact, either within one account (as is often the case with contacts using legacy systems through transports) or across several accounts (particularly where a user or contact has separate work and home accounts). As these are different representations of the same logical entity, this XEP provides a method for binding them together into a single meta-contact.

+
+ +

The authors have designed the metacontacts protocol with the following requirements in mind:

+
    +
  • It MUST provide a method of consolidating multiple roster contacts representing the same logical entity both within an account and, if the user utilises multiple accounts, between accounts.
  • +
  • In the case of meta-contacts spanning multiple accounts, the meta-contact data must be resilient to the failure (or simply the absence) of any combination of these accounts. Particularly it MUST NOT rely upon the private storage of one account to store data for other accounts.
  • +
  • It MUST allow a user to order the contacts within a meta-contact in a hierarchy which clients are able to use to determine which should be the default recipient of messages where more than one is available at any time but MUST NOT require the enforcement of a hierarchy.
  • +
+
+ + The metacontact storage is achieved through the use of private data storage. In order to achieve the resilience described above, the private storage of each account is used to store the metacontact membership of Jids in the roster of that account. The metacontacts are stored within private data storage of each account simply as an unordered collection of meta tags. + +]]> + In this example, the 'jid' specifies that the roster entry 'romeo@montague.net' is a member of a metacontact. The 'tag' provides a key for a metacontact; in this example all metacontacts with a tag of 'd93nov' (across all accounts) refer to the same entity. The 'order' denotes the priority of this Jid over other Jids within the metacontact, with it being preferable to use Jids with higher priority (this is roughly analogous to the 'priority' on presence stanzas when a Jid has multiple online resources in XMPP). + + +

Below are example of setting and retrieving metacontacts for an account. When using metacontacts across multiple accounts, the steps are identical and the 'tag' attributes and used across accounts (that is: when the same tag is used for multiple contacts, all entries with the tag are merged into a single metacontact whether they reside on the same of different accounts).

+ +

Upon login, a client will need to know the current state of the metacontact structure and so SHOULD request the state for each account.

+ + + + + +]]> + +

The result of the query will list the metacontact membership for roster entries belonging to the queried account.

+ + + + + + + + + + +]]> +

The meta tags each represent a contact which is a member of a metacontact; as such it is likely that some roster entries for an account will not have corresponding meta tags (if they are not members of a metacontact). Each 'meta' tag MUST have a 'jid' attribute and a 'tag' attribute, an optional 'order' attribute MAY be included.

+

The value of the 'jid' attribute MUST be the bare JID of a contact which is a member of the described metacontact and any jid MUST NOT be specified in this manner as a member of more than one metacontact within an account. A JID specified as a member of a metacontact for an account SHOULD be a member of the roster for that account.

+

The value of the 'tag' is used as a non-human readable unique identifier for a metacontact. In the above example, there are three metacontacts; those with tags of '82a1a5' and '283b94' each have only one contact on this account, while the metacontact with tag tag='ae18f2' contains two contacts.

+

The value of the 'order' attribute is used to suggest preference of some contacts over others within a metacontact; those contacts with a higher order are preferable to those with a lower order. In this example, 'mike@initech.com' is considered preferable to 'mike.bolton@raplovers.org' when communicating with the metacontact with tag 'ae18f2', due to their order of 2 and 1 respectively.

+

Note: It is entirely possible for the query result for an account to indicate that, in isolation from other accounts, there exist metacontacts which contain only a single member contact, as is the case in the above example. The client MUST NOT discard such data, as other accounts belonging to the user (which the client need not have details of) may also have members of this metacontact.

+
+ + + + + + + + + + + + + +]]> + +]]> + + + +
+ + + + + Creation of a metacontact is uncomplicated; the simple addition of meta tag with a common tag results in a new metacontact. + + + Similarly, to remove a metacontact all that is required is to remove the meta tags which contribute to the metacontact. + + +

Although it is unavoidable that multiple contacts within a metacontact MAY have the same order (due to potentially unavailable information from other accounts), clients SHOULD NOT apply the same order to multiple members of the same metacontact where it is possible to avoid it. If multiple members of a metacontact have the same order, the behaviour is dependent upon the client; it MAY apply rules itself to determine which member to communicate with (based upon presence, recent activity or other methods) it MAY present the user with the option to sort the members such that the orders are again unique, or it MAY employ another appropriate action.

+

As the order attribute is optional, clients need a method for determining which member contact to use where the metacontact consists entirely of unordered members. When ordered and unordered members are present, unordered members SHOULD be considered to have the lowest order.

+
+
+ +

Security considerations related to private XML storage are described in XEP-0049; this XEP introduces no additional concerns.

+
+ +

No interaction with &IANA; is required as a result of this XEP.

+
+ +

No namespaces or parameters need to be registered with the ®ISTRAR; as a result of this XEP.

+
+ + + + + + + + + + + + + + + + + + + +]]> + +