No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0111.xml 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM 'xep.ent'>
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>A Transport for Initiating and Negotiating Sessions (TINS)</title>
  10. <abstract>This document defined a SIP-compatible transport for initiating and negotiating sessions using SDP over XMPP.</abstract>
  11. &LEGALNOTICE;
  12. <number>0111</number>
  13. <status>Retracted</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <dependencies>
  17. <spec>XMPP Core</spec>
  18. <spec>RFC 2327</spec>
  19. <spec>RFC 3261</spec>
  20. </dependencies>
  21. <supersedes/>
  22. <supersededby>
  23. <spec>XEP-0166</spec>
  24. </supersededby>
  25. <shortname>tins</shortname>
  26. &hildjj;
  27. &stpeter;
  28. <revision>
  29. <version>0.8</version>
  30. <date>2005-12-21</date>
  31. <initials>psa/jjh</initials>
  32. <remark>Retracted in favor of Jingle (XEP-0166).</remark>
  33. </revision>
  34. <revision>
  35. <version>0.7</version>
  36. <date>2005-05-12</date>
  37. <initials>psa</initials>
  38. <remark>Corrected several errors in the text and schemas.</remark>
  39. </revision>
  40. <revision>
  41. <version>0.6</version>
  42. <date>2004-10-26</date>
  43. <initials>psa/jjh</initials>
  44. <remark>Added extended addresses and SHIM headers to examples in order to illustrate the use of XEP-0033 and XEP-0121.</remark>
  45. </revision>
  46. <revision>
  47. <version>0.5</version>
  48. <date>2004-04-05</date>
  49. <initials>psa/jjh</initials>
  50. <remark>Changed &lt;iq/&gt; to &lt;message/&gt; given probability of multiple SIP responses.</remark>
  51. </revision>
  52. <revision>
  53. <version>0.4</version>
  54. <date>2004-03-16</date>
  55. <initials>psa/jjh</initials>
  56. <remark>Specified that the &lt;sdp/&gt; element is in a separate namespace and that the same mechanism could be used for other content schemes in the future.</remark>
  57. </revision>
  58. <revision>
  59. <version>0.3</version>
  60. <date>2004-03-15</date>
  61. <initials>psa/jjh</initials>
  62. <remark>Replaced SDPng with SDP; added sections for Requirements, Protocol, and Discovering Support; added XML schema.</remark>
  63. </revision>
  64. <revision>
  65. <version>0.2</version>
  66. <date>2003-07-29</date>
  67. <initials>psa</initials>
  68. <remark>Converted to XML format.</remark>
  69. </revision>
  70. <revision>
  71. <version>0.1</version>
  72. <date>2003-02-21</date>
  73. <initials>jjh</initials>
  74. <remark>Internet-Draft version published as draft-hildebrand-xmpp-sdpng-00.</remark>
  75. </revision>
  76. </header>
  77. <section1 topic="Introduction" anchor='intro'>
  78. <p><em>Note Well: This proposal has been retracted by the authors in favor of &xep0166;.</em></p>
  79. <p>The Session Description Protocol (SDP; see &rfc2327;) provides a mechanism for describing multimedia sessions that are advertised and negotiated over the Internet. The "Transport for Initiating and Negotiating Sessions" (TINS) specified herein describes how to use SDP to build a framework for media stream/session initiation and negotiation between entities that natively support XMPP (see &xmppcore;).
  80. <note>The approach taken herein is to send pure SDP. While earlier versions of this document used &sdpng; (an XML representation of SDP), SDPng is a more experimental technology; by contrast, SDP is a stable protocol and there is broad support for it by existing gateways and devices. The use of SDP rather than SDPng thus enables the Jabber/XMPP community to implement solutions that are deployable on the Internet today.</note>
  81. In particular, TINS provides an XMPP representation of standard session management semantics such as those provided by the Session Initiation Protocol (SIP; see &rfc3261;). As a result, native XMPP clients that support TINS can negotiate out-of-band multimedia sessions (e.g., use of the Real-Time Transport Protocol or RTP; see &rfc3550;) and XMPP services that support TINS can easily interoperate with SIP services through gateways.</p>
  82. </section1>
  83. <section1 topic="Requirements" anchor='reqs'>
  84. <p>This document addresses the following requirements:</p>
  85. <ol>
  86. <li>Enable an XMPP entity to negotiate an out-of-band multimedia session with another XMPP entity.</li>
  87. <li>Enable an XMPP entity to negotiate an out-of-band multimedia session with a non-XMPP entity through a gateway.</li>
  88. <li>Maximize interoperability with existing gateways and devices by using standard Internet protocols.</li>
  89. </ol>
  90. </section1>
  91. <section1 topic="Protocol" anchor='protocol'>
  92. <p>TINS exchanges are completed by sending &MESSAGE; stanzas containing a child &lt;tins/&gt; element qualified by the 'http://jabber.org/protocol/tins' namespace.
  93. <note>While it may seem that the semantics of &IQ; stanzas are more appropriate, <cite>RFC 3261</cite> allows entities to send multiple results in response to a SIP request, which does not map to the syntax of the &IQ; stanza as defined in <cite>RFC 6120</cite>.</note>
  94. In order to track the structure of the TINS "conversation", the &THREAD; child of &MESSAGE; MAY also be included. The &lt;tins/&gt; element MUST possess a 'method' attribute, whose value SHOULD be either an IANA-registered value for a SIP method or "result", as described below. The following SIP methods will probably be used most frequently in TINS interactions:</p>
  95. <ul>
  96. <li><p>INVITE -- Used to invite the target user to an out-of-band session. The content inside the &lt;tins/&gt; element MAY be SDP descriptions of the connection types offered. If a session is already established for this transaction, the new INVITE serves as a renegotiation of session parameters.</p></li>
  97. <li><p>ACK -- Used by the initiator to tell the invitee that an out-of-band session has been established.</p></li>
  98. <li><p>BYE -- Used by either side of the conversation to terminate the transaction. This message SHOULD cause all resources associated with this transaction to be freed, and any associated network connections to be terminated.</p></li>
  99. </ul>
  100. <p>The SDP data itself is included as the XML character data of an &lt;sdp/&gt; child of the &lt;tins/&gt; element, qualifed by the 'urn:ietf:rfc:2327' namespace (this is consistent with &rfc2648;).
  101. <note>The &lt;sdp/&gt; element is qualified by a separate namespace because it may be desirable for TINS to support other formats (such as SDPng) in the future; these can then be added without changing the XML schema for TINS.</note>
  102. Any restricted XML characters in the SDP data (i.e., &amp; &apos; &lt; &gt; &quot;) MUST be properly escaped when contained in the XML character data of the &lt;sdp/&gt; element (for example, the ' character MUST be escaped to &amp;apos;). It is the responsibility of the XMPP recipient or translating gateway to unescape these restricted characters for processing.</p>
  103. <p>The request stanza MAY also include either or both of the following:</p>
  104. <ul>
  105. <li>Header information or Internet metadata (such as that defined by <cite>RFC 3261</cite>) in the format specified by &xep0131;.</li>
  106. <li>Multicast addresses as specified by &xep0033;.</li>
  107. </ul>
  108. <p>In reply to a request, the receiver MUST send zero or more replies, with the value of the 'method' attribute set to a value of "result" and the value of the 'code' attribute set to one of the valid SIP response codes as specified in Section 21 of <cite>RFC 3261</cite>.</p>
  109. </section1>
  110. <section1 topic="Discovering Support" anchor='discovery'>
  111. <p>Before initiating a TINS negotiation, an XMPP entity SHOULD determine that the target entity supports the 'http://jabber.org/protocol/tins' namespace. Such discovery SHOULD occur by means of &xep0030;, either directly by querying the target entity or indirectly by means of &xep0115;. If the target entity is a non-XMPP entity that is contacted through a gateway, the gateway itself SHOULD reply to service discovery queries on behalf of the non-XMPP entity and SHOULD insert a client capabilities extension into the presence stanzas it generates on behalf of the non-XMPP entity.</p>
  112. <p>If an XMPP entity receives, or a gateway handles, a &MESSAGE; stanza containing a &lt;tins/&gt; element qualified by the 'http://jabber.org/protocol/tins' namespace but it does not understand the TINS protocol, it SHOULD either silently ignore it or return a &unavailable; error (see &xep0086; for error syntax).</p>
  113. </section1>
  114. <section1 topic="Examples" anchor='examples'>
  115. <section2 topic="Negotiating a Voice Call" anchor='examples-call'>
  116. <p>The following XMPP stanzas could be used to initiate a voice call. The 'from' addresses will usually be added by the XMPP server or relevant gateway, but are shown here for the sake of clarity. Note the inclusion of SHIM headers and extended addresses.</p>
  117. <example caption='Step 1: A sends an invite to B'><![CDATA[
  118. <message
  119. from='A@example.com/work'
  120. to='B@example.com/laptop'
  121. id='tins01'>
  122. <thread>1234@hostA.example.com</thread>
  123. <tins method='INVITE' xmlns='http://jabber.org/protocol/tins'>
  124. <sdp xmlns='urn:ietf:rfc:2327'>
  125. v=0
  126. o=A@example.com 98765432 IN IP4 192.168.1.1
  127. s=TINS questions
  128. i=Let&apos;s talk about TINS
  129. e=A@example.com
  130. p=+1-303-555-1212
  131. c=IN IP4 192.168.1.1/127
  132. t=3288361865 0
  133. a=recvonly
  134. m=audio 7800 RTP/AVP 0
  135. </sdp>
  136. </tins>
  137. <headers xmlns='http://jabber.org/protocol/shim'>
  138. <header name='Via'>SIP/2.0/UDP tins.example.com;branch=z9hG4bK776asdhds</header>
  139. <header name='Call-ID'>a84b4c76e66710@tins.example.com</header>
  140. <header name='CSeq'>314159 INVITE</header>
  141. </headers>
  142. <addresses xmlns='http://jabber.org/protocol/address'>
  143. <address type='bcc' jid='compliance.example.com'/>
  144. </addresses>
  145. </message>
  146. ]]></example>
  147. <example caption='Step 2: B tells A that it is trying'><![CDATA[
  148. <message
  149. from='B@example.com/laptop'
  150. to='A@example.com/work'
  151. id='tins01'>
  152. <thread>1234@hostA.example.com</thread>
  153. <tins method='result'
  154. code='100'
  155. xmlns='http://jabber.org/protocol/tins'/>
  156. <headers xmlns='http://jabber.org/protocol/shim'>
  157. <header name='Via'>SIP/2.0/UDP tins.example.com;branch=z9hG4bK776asdhds</header>
  158. <header name='Call-ID'>a84b4c76e66710@tins.example.com</header>
  159. <header name='CSeq'>314159 INVITE</header>
  160. </headers>
  161. <addresses xmlns='http://jabber.org/protocol/address'>
  162. <address type='bcc' jid='compliance.example.com'/>
  163. </addresses>
  164. </message>
  165. ]]></example>
  166. <example caption='Step 3: B tells A that it is ringing'><![CDATA[
  167. <message
  168. from='B@example.com/laptop'
  169. to='A@example.com/work'
  170. id='tins01'>
  171. <tins method='result'
  172. code='180'
  173. xmlns='http://jabber.org/protocol/tins'/>
  174. <headers xmlns='http://jabber.org/protocol/shim'>
  175. <header name='Via'>SIP/2.0/UDP tins.example.com;branch=z9hG4bK776asdhds</header>
  176. <header name='Call-ID'>a84b4c76e66710@tins.example.com</header>
  177. <header name='CSeq'>314159 INVITE</header>
  178. </headers>
  179. <addresses xmlns='http://jabber.org/protocol/address'>
  180. <address type='bcc' jid='compliance.example.com'/>
  181. </addresses>
  182. </message>
  183. ]]></example>
  184. <example caption='Step 4: B sends an updated description to A'><![CDATA[
  185. <message
  186. from='B@example.com/laptop'
  187. to='A@example.com/work'
  188. id='tins02'>
  189. <thread>1234@hostA.example.com</thread>
  190. <tins method='result'
  191. code='200'
  192. xmlns='http://jabber.org/protocol/tins'>
  193. <sdp xmlns='urn:ietf:rfc:2327'>
  194. v=0
  195. o=A@example.com 98765432 IN IP4 192.168.1.2
  196. s=TINS questions
  197. i=Let&apos;s talk about TINS
  198. e=A@example.com
  199. p=+1-303-555-1212
  200. c=IN IP4 192.168.1.2/127
  201. t=3288361865 0
  202. a=recvonly
  203. m=audio 7800 RTP/AVP 0
  204. a=recvonly
  205. m=audio 9410 RTP/AVP 0
  206. </sdp>
  207. </tins>
  208. <headers xmlns='http://jabber.org/protocol/shim'>
  209. <header name='Via'>SIP/2.0/UDP tins.example.com;branch=z9hG4bK776asdhds</header>
  210. <header name='Call-ID'>a84b4c76e66710@tins.example.com</header>
  211. <header name='CSeq'>314159 INVITE</header>
  212. </headers>
  213. <addresses xmlns='http://jabber.org/protocol/address'>
  214. <address type='bcc' jid='compliance.example.com'/>
  215. </addresses>
  216. </message>
  217. ]]></example>
  218. <example caption='Step 5: A sends an acknowledgement to B'><![CDATA[
  219. <message
  220. from='A@example.com/work'
  221. to='B@example.com/laptop'
  222. id='tins02'>
  223. <thread>1234@hostA.example.com</thread>
  224. <tins method='ACK' xmlns='http://jabber.org/protocol/tins'/>
  225. <headers xmlns='http://jabber.org/protocol/shim'>
  226. <header name='Via'>SIP/2.0/UDP tins.example.com;branch=z9hG4bK776asdhds</header>
  227. <header name='Call-ID'>a84b4c76e66710@tins.example.com</header>
  228. <header name='CSeq'>314159 INVITE</header>
  229. </headers>
  230. <addresses xmlns='http://jabber.org/protocol/address'>
  231. <address type='bcc' jid='compliance.example.com'/>
  232. </addresses>
  233. </message>
  234. ]]></example>
  235. <example caption='Step 6: B hangs up'><![CDATA[
  236. <message
  237. from='B@example.com/laptop'
  238. to='A@example.com/work'
  239. id='tins03'>
  240. <thread>1234@hostA.example.com</thread>
  241. <tins method='BYE' xmlns='http://jabber.org/protocol/tins'/>
  242. <headers xmlns='http://jabber.org/protocol/shim'>
  243. <header name='Via'>SIP/2.0/UDP tins.example.com;branch=z9hG4bK776asdhds</header>
  244. <header name='Call-ID'>a84b4c76e66710@tins.example.com</header>
  245. <header name='CSeq'>314159 INVITE</header>
  246. </headers>
  247. <addresses xmlns='http://jabber.org/protocol/address'>
  248. <address type='bcc' jid='compliance.example.com'/>
  249. </addresses>
  250. </message>
  251. ]]></example>
  252. <example caption='Step 7: A acknowledges the hang up'><![CDATA[
  253. <message
  254. from='A@example.com/work'
  255. to='B@example.com/laptop'
  256. id='tins03'>
  257. <thread>1234@hostA.example.com</thread>
  258. <tins method='result'
  259. code='200'
  260. xmlns='http://jabber.org/protocol/tins'/>
  261. <headers xmlns='http://jabber.org/protocol/shim'>
  262. <header name='Via'>SIP/2.0/UDP tins.example.com;branch=z9hG4bK776asdhds</header>
  263. <header name='Call-ID'>a84b4c76e66710@tins.example.com</header>
  264. <header name='CSeq'>314159 INVITE</header>
  265. </headers>
  266. <addresses xmlns='http://jabber.org/protocol/address'>
  267. <address type='bcc' jid='compliance.example.com'/>
  268. </addresses>
  269. </message>
  270. ]]></example>
  271. </section2>
  272. <p><em>More examples to follow.</em></p>
  273. </section1>
  274. <section1 topic='Security Considerations' anchor='security'>
  275. <p>TINS is subject to the same security considerations as XMPP, particularly with regard to authentication and channel encryption; for details, refer to <cite>RFC 6120</cite>.</p>
  276. <p>This document does not describe how the media protocols (e.g. RTP) traverse firewalls and NATs.</p>
  277. <p>There is no general-purpose way to ensure that media protocol connections are associated with the in-band TINS conversation.</p>
  278. </section1>
  279. <section1 topic='IANA Considerations' anchor='iana'>
  280. <p>This document requires no interaction with &IANA;.</p>
  281. </section1>
  282. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  283. <section2 topic='Protocol Namespaces' anchor='registrar-ns'>
  284. <p>The &REGISTRAR; shall include 'http://jabber.org/protocol/tins' in its registry of protocol namespaces.</p>
  285. </section2>
  286. </section1>
  287. <section1 topic='XML Schemas' anchor='schema'>
  288. <section2 topic='tins' anchor='schema-tins'>
  289. <code><![CDATA[
  290. <?xml version='1.0' encoding='UTF-8'?>
  291. <xs:schema
  292. xmlns:xs='http://www.w3.org/2001/XMLSchema'
  293. targetNamespace='http://jabber.org/protocol/tins'
  294. xmlns='http://jabber.org/protocol/tins'
  295. elementFormDefault='qualified'>
  296. <xs:import namespace='urn:ietf:rfc:2327'/>
  297. <xs:element name='tins'>
  298. <xs:complexType>
  299. <xs:choice xmlns:sdp='urn:ietf:rfc:2327'>
  300. <xs:element ref='sdp:sdp'/>
  301. <xs:any namespace='##other'/>
  302. </xs:choice>
  303. <xs:attribute name='code' type='xs:string' use='optional'/>
  304. <xs:attribute name='method' type='xs:string' use='required'/>
  305. </xs:complexType>
  306. </xs:element>
  307. </xs:schema>
  308. ]]></code>
  309. </section2>
  310. <section2 topic='sdp' anchor='schema-sdp'>
  311. <code><![CDATA[
  312. <?xml version='1.0' encoding='UTF-8'?>
  313. <xs:schema
  314. xmlns:xs='http://www.w3.org/2001/XMLSchema'
  315. targetNamespace='urn:ietf:rfc:2327'
  316. xmlns='urn:ietf:rfc:2327'
  317. elementFormDefault='qualified'>
  318. <xs:element name='sdp' type='xs:string'/>
  319. </xs:schema>
  320. ]]></code>
  321. </section2>
  322. </section1>
  323. </xep>