diff --git a/xep-0155.xml b/xep-0155.xml index 847b565b..248d4fae 100644 --- a/xep-0155.xml +++ b/xep-0155.xml @@ -29,7 +29,7 @@ 0.13 2006-11-16 ip -

Added disclosure field

+

Added disclosure field; changed namespace

0.12 @@ -122,9 +122,9 @@ -

In order to initiate a negotiated chat session, the initiating party ("user") sends a &MESSAGE; The &MESSAGE; stanza is used because the user does not necessarily know which of the contact's resources is most available (or indeed if the contact is online). stanza to the receiving party ("contact") containing a <feature/> child qualified by the 'http://jabber.org/protocol/feature-neg' namespace. The &MESSAGE; stanza MUST NOT contain a &BODY; child element (as specified in &rfc3921;). The &MESSAGE; stanza type SHOULD be "normal" (either explicitly or by non-inclusion of the 'type' attribute). The stanza MUST contain a &THREAD; element for tracking purposes (where the newly-generated ThreadID is unique to the proposed session). The data form MUST contain a hidden FORM_TYPE field whose value is "http://jabber.org/protocol/chatneg" and MUST contain a boolean field named "accept". &BOOLEANNOTE; The inclusion of "otr", "disclosure" and "security" fields is also RECOMMENDED. Note: The options within any 'list-single' fields SHOULD appear in order of preference.

+

In order to initiate a negotiated chat session, the initiating party ("user") sends a &MESSAGE; The &MESSAGE; stanza is used because the user does not necessarily know which of the contact's resources is most available (or indeed if the contact is online). stanza to the receiving party ("contact") containing a <feature/> child qualified by the 'http://jabber.org/protocol/feature-neg' namespace. The &MESSAGE; stanza MUST NOT contain a &BODY; child element (as specified in &rfc3921;). The &MESSAGE; stanza type SHOULD be "normal" (either explicitly or by non-inclusion of the 'type' attribute). The stanza MUST contain a &THREAD; element for tracking purposes (where the newly-generated ThreadID is unique to the proposed session). The data form MUST contain a hidden FORM_TYPE field whose value is "urn:xmpp:chatneg" and MUST contain a boolean field named "accept". &BOOLEANNOTE; The inclusion of "otr", "disclosure" and "security" fields is also RECOMMENDED. Note: The options within any 'list-single' fields SHOULD appear in order of preference.

Note: Chat sessions may be conducted between entities who are never online at the same time. However, if the user is interested only in an immediate chat session then the user SHOULD instruct the contact's server not to store the message for later delivery using the &xep0079; protocol.

-

In the following example of a negotiation request, Romeo requests a chat with Juliet and also queries her regarding whether she wants to enable all message logging (see &xep0136;) A client MUST NOT set the 'otr' field to 'true' unless it has confirmed that its server will allow it to switch off Automated Archiving (see Message Archiving). and support the &xep0071; and &xep0085; extensions during this chat session. He asks Juliet's client if it is prepared to make a (legally binding) guarantee that it does not intentionally implement any feature (not even a disabled feature) that might disclose the content of the chat, any associated (decryption) keys or his identity to any third-party (see Encrypted Sessions). He also requires that they are both connected securely to their servers, and asks which language she prefers amoungst those he can write. (Note: These fields are examples only; a full set of chat session negotiation parameters will be registered as described in the XMPP Registrar Considerations section of this document.)

+

In the following example of a negotiation request, Romeo requests a chat with Juliet and also queries her regarding whether she wants to enable all message logging (see &xep0136;) A client MUST NOT set the 'otr' field to 'true' unless it has confirmed that its server will allow it to switch off Automated Archiving (see Message Archiving). and support the &xep0071; and &xep0085; extensions during this chat session. He asks Juliet's client if it is prepared to make a (legally binding) guarantee that it does not intentionally implement any feature (not even a disabled feature) that might disclose the content of the chat, any associated (decryption) keys or his identity to any third-party (see Encrypted Session Negotiation). He also requires that they are both connected securely to their servers, and asks which language she prefers amoungst those he can write. (Note: These fields are examples only; a full set of chat session negotiation parameters will be registered as described in the XMPP Registrar Considerations section of this document.)

Open chat with Romeo? - http://jabber.org/protocol/chatneg + urn:xmpp:chatneg true @@ -215,7 +215,7 @@ - http://jabber.org/protocol/chatneg + urn:xmpp:chatneg true 0 @@ -245,7 +245,7 @@ - http://jabber.org/protocol/chatneg + urn:xmpp:chatneg 0 @@ -253,7 +253,7 @@ Sorry, can't chat now! How about tonight? ]]> -

If the contact's client does not support feature negotiation or does not support the "http://jabber.org/protocol/chatneg" FORM_TYPE, it SHOULD return a &unavailable; error:

+

If the contact's client does not support feature negotiation or does not support the "urn:xmpp:chatneg" FORM_TYPE, it SHOULD return a &unavailable; error:

- http://jabber.org/protocol/chatneg + urn:xmpp:chatneg ... @@ -281,7 +281,7 @@ - http://jabber.org/protocol/chatneg + urn:xmpp:chatneg ... @@ -303,7 +303,7 @@ - http://jabber.org/protocol/chatneg + urn:xmpp:chatneg ... @@ -318,7 +318,7 @@ ]]>
-

If the contact accepted the chat (see Accepting a Chat) then the user MUST either complete or cancel the session negotitation. If the contact chose an option other than the default (prefered) value for one or more of the fields, then instead of having the client accept the session automatically the user may prefer to review the values that the contact selected before confirming that the session is open. See Encrypted Sessions for examples of other instances where the user might find the values submitted by the contact unacceptable. In any case the user's client SHOULD verify that the selected values are acceptable before completing the session negotitation - and confirming that the chat session is open - by replying with a form with the form 'type' attribute set to 'result'. The form MUST contain the FORM_TYPE field and the "accept" field set to "1" or "true". The user MAY include other content (e.g., a &BODY; element) in the confirmation stanza:

+

If the contact accepted the chat (see Accepting a Chat) then the user MUST either complete or cancel the session negotitation. If the contact chose an option other than the default (prefered) value for one or more of the fields, then instead of having the client accept the session automatically the user may prefer to review the values that the contact selected before confirming that the session is open. See Encrypted Session Negotiation for examples of other instances where the user might find the values submitted by the contact unacceptable. In any case the user's client SHOULD verify that the selected values are acceptable before completing the session negotitation - and confirming that the chat session is open - by replying with a form with the form 'type' attribute set to 'result'. The form MUST contain the FORM_TYPE field and the "accept" field set to "1" or "true". The user MAY include other content (e.g., a &BODY; element) in the confirmation stanza:

- http://jabber.org/protocol/chatneg + urn:xmpp:chatneg true @@ -344,7 +344,7 @@ - http://jabber.org/protocol/chatneg + urn:xmpp:chatneg 0 @@ -364,7 +364,7 @@ - http://jabber.org/protocol/chatneg + urn:xmpp:chatneg PDA @@ -381,7 +381,7 @@ - http://jabber.org/protocol/chatneg + urn:xmpp:chatneg PDA @@ -400,7 +400,7 @@ - http://jabber.org/protocol/chatneg + urn:xmpp:chatneg 1 @@ -422,7 +422,7 @@ - http://jabber.org/protocol/chatneg + urn:xmpp:chatneg 1 @@ -443,7 +443,7 @@ - http://jabber.org/protocol/chatneg + urn:xmpp:chatneg 1 @@ -451,7 +451,7 @@ ]]>

Both parties MUST then consider the chat session to be ended.

-

The other party's client MAY explicitly acknowledge the termination of the chat by sending a &MESSAGE; containing a data form of type "result", and the value of the "terminate" field set to "1" or "true" (see Encrypted Sessions for a practical example). The client MUST mirror the &THREAD; value it received.

+

The other party's client MAY explicitly acknowledge the termination of the chat by sending a &MESSAGE; containing a data form of type "result", and the value of the "terminate" field set to "1" or "true" (see Encrypted Session Negotiation for a practical example). The client MUST mirror the &THREAD; value it received.

- http://jabber.org/protocol/chatneg + urn:xmpp:chatneg 1 @@ -504,10 +504,10 @@
-

The ®ISTRAR; shall include 'http://jabber.org/protocol/chatneg' in its registry of Service Discovery features.

+

The ®ISTRAR; shall include 'urn:xmpp:chatneg' in its registry of Service Discovery features.

- http://jabber.org/protocol/chatneg + urn:xmpp:chatneg Support for Chat Session Negotiation and its FORM_TYPE XEP-0155 @@ -517,7 +517,7 @@

&xep0068; defines a process for standardizing the fields used within Data Forms qualified by a particular namespace. The following fields shall be registered for use in Chat Session Negotiation:

- http://jabber.org/protocol/chatneg + urn:xmpp:chatneg XEP-0155 Forms enabling negotation of a one-to-one