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-0130.xml 54KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053
  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>Waiting Lists</title>
  10. <abstract>This document defines an XMPP protocol extension that enables a user to add a non-IM user to a waiting list and be informed when the contact creates an IM account.</abstract>
  11. &LEGALNOTICE;
  12. <number>0130</number>
  13. <status>Deprecated</status>
  14. <type>Historical</type>
  15. <sig>Standards</sig>
  16. <dependencies>
  17. <spec>XMPP Core</spec>
  18. <spec>XMPP IM</spec>
  19. <spec>XEP-0094</spec>
  20. <spec>XEP-0030</spec>
  21. </dependencies>
  22. <supersedes/>
  23. <supersededby/>
  24. <shortname>waitinglist</shortname>
  25. <schemaloc>
  26. <url>http://www.xmpp.org/schemas/waitinglist.xsd</url>
  27. </schemaloc>
  28. <expires>2012-10-18</expires>
  29. &stpeter;
  30. <author>
  31. <firstname>Yehezkel</firstname>
  32. <surname>Dallal</surname>
  33. <email>yehezkeld@followap.com</email>
  34. </author>
  35. <author>
  36. <firstname>Alexandre</firstname>
  37. <surname>Nolle</surname>
  38. <email>anolle@francetelecom.com</email>
  39. </author>
  40. <author>
  41. <firstname>Jean-Louis</firstname>
  42. <surname>Seguineau</surname>
  43. <email>jean-louis.seguineau@antepo.com</email>
  44. <jid>jlseguineau@im.antepo.com</jid>
  45. </author>
  46. <author>
  47. <firstname>Mark</firstname>
  48. <surname>Troyer</surname>
  49. <email>mtroyer@jabber.com</email>
  50. <jid>mtroyer@corp.jabber.com</jid>
  51. </author>
  52. &val;
  53. <revision>
  54. <version>1.4</version>
  55. <date>2012-04-18</date>
  56. <initials>psa</initials>
  57. <remark><p>Changed status to Deprecated, per a vote of the XMPP Council.</p></remark>
  58. </revision>
  59. <revision>
  60. <version>1.3</version>
  61. <date>2006-09-13</date>
  62. <initials>psa</initials>
  63. <remark>Clarified alternate flow for main use case; corrected order of errors and JID pushes; specified that item removal is always the responsibility of the IM user; removed remote-server-not-found example (use item-not-found instead).</remark>
  64. </revision>
  65. <revision>
  66. <version>1.2</version>
  67. <date>2006-01-24</date>
  68. <initials>psa</initials>
  69. <remark>Adjusted remote-server-timeout flow to recommend IQ result followed by JID push message.</remark>
  70. </revision>
  71. <revision>
  72. <version>1.1</version>
  73. <date>2005-11-30</date>
  74. <initials>psa</initials>
  75. <remark>Harmonized root element specification with implemented usage, reversing change made in version 0.5.</remark>
  76. </revision>
  77. <revision>
  78. <version>1.0</version>
  79. <date>2005-08-26</date>
  80. <initials>psa</initials>
  81. <remark>Per a vote of the Jabber Council, advanced status to Active.</remark>
  82. </revision>
  83. <revision>
  84. <version>0.6</version>
  85. <date>2005-08-16</date>
  86. <initials>psa</initials>
  87. <remark>Added error case for remote server timeout; specified client and service responsibilities regarding removal of waiting list items in error cases.</remark>
  88. </revision>
  89. <revision>
  90. <version>0.5</version>
  91. <date>2005-05-16</date>
  92. <initials>psa</initials>
  93. <remark>Corrected schema and IQ examples by changing root element for namespace from &lt;query/&gt; to &lt;waitlist/&gt; (this had been used for message examples but not IQ examples).</remark>
  94. </revision>
  95. <revision>
  96. <version>0.4</version>
  97. <date>2005-04-01</date>
  98. <initials>psa</initials>
  99. <remark>Changed document type to Informational; corrected Remote Server Error example to use &remoteserver; rather than &unavailable;; added service discovery identity to XMPP Registrar Considerations; corrected text regarding registration of service discovery features; corrected some small errors in the text, examples, and schema.</remark>
  100. </revision>
  101. <revision>
  102. <version>0.3</version>
  103. <date>2004-09-27</date>
  104. <initials>psa</initials>
  105. <remark>Corrected error syntax used when Contact URI is not handled by any InteropPartner.</remark>
  106. </revision>
  107. <revision>
  108. <version>0.2</version>
  109. <date>2004-09-03</date>
  110. <initials>psa</initials>
  111. <remark>Added alternate flow for situation in which Contact URI is not handled by any InteropPartner; changed headline message type for JID pushes from SHOULD to MAY; clarified semantics of item ID; added name child of item; corrected and updated the XML schema; updated examples to use XMPP error conditions.</remark>
  112. </revision>
  113. <revision>
  114. <version>0.1</version>
  115. <date>2004-03-18</date>
  116. <initials>psa</initials>
  117. <remark>Initial version.</remark>
  118. </revision>
  119. <revision>
  120. <version>0.0.10</version>
  121. <date>2003-09-03</date>
  122. <initials>psa</initials>
  123. <remark>Fixed several small errors in the examples.</remark>
  124. </revision>
  125. <revision>
  126. <version>0.0.9</version>
  127. <date>2003-08-22</date>
  128. <initials>psa</initials>
  129. <remark>Specified optional use of message type 'headline'; fixed one small error in the examples.</remark>
  130. </revision>
  131. <revision>
  132. <version>0.0.8</version>
  133. <date>2003-07-23</date>
  134. <initials>psa</initials>
  135. <remark>Changed client-server push mechanism to use &lt;message/&gt; rather than &lt;iq/&gt;, since client may not be online; allowed IQ result to include waitlist information if known; added more detailed disco#info lookup to support discovery of URI types supported.</remark>
  136. </revision>
  137. <revision>
  138. <version>0.0.7</version>
  139. <date>2003-07-02</date>
  140. <initials>psa</initials>
  141. <remark>Modified to use a generic &lt;uri scheme=''/&gt; element.</remark>
  142. </revision>
  143. <revision>
  144. <version>0.0.6</version>
  145. <date>2003-06-26</date>
  146. <initials>psa</initials>
  147. <remark>Refactored protocol to use IQ sets that are "pushed" to the component or client (similar to XMPP rosters); added service discovery and agents support; made text more generic; simplified error handling; change name to "Waiting Lists".</remark>
  148. </revision>
  149. <revision>
  150. <version>0.0.5</version>
  151. <date>2003-06-24</date>
  152. <initials>psa</initials>
  153. <remark>Added remove use case and protocol; added XML schema.</remark>
  154. </revision>
  155. <revision>
  156. <version>0.0.4</version>
  157. <date>2003-06-19</date>
  158. <initials>psa</initials>
  159. <remark>Specified protocol.</remark>
  160. </revision>
  161. <revision>
  162. <version>0.0.3</version>
  163. <date>2003-06-18</date>
  164. <initials>psa</initials>
  165. <remark>Simplified requirements; defined main use case.</remark>
  166. </revision>
  167. <revision>
  168. <version>0.0.2</version>
  169. <date>2003-06-16</date>
  170. <initials>psa</initials>
  171. <remark>Converted to XML format; formalized use case definitions; minor editorial changes.</remark>
  172. </revision>
  173. <revision>
  174. <version>0.0.1</version>
  175. <date>2003-06-10</date>
  176. <initials>an</initials>
  177. <remark>First draft.</remark>
  178. </revision>
  179. </header>
  180. <section1 topic="Introduction" anchor='intro'>
  181. <p>An IM user may want to be informed when a contact creates an IM account. If the user knows some information about the contact (e.g., a phone number or email address), the user's service can use that information to place the contact on a "waiting list", then inform the user when the contact creates an IM account. This document defines an extension to &xmppcore; and &xmppim; that enables such "waiting list" functionality, including the ability to add contacts on other domains if service providers agree to interoperate (e.g., to add a contact who uses a different mobile telephony service provider).</p>
  182. <p><em>Note: The protocol defined herein is currently in use at several large service providers in Europe. Others are welcome to use the protocol.</em></p>
  183. </section1>
  184. <section1 topic="Glossary" anchor='glossary'>
  185. <dl>
  186. <di>
  187. <dt>Contact</dt>
  188. <dd>A person with whom an IM User seeks to communicate, identified by a URI such as &lt;tel:PhoneNumber&gt; (see &rfc3966;) or &lt;mailto:EmailAddress&gt; (see &rfc2368;).</dd>
  189. </di>
  190. <di>
  191. <dt>Customer</dt>
  192. <dd>A person who is contracted for services with a ServiceProvider.</dd>
  193. </di>
  194. <di>
  195. <dt>IM User</dt>
  196. <dd>Any Customer who has registered for instant messaging services.</dd>
  197. </di>
  198. <di>
  199. <dt>InteropPartner</dt>
  200. <dd>Any company that agrees to interoperate using the protocol defined herein.</dd>
  201. </di>
  202. <di>
  203. <dt>JID</dt>
  204. <dd>The unique identifier of an IM User in the XMPP protocol. Outside the context of an IM session, a JID is of the form &BAREJID; ("bare JID"); within the context of an IM session, a JID is of the form &FULLJID; ("full JID").</dd>
  205. </di>
  206. <di>
  207. <dt>ServiceProvider</dt>
  208. <dd>A company that provides telephony or email services to a Customer.</dd>
  209. </di>
  210. <di>
  211. <dt>URI</dt>
  212. <dd>A Uniform Resource Identifier as defined in &rfc3986;. Specific URI schemes that may be useful in this specification include 'tel:', 'mailto:', and 'sip:', but any URI scheme may be used.</dd>
  213. </di>
  214. <di>
  215. <dt>Waiting List</dt>
  216. <dd>A list of Contacts whom an entity (IM User or InteropPartner) is waiting to hear about regarding their status as instant messaging users.</dd>
  217. </di>
  218. <di>
  219. <dt>WaitingListService</dt>
  220. <dd>An XMPP service that maintains Waiting lists for IM Users and/or InteropPartners.</dd>
  221. </di>
  222. </dl>
  223. </section1>
  224. <section1 topic="Requirements" anchor='reqs'>
  225. <p>This protocol is designed so that an IM User can:</p>
  226. <ol>
  227. <li>Request the user's current Waiting List</li>
  228. <li>Add a Contact to a local WaitingList (based on some URI associated with the Contact)</li>
  229. <li>Receive notification from a local WaitingListService if the Contact has (or subsequently creates) an IM account</li>
  230. <li>Remove a Contact from the Waiting List</li>
  231. </ol>
  232. <p>In addition, this protocol is designed so that a ServiceProvider can:</p>
  233. <ol>
  234. <li>Request the service's current WaitingList</li>
  235. <li>Add a Contact to a WaitingList at an InteroPartner (based on some URI associated with the Contact)</li>
  236. <li>Receive notification from the InteropPartner if the Contact has (or subsequently creates) an IM account</li>
  237. <li>Remove a Contact from the Waiting List</li>
  238. </ol>
  239. </section1>
  240. <section1 topic="Use Cases" anchor='usecases'>
  241. <section2 topic="IM User Retrieves Current WaitingList" anchor='imuser-retrieve'>
  242. <p>Before adding or removing Contacts from its WaitingList, an IM User SHOULD retrieve its current WaitingList. The activity flow is as follows:</p>
  243. <section3 topic="Primary Flow" anchor='imuser-retrieve-primary'>
  244. <ol>
  245. <li>IM User discovers WaitingListService hosted by ServiceProvider [A1]; it is RECOMMENDED to do this immediately after logging in.</li>
  246. <li>IM User requests current WaitingList from WaitingListService.</li>
  247. <li>WaitingListService returns WaitingList to IM User, including any items for which JIDs have been discovered. [A2]</li>
  248. </ol>
  249. </section3>
  250. <section3 topic="Alternate Flows" anchor='imuser-retrieve-alt'>
  251. <ol>
  252. <li>ServiceProvider does not host a WaitingListService:
  253. <ol>
  254. <li>Use Case Ends unsuccessfully.</li>
  255. </ol>
  256. </li>
  257. <li>IM User does not have a Waiting List:
  258. <ol>
  259. <li>WaitingListService returns &notfound; error to IM User.</li>
  260. <li>Use Case Ends unsuccessfully.</li>
  261. </ol>
  262. </li>
  263. </ol>
  264. </section3>
  265. </section2>
  266. <section2 topic="IM User Adds Contact to WaitingList" anchor='imuser-add'>
  267. <p>An IM User may know a URI for a Contact (e.g., a phone number or email address) but not the Contact's JID. In order to subscribe to the Contact's presence or otherwise communicate with the Contact over an instant messaging system, the IM User first needs to discover the Contact's JID based on a URI for the Contact. However, the Contact may not yet have an IM account. Because the IM User may therefore need to wait until the Contact creates an account, the IM User needs to add the Contact to a WaitingList. The activity flow is as follows:</p>
  268. <section3 topic="Primary Flow" anchor='imuser-add-primary'>
  269. <ol>
  270. <li>IM User completes <link url='#imuser-retrieve'>IM User Retrieves Current WaitingList</link> use case.</li>
  271. <li>IM User requests addition of Contact to WaitingList based on Contact's URI.</li>
  272. <li>WaitingListService determines that the URI scheme is supported. [A1]</li>
  273. <li>WaitingListService determines that the information provided is a valid URI for that URI scheme. [A2]</li>
  274. <li>WaitingListService determines that Contact's URI does not belong to a person served by ServiceProvider. [A3]</li>
  275. <li>WaitingListService acknowledges addition of Contact to IM User's WaitingList.</li>
  276. <li>WaitingListService discovers WaitingListServices hosted by one or more InteropPartners.</li>
  277. <li>WaitingListService queries one or more InteropPartner's WaitingListServices for JID associated with URI.</li>
  278. <li>InteropPartner's WaitingListService determines that Contact's URI belongs to a person served by that partner. [A4]</li>
  279. <li>InteropPartner's WaitingListService determines that Contact is an IM User. [A5]</li>
  280. <li>InteropPartner's WaitingListService informs ServiceProvider's WaitingListService of JID associated with Contact's URI. [A6] [A10]</li>
  281. <li>ServiceProvider's WaitingListService informs IM User of Contact's JID. [A8]</li>
  282. <li>IM User completes <link url='#imuser-remove'>IM User Removes Contact from WaitingList</link> use case.</li>
  283. <li>Use Case Ends.</li>
  284. </ol>
  285. </section3>
  286. <section3 topic="Alternate Flows" anchor='imuser-add-alt'>
  287. <ol>
  288. <li>The URI scheme is not supported:
  289. <ol>
  290. <li>WaitingListService sends &badrequest; error to IM User and does not add contact to WaitingList.</li>
  291. <li>Use Case Ends unsuccessfully.</li>
  292. </ol>
  293. </li>
  294. <li>The information provided is not a valid URI:
  295. <ol>
  296. <li>WaitingListService sends &notacceptable; error to IM User and does not add contact to WaitingList.</li>
  297. <li>Use Case Ends unsuccessfully.</li>
  298. </ol>
  299. </li>
  300. <li>URI belongs to person served by ServiceProvider:
  301. <ol>
  302. <li>WaitingListService determines that Contact is an IM User registered with ServiceProvider [A7].</li>
  303. <li>WaitingListService informs IM User of Contact's JID. [A9]</li>
  304. <li>IM User completes <link url='#imuser-remove'>IM User Removes Contact from WaitingList</link> use case.</li>
  305. <li>Use Case Ends.</li>
  306. </ol>
  307. </li>
  308. <li>URI does not belong to a person served by InteropPartner:
  309. <ol>
  310. <li>InteropPartner sends &notfound; error to WaitingListService.</li>
  311. <li>If all InteropPartners queried return &notfound; error, WaitingListService sends &notfound; error (or local equivalent) to IM User.</li>
  312. <li>IM User completes <link url='#imuser-remove'>IM User Removes Contact from WaitingList</link> use case.</li>
  313. <li>Use Case Ends unsuccessfully.</li>
  314. </ol>
  315. </li>
  316. <li>Contact is not an IM User registered with InteropPartner:
  317. <ol>
  318. <li>InteropPartner records and acknowledges WaitingListService's request for JID associated with URI.</li>
  319. <li>OPTIONALLY, InteropPartner invites Contact to register as an IM User.</li>
  320. <li>Contact registers.</li>
  321. <li>InteropPartner informs Service Provider's WaitingListService of JID associated with Contact's URI.</li>
  322. <li>ServiceProvider's WaitingListService informs all IM Users who requested JID associated with Contact's URI.</li>
  323. <li>IM User completes <link url='#imuser-remove'>IM User Removes Contact from WaitingList</link> use case.</li>
  324. <li>Use Case Ends.</li>
  325. </ol>
  326. </li>
  327. <li>InteropPartner refuses to provide service to ServiceProvider:
  328. <ol>
  329. <li>InteropPartner's WaitingListService sends &notauthorized; error to ServiceProvider's WaitingListService.</li>
  330. <li>If all other InteropPartners also return errors, WaitingListService returns &notfound; error to IM User.</li>
  331. <li>Use Case Ends unsuccessfully.</li>
  332. </ol>
  333. </li>
  334. <li>Contact is not an IM User registered with ServiceProvider:
  335. <ol>
  336. <li>WaitingListService records IM User's request for JID associated with URI.</li>
  337. <li>OPTIONALLY, WaitingListService invites Contact to register as an IM User.</li>
  338. <li>Contact registers.</li>
  339. <li>WaitingListService informs all IM Users who requested JID associated with Contact's URI.</li>
  340. <li>IM User completes <link url='#imuser-remove'>IM User Removes Contact from WaitingList</link> use case.</li>
  341. <li>Use Case Ends.</li>
  342. </ol>
  343. </li>
  344. <li>Contact's URI is not handled by any ServiceProvider:
  345. <ol>
  346. <li>WaitingListService informs all IM Users who requested JID associated with Contact's URI that no InteropPartner services Contact's URI.</li>
  347. <li>IM User completes <link url='#imuser-remove'>IM User Removes Contact from WaitingList</link> use case.</li>
  348. <li>Use Case Ends unsuccessfully.</li>
  349. </ol>
  350. </li>
  351. <li>IM User completes <link url='#imuser-remove'>IM User Removes Contact from WaitingList</link> use case.
  352. <ol>
  353. <li>ServiceProvider's WaitingListService removes item from WaitingList.</li>
  354. <li>Use Case Ends unsuccessfully.</li>
  355. </ol>
  356. </li>
  357. <li>All Users Remove Contact from Their WaitingLists
  358. <ol>
  359. <li>ServiceProvider's WaitingListService removes item from WaitingList at InteropPartner's WaitingListService.</li>
  360. <li>Use Case Ends unsuccessfully.</li>
  361. </ol>
  362. </li>
  363. </ol>
  364. </section3>
  365. </section2>
  366. <section2 topic="IM User Removes Contact from WaitingList" anchor='imuser-remove'>
  367. <p>An IM User should remove a contact from the WaitingList after the <link url='#imuser-add'>IM User Adds Contact to WaitingList</link> use case ends (either successfully or unsuccessfully), and may remove a contact from the WaitingList at any other time.</p>
  368. <section3 topic="Primary Flow" anchor='imuser-remove-primary'>
  369. <ol>
  370. <li>IM User sends removal request to WaitingListService.</li>
  371. <li>WaitingListService removes IM User's request for JID associated with URI.</li>
  372. <li>WaitingListService informs IM User of successful removal [A1].</li>
  373. <li>WaitingListService sends removal request to appropriate InteropPartner's WaitingListService [A2].</li>
  374. <li>InteropPartner's WaitingListService determines that URI belongs to a person served by that partner.</li>
  375. <li>InteropPartner's WaitingListService removes ServiceProvider's WaitingListService's request for JID.</li>
  376. <li>InteropPartner's WaitingListService informs ServiceProvider's WaitingListService of successful removal.</li>
  377. <li>Use Case Ends.</li>
  378. </ol>
  379. </section3>
  380. <section3 topic="Alternate Flows" anchor='imuser-remove-alt'>
  381. <ol>
  382. <li>IM User never requested JID associated with URI:
  383. <ol>
  384. <li>WaitingListService sends &notfound; error to IM User.</li>
  385. <li>Use Case Ends.</li>
  386. </ol>
  387. </li>
  388. <li>Contact URI is served by WaitingListService or IM User was not the only person who requested the JID:
  389. <ol>
  390. <li>Use Case Ends.</li>
  391. </ol>
  392. </li>
  393. </ol>
  394. </section3>
  395. </section2>
  396. </section1>
  397. <section1 topic="Protocol" anchor='protocol'>
  398. <section2 topic="IM User Interaction With WaitingListService" anchor='protocol-imuser'>
  399. <p>
  400. <em>This section of the document is provided for the sake of domains that implement XMPP as their local protocol; domains that implement another protocol will use their service-specific protocol to complete the user-to-domain interaction.</em>
  401. </p>
  402. <section3 topic="IM User Retrieves Current WaitingList" anchor='protocol-imuser-retrieve'>
  403. <p>It is RECOMMENDED for an IM User's client to retrieve the WaitingList immediately after logging in. However, first it must discover its local WaitingListService. An IM User MAY use either &xep0030; or the deprecated &xep0094; protocol.</p>
  404. <example caption="IM User Discovers WaitingListService by Sending Agent Information Request to its Server"><![CDATA[
  405. <iq type='get' id='agent1'>
  406. <query xmlns='jabber:iq:agents'/>
  407. </iq>
  408. ]]></example>
  409. <example caption="Server Returns Address of its WaitingListService"><![CDATA[
  410. <iq type='result' id='agent1'>
  411. <query xmlns='jabber:iq:agents'>
  412. ...
  413. <agent jid='waitlist.service-provider.com'>
  414. <name>Waiting List Service</name>
  415. <service>waitinglist</service>
  416. </agent>
  417. ...
  418. </query>
  419. </iq>
  420. ]]></example>
  421. <example caption="IM User Discovers WaitingListService by Sending Service Discovery Request to its Server"><![CDATA[
  422. <iq type='get' id='disco1'>
  423. <query xmlns='http://jabber.org/protocol/disco#items'/>
  424. </iq>
  425. ]]></example>
  426. <example caption="Server Returns Address of its WaitingListService"><![CDATA[
  427. <iq type='result' id='disco1'>
  428. <query xmlns='http://jabber.org/protocol/disco#items'>
  429. ...
  430. <item jid='waitlist.service-provider.com'
  431. name='Waiting List Service'/>
  432. ...
  433. </query>
  434. </iq>
  435. ]]></example>
  436. <example caption="IM User Queries WaitingListService for Detailed Information"><![CDATA[
  437. <iq type='get'
  438. from='user@service-provider.com/resource'
  439. to='waitlist.service-provider.com'
  440. id='disco2'>
  441. <query xmlns='http://jabber.org/protocol/disco#info'/>
  442. </iq>
  443. ]]></example>
  444. <p>The WaitingListService SHOULD return detailed information about the service it provides, including the URI schemes it supports (see also the <link url='#registrar-features'>Service Discovery Features</link> section of this document).</p>
  445. <example caption="WaitingListService Returns Detailed Information"><![CDATA[
  446. <iq type='result'
  447. from='waitlist.service-provider.com'
  448. to='user@service-provider.com/resource'
  449. id='disco2'>
  450. <query xmlns='http://jabber.org/protocol/disco#info'>
  451. <identity category='directory' type='waitinglist'/>
  452. <feature var='http://jabber.org/protocol/waitinglist'/>
  453. <feature var='http://jabber.org/protocol/waitinglist/schemes/mailto'/>
  454. <feature var='http://jabber.org/protocol/waitinglist/schemes/tel'/>
  455. </query>
  456. </iq>
  457. ]]></example>
  458. <p>Once an IM User has discovered the WaitingListService, the user's client SHOULD request its current Waiting List. This is done by sending an IQ-get to the WaitingListService containing an empty &lt;query/&gt; element qualified by the 'http://jabber.org/protocol/waitinglist' namespace:</p>
  459. <example caption="IM User Requests its Current WaitingList"><![CDATA[
  460. <iq type='get'
  461. from='user@service-provider.com/resource'
  462. to='waitlist.service-provider.com'
  463. id='request1'>
  464. <query xmlns='http://jabber.org/protocol/waitinglist'/>
  465. </iq>
  466. ]]></example>
  467. <p>Upon request, the WaitingListService MUST return the current WaitingList to the IM User:</p>
  468. <example caption="WaitingListService Returns WaitingList to IM User"><![CDATA[
  469. <iq type='result'
  470. from='waitlist.service-provider.com'
  471. to='user@service-provider.com/resource'
  472. id='request1'>
  473. <query xmlns='http://jabber.org/protocol/waitinglist'>
  474. <item id='12345'>
  475. <uri scheme='tel'>3033083282</uri>
  476. <name>PSA</name>
  477. </item>
  478. <item id='23456'>
  479. <uri scheme='mailto'>editor@xmpp.org</uri>
  480. <name>XMPP Extensions Editor</name>
  481. </item>
  482. </query>
  483. </iq>
  484. ]]></example>
  485. <p>Each ItemID MUST be unique within the scope of the client's WaitingList items. The value of the ItemID is an opaque string; an implementation MAY assign semantic meaning to the ItemID (e.g., id="John Smith (mobile)" rather than id="12345"), but such meaning is implementation-specific and outside the scope of the protocol defined herein. The user MAY include a &lt;name/&gt; element containing a natural-language name for the Contact.</p>
  486. <p>The WaitingList MAY contain an item for which a JID has been discovered.</p>
  487. <example caption="IM User Asks for its WaitingList including Newly Discovered JID"><![CDATA[
  488. <iq type='get'
  489. from='user@service-provider.com/resource'
  490. to='waitlist.service-provider.com'
  491. id='jidask1'>
  492. <query xmlns='http://jabber.org/protocol/waitinglist'/>
  493. </iq>
  494. <iq type='result'
  495. from='waitlist.service-provider.com'
  496. to='user@service-provider.com/resource'
  497. id='jidask1'>
  498. <query xmlns='http://jabber.org/protocol/waitinglist'>
  499. <item id='12345' jid='stpeter@jabber.org'>
  500. <uri scheme='tel'>3033083282</uri>
  501. <name>PSA</name>
  502. </item>
  503. <item id='23456'>
  504. <uri scheme='mailto'>editor@xmpp.org</uri>
  505. <name>XMPP Extensions Editor</name>
  506. </item>
  507. </query>
  508. </iq>
  509. ]]></example>
  510. </section3>
  511. <section3 topic="IM User Adds Contact to WaitingList" anchor='protocol-imuser-add'>
  512. <p>Once an IM User's client has discovered the WaitingListService and requested the user's WaitingList, the user can add Contacts to the WaitingList based on the Contact's URI. (Note: This document uses the example of phone numbers via the 'tel' URI scheme, but the same rules apply to WaitingList items based on email addresses or other URI schemes.)</p>
  513. <example caption="IM User Requests Addition of Contact to WaitingList"><![CDATA[
  514. <iq type='set'
  515. to='waitlist.service-provider.com'
  516. id='waitinglist1'>
  517. <query xmlns='http://jabber.org/protocol/waitinglist'>
  518. <item>
  519. <uri scheme='tel'>contact-number</uri>
  520. <name>contact-name</name>
  521. </item>
  522. </query>
  523. </iq>
  524. ]]></example>
  525. <p>As described below, various error conditions may occur. (For information about error syntax, refer to <cite>RFC 6120</cite> and &xep0086;.)</p>
  526. <p>If the IM User provided a URI whose scheme is not supported, WaitingListService MUST return a &badrequest; error to the IM User and MUST NOT add the Contact to the WaitingList.</p>
  527. <example caption='WaitingListService Returns &badrequest; Error to IM User'><![CDATA[
  528. <iq type='error'
  529. from='waitlist.service-provider.com'
  530. to='user@service-provider.com/resource'
  531. id='waitinglist1'>
  532. <query xmlns='http://jabber.org/protocol/waitinglist'>
  533. <item>
  534. <uri scheme='tag'>shakespeare.lit,2005-08:waitlist1</uri>
  535. <name>contact-name</name>
  536. </item>
  537. </query>
  538. <error code='400' type='modify'>
  539. <bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  540. </error>
  541. </iq>
  542. ]]></example>
  543. <p>If the IM User included a JID in the request, WaitingListService MUST return a &badrequest; error to IM User and MUST NOT add the Contact to the WaitingList. (Note: A WaitingListService MUST NOT return a non-XMPP URI to an IM User based on the Contact's JID; see the <link url='#security'>Security Considerations</link> section of this document.)</p>
  544. <example caption='WaitingListService Returns &badrequest; Error to IM User'><![CDATA[
  545. <iq type='error'
  546. from='waitlist.service-provider.com'
  547. to='user@service-provider.com/resource'
  548. id='waitinglist1'>
  549. <query xmlns='http://jabber.org/protocol/waitinglist'>
  550. <item jid='some-jid'>
  551. <uri scheme='tel'>contact-number</uri>
  552. <name>contact-name</name>
  553. </item>
  554. </query>
  555. <error code='400' type='modify'>
  556. <bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  557. </error>
  558. </iq>
  559. ]]></example>
  560. <p>If the IM User provided an invalid URI (e.g., a phone number with too many digits or an email address with no '@' character), WaitingListService MUST return a &notacceptable; error to the IM User and MUST NOT add the Contact to the WaitingList.</p>
  561. <example caption='WaitingListService Returns &notacceptable; Error to IM User'><![CDATA[
  562. <iq type='error'
  563. from='waitlist.service-provider.com'
  564. to='user@service-provider.com/resource'
  565. id='waitinglist1'>
  566. <query xmlns='http://jabber.org/protocol/waitinglist'>
  567. <item>
  568. <uri scheme='tel'>+1234563033083283</uri>
  569. <name>contact-name</name>
  570. </item>
  571. </query>
  572. <error code='406' type='modify'>
  573. <not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  574. </error>
  575. </iq>
  576. ]]></example>
  577. <p>If one of the foregoing errors was generated (all of which have a type of "modify"), IM User SHOULD modify the request and re-submit it.</p>
  578. <p>If none of the "modify" errors was generated, WaitingListService MUST inform the IM User that the request was successfully received, including a unique ID number for the new WaitingList item.</p>
  579. <example caption="WaitingListService Informs IM User that Request was Received"><![CDATA[
  580. <iq type='result'
  581. from='waitlist.service-provider.com'
  582. to='user@service-provider.com/resource'
  583. id='waitinglist1'>
  584. <query xmlns='http://jabber.org/protocol/waitinglist'>
  585. <item id='34567'/>
  586. </query>
  587. </iq>
  588. ]]></example>
  589. <p>If none of the "modify" errors was generated and WaitingListService knows Contact JID when the IQ result is returned to the user (e.g., because Contact is served by ServiceProvider), WaitingListService MAY include the WaitingList item in the IQ result: <note>Even if WaitingListService returns Contact JID in the IQ-result, it MUST also send a "JID push" message.</note></p>
  590. <example caption="WaitingListService Returns IQ Result to IM User (With Contact JID)"><![CDATA[
  591. <iq type='result'
  592. from='waitlist.service-provider.com'
  593. to='user@service-provider.com/resource'
  594. id='waitinglist1'>
  595. <query xmlns='http://jabber.org/protocol/waitinglist'>
  596. <item id='34567' jid='contact@service-provider.com'>
  597. <uri scheme='tel'>contact-number</uri>
  598. <name>contact-name</name>
  599. </item>
  600. </query>
  601. </iq>
  602. ]]></example>
  603. <p>If none of the "modify" errors was generated and WaitingListService does not know Contact JID when the IQ result is returned to the user, it needs to contact InteropPartners in order to determine if the Contact is associated with one of the InteropPartners. Thus before it returns the Contact JID to the IM User, it needs to wait for the one of the InteropPartners to return Contact JID or for all of the InteropPartners to return errors.</p>
  604. <p>If all of the InteropPartners return an error of type "cancel" (typically &notfound; and/or &notauthorized;) to WaitingListService, WaitingListService MUST return an &notfound; error (or local equivalent) to the IM User (and IM User SHOULD complete <link url='#imuser-remove'>IM User Removes Contact from WaitingList</link> use case).</p>
  605. <example caption='WaitingListService Returns &notfound; Error to IM User'><![CDATA[
  606. <message
  607. type='error'
  608. from='waitlist.service-provider.com'
  609. to='user@service-provider.com/resource'
  610. id='waitinglist1'>
  611. <waitlist xmlns='http://jabber.org/protocol/waitinglist'>
  612. <item>
  613. <uri scheme='tel'>+1234563033083283</uri>
  614. <name>contact-name</name>
  615. </item>
  616. </waitlist>
  617. <error code='404' type='cancel'>
  618. <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  619. </error>
  620. </message>
  621. ]]></example>
  622. <p>If the connection to at least one of the InteropPartners times out (a &timeout; error), WaitingListService MUST return an IQ-result as described above (indicating that the request was received) and resend the request to the InteropPartners that timed out. If connections continue to time out (over some configurable time period and for some configurable number of retries), WaitingListService SHOULD then return a &timeout; error to IM User via a "JID push" message as shown below.</p>
  623. <p>If InterPartner's WaitingListService knows the Contact JID, it sends it to ServiceProvider's WaitingListService as shown in the <link url='#protocol-service-add'>ServiceProvider's WaitingListService Adds Contact to WaitingList</link> section of this document.</p>
  624. <p>If WaitingListService knows Contact JID (or learns Contact JID from InteropPartner), it MUST inform IM User through a "JID push" message, which consists of a message stanza that contains a &lt;waitlist/&gt; element qualified by the 'http://jabber.org/protocol/waitinglist' namespace:
  625. <note>When waiting list information is included in a message stanza, the root element for the 'http://jabber.org/protocol/waitinglist' namespace is &lt;waitlist/&gt; rather than &lt;query/&gt; (as used within IQ stanzas). This disparity is historical and tracks the protocol syntax that was most widely implemented, as defined in version 0.4 of this specification. In the interest of interoperability, the IQ usage was changed back to &lt;query/&gt; in version 1.1 of this specification. If this document were not historical, the root element usage would be harmonized to use only the &lt;waitlist/&gt; element.</note>
  626. </p>
  627. <example caption="WaitingListService Pushes Contact's JID to IM User"><![CDATA[
  628. <message
  629. from='waitlist.service-provider.com'
  630. to='user@service-provider.com'>
  631. <body>This message contains a WaitingList item.</body>
  632. <waitlist xmlns='http://jabber.org/protocol/waitinglist'>
  633. <item id='34567' jid='contact@service-provider.com'>
  634. <uri scheme='tel'>contact-number</uri>
  635. <name>contact-name</name>
  636. </item>
  637. </waitlist>
  638. </message>
  639. ]]></example>
  640. <p>Note: The JID push uses an XMPP &lt;message/&gt; stanza because the WaitingListService has no knowledge of the user's presence and therefore cannot assume that an &IQ; stanza will be received by the user at a specific resource.</p>
  641. <p>If WaitingListService learns that Contact's URI is not handled by any InteropPartner, it MUST inform IM User through a "JID push" message:</p>
  642. <example caption="WaitingListService Informs IM User that No InteropPartner Handles Contact's URI"><![CDATA[
  643. <message
  644. from='waitlist.service-provider.com'
  645. to='user@service-provider.com'>
  646. <body>Sorry, we cannot find this contact.</body>
  647. <waitlist xmlns='http://jabber.org/protocol/waitinglist'>
  648. <item id='34567'
  649. jid='contact@service-provider.com'
  650. type='error'>
  651. <uri scheme='tel'>contact-number</uri>
  652. <name>contact-name</name>
  653. <error code='404'
  654. type='cancel'
  655. xmlns='jabber:client'>
  656. <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  657. </error>
  658. </item>
  659. </waitlist>
  660. </message>
  661. ]]></example>
  662. <p>After receiving the "JID push" message, IM User SHOULD complete the <link url='#imuser-remove'>IM User Removes Contact from WaitingList</link> use case.</p>
  663. </section3>
  664. <section3 topic="IM User Removes Contact from WaitingList" anchor='protocol-imuser-remove'>
  665. <p>In order to remove the item from the WaitingList, the IM User MUST complete the <link url='#imuser-remove'>Remove Contact from WaitingList</link> use case.</p>
  666. <example caption="IM User Sends Removal Request to WaitingListService"><![CDATA[
  667. <iq type='set'
  668. from='user@service-provider.com/resource'
  669. to='waitlist.service-provider.com'
  670. id='remove1'>
  671. <query xmlns='http://jabber.org/protocol/waitinglist'>
  672. <item id='34567'>
  673. <remove/>
  674. </item>
  675. </query>
  676. </iq>
  677. ]]></example>
  678. <p>If WaitingListService previously recorded request, WaitingListService removes request from list and returns result to IM User.</p>
  679. <example caption="WaitingListService Returns Result to IM User"><![CDATA[
  680. <iq type='result'
  681. from='waitlist.service-provider.com'
  682. to='user@service-provider.com/resource'
  683. id='remove1'/>
  684. ]]></example>
  685. <p>If WaitingListService did not previously record this request, WaitingListService MUST return an &notfound; error to the IM User.</p>
  686. <example caption='WaitingListService Returns &notfound; Error to IM User'><![CDATA[
  687. <iq type='error' id='remove1'>
  688. <query xmlns='http://jabber.org/protocol/waitinglist'>
  689. <item id='34567'>
  690. <remove/>
  691. </item>
  692. </query>
  693. <error code='404' type='cancel'>
  694. <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  695. </error>
  696. </iq>
  697. ]]></example>
  698. </section3>
  699. </section2>
  700. <section2 topic="WaitingListService Interaction With InteropPartners" anchor='protocol-service'>
  701. <p>
  702. <em>This section of the document describes the inter-domain protocol for communication between WaitingListServices. The protocol defined in this section MUST be implemented by ServiceProviders.</em>
  703. </p>
  704. <p>A ServiceProvider's WaitingListService MUST be configured with a "whitelist" of InteropPartner's WaitingListServices with which it communicates. Therefore service discovery SHOULD NOT be necessary. However, if necessary it MAY use either the <cite>Agent Information</cite> protocol or the <cite>Service Discovery</cite> protocol as described in the following examples.</p>
  705. <p>Note: The InteropPartner's WaitingListService is not required to be hosted by InteropPartner, and could be hosted by a third party (e.g., a neutral phone number translation service). In this case, InteropPartner would simply advertise 'waitlist.third-party.com' as its WaitingListService.</p>
  706. <section3 topic="ServiceProvider's WaitingListService Retrieves Current WaitingList" anchor='protocol-service-retrieve'>
  707. <example caption="ServiceProvider Discovers InteropPartner's WaitingListService by Sending Agent Information Request to InteropPartner"><![CDATA[
  708. <iq type='get'
  709. from='waitlist.service-provider.com'
  710. to='interop-partner.com'
  711. id='agent2'>
  712. <query xmlns='jabber:iq:agents'/>
  713. </iq>
  714. ]]></example>
  715. <example caption="InteropPartner Returns Address of its WaitingListService"><![CDATA[
  716. <iq type='result'
  717. from='interop-partner.com'
  718. to='waitlist.service-provider.com'
  719. id='agent2'>
  720. <query xmlns='jabber:iq:agents'>
  721. ...
  722. <agent jid='waitlist.interop-partner.com'>
  723. <name>Waiting List Service</name>
  724. <service>waitinglist</service>
  725. </agent>
  726. ...
  727. </query>
  728. </iq>
  729. ]]></example>
  730. <example caption="ServiceProvider Discovers InteropPartner's WaitingListService by Sending Service Discovery Request to InteropPartner"><![CDATA[
  731. <iq type='get'
  732. from='waitlist.service-provider.com'
  733. to='interop-partner.com'
  734. id='disco3'>
  735. <query xmlns='http://jabber.org/protocol/disco#items'/>
  736. </iq>
  737. ]]></example>
  738. <example caption="InteropPartner Returns Address of its WaitingListService"><![CDATA[
  739. <iq type='result' id='disco3'>
  740. <query xmlns='http://jabber.org/protocol/disco#items'>
  741. ...
  742. <item jid='waitlist.service-provider.com'
  743. name='Waiting List Service'/>
  744. ...
  745. </query>
  746. </iq>
  747. ]]></example>
  748. <example caption="Service Provider Queries InteropPartner's WaitingListService for Detailed Information"><![CDATA[
  749. <iq type='get'
  750. from='waitlist.service-provider.com'
  751. to='waitlist.interop-partner.com'
  752. id='disco4'>
  753. <query xmlns='http://jabber.org/protocol/disco#info'/>
  754. </iq>
  755. ]]></example>
  756. <example caption="InteropPartner's WaitingListService Returns Detailed Information"><![CDATA[
  757. <iq type='result'
  758. from='waitlist.interop-partner.com'
  759. to='waitlist.service-provider.com'
  760. id='disco4'>
  761. <query xmlns='http://jabber.org/protocol/disco#info'>
  762. <identity category='directory'
  763. type='waitinglist'/>
  764. <feature var='http://jabber.org/protocol/waitinglist'/>
  765. </query>
  766. </iq>
  767. ]]></example>
  768. </section3>
  769. <section3 topic="ServiceProvider's WaitingListService Adds Contact to WaitingList" anchor='protocol-service-add'>
  770. <p>Once a ServiceProvider's WaitingListService has discovered the InteropPartner's WaitingListService and requested its WaitingList, the ServiceProvider's WaitingListService can add items to its WaitingList based on URI.</p>
  771. <example caption="ServiceProvider's WaitingListService Adds New Item to WaitingList"><![CDATA[
  772. <iq type='set'
  773. from='waitlist.service-provider.com'
  774. to='waitlist.interop-partner.com'
  775. id='waitinglist2'>
  776. <query xmlns='http://jabber.org/protocol/waitinglist'>
  777. <item>
  778. <uri scheme='tel'>contact-number</uri>
  779. </item>
  780. </query>
  781. </iq>
  782. ]]></example>
  783. <p>If InteropPartner refuses to provide service to ServiceProvider, it MUST return a &notauthorized; error to the ServiceProvider:</p>
  784. <example caption='InteropPartner Returns &notauthorized; Error to ServiceProvider'><![CDATA[
  785. <iq type='error'
  786. from='waitlist.interop-partner.com'
  787. to='waitlist.service-provider.com'
  788. id='waitinglist2'>
  789. <query xmlns='http://jabber.org/protocol/waitinglist'>
  790. <item>
  791. <uri scheme='tel'>contact-number</uri>
  792. </item>
  793. </query>
  794. <error code='401' type='cancel'>
  795. <not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  796. </error>
  797. </iq>
  798. ]]></example>
  799. <p>If Contact's URI is not associated with a person served by this InteropPartner, the InteropPartner MUST return an &notfound; error to the ServiceProvider.</p>
  800. <example caption='InteropPartner Returns &notfound; Error to ServiceProvider'><![CDATA[
  801. <iq type='error'
  802. from='waitlist.interop-partner.com'
  803. to='waitlist.service-provider.com'
  804. id='waitinglist2'>
  805. <query xmlns='http://jabber.org/protocol/waitinglist'>
  806. <item>
  807. <uri scheme='tel'>contact-number</uri>
  808. </item>
  809. </query>
  810. <error code='404' type='cancel'>
  811. <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  812. </error>
  813. </iq>
  814. ]]></example>
  815. <p>If ServiceProvider's WaitingListService receives &notauthorized; and/or &notfound; errors from all InteropPartners, it returns a &notfound; error to IM User:</p>
  816. <example caption='WaitingListService Returns &notfound; Error to IM User'><![CDATA[
  817. <message
  818. type='error'
  819. from='waitlist.service-provider.com'
  820. to='user@service-provider.com/resource'
  821. id='waitinglist1'>
  822. <waitlist xmlns='http://jabber.org/protocol/waitinglist'>
  823. <item>
  824. <uri scheme='tel'>+1234563033083283</uri>
  825. <name>contact-name</name>
  826. </item>
  827. </waitlist>
  828. <error code='404' type='cancel'>
  829. <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  830. </error>
  831. </message>
  832. ]]></example>
  833. <p>If Contact's URI is associated with a person served by this InteropPartner, InteropPartner MUST return acknowledgement of the WaitingList addition to the ServiceProvider's WaitingListService.</p>
  834. <example caption="InteropPartner's WaitingListService Acknowledges Receipt"><![CDATA[
  835. <iq type='result'
  836. from='waitlist.interop-partner.com'
  837. to='waitlist.service-provider.com'
  838. id='waitinglist2'>
  839. <query xmlns='http://jabber.org/protocol/waitinglist'>
  840. <item id='34567'/>
  841. </query>
  842. </iq>
  843. ]]></example>
  844. <p>If Contact is an IM User served by InteropPartner, InteropPartner's WaitingListService pushes Contact's JID to ServiceProvider's WaitingListService.</p>
  845. <example caption="InteropPartner's WaitingListService Pushes Contact's JID to ServiceProvider's WaitingListService"><![CDATA[
  846. <iq type='set'
  847. from='waitlist.interop-partner.com'
  848. to='waitlist.service-provider.com'
  849. id='jidpush1'>
  850. <query xmlns='http://jabber.org/protocol/waitinglist'>
  851. <item id='34567' jid='user@domain'>
  852. <uri scheme='tel'>contact-number</uri>
  853. </item>
  854. </query>
  855. </iq>
  856. ]]></example>
  857. <example caption="ServiceProvider's WaitingListService Acknowledges Receipt of JID Push"><![CDATA[
  858. <iq type='result'
  859. from='waitlist.service-provider.com'
  860. to='waitlist.interop-partner.com'
  861. id='jidpush1'/>
  862. ]]></example>
  863. <p>After receiving acknowledgement (but not before), InteropPartner's WaitingListService MUST remove that item from the WaitingList for the ServiceProvider's WaitingListService.</p>
  864. </section3>
  865. <section3 topic="ServiceProvider's WaitingListService Removes Contact from WaitingList" anchor='protocol-service-remove'>
  866. <example caption="ServiceProvider Requests Removal of Item from WaitingList"><![CDATA[
  867. <iq type='set'
  868. from='waitlist.service-provider.com'
  869. to='waitlist.interop-partner.com'
  870. id='remove2'>
  871. <query xmlns='http://jabber.org/protocol/waitinglist'>
  872. <item id='34567'>
  873. <remove/>
  874. </item>
  875. </query>
  876. </iq>
  877. ]]></example>
  878. <p>If item exists on WaitingList, InteropPartner's WaitingListService removes item from list and returns result to ServiceProvider's WaitingListService.</p>
  879. <example caption="InteropPartner Returns Result to ServiceProvider"><![CDATA[
  880. <iq type='result'
  881. from='waitlist.interop-partner.com'
  882. to='waitlist.service-provider.com'
  883. id='remove2'/>
  884. ]]></example>
  885. <p>If item does not exist on WaitingList, InteropPartner's WaitingListService MUST return an &notfound; error to the ServiceProvider's WaitingListService.</p>
  886. <example caption='InteropPartner Returns &notfound; Error to ServiceProvider'><![CDATA[
  887. <iq type='error'
  888. from='waitlist.interop-partner.com'
  889. to='waitlist.service-provider.com'
  890. id='remove2'>
  891. <query xmlns='http://jabber.org/protocol/waitinglist'>
  892. <item id='34567'>
  893. <remove/>
  894. </item>
  895. </query>
  896. <error code='404' type='cancel'>
  897. <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  898. </error>
  899. </iq>
  900. ]]></example>
  901. </section3>
  902. </section2>
  903. </section1>
  904. <section1 topic="Implementation Notes" anchor='impl'>
  905. <ol>
  906. <li><p>Protocols and mechanisms for inviting a Contact to register as an IM User are out of scope for this document and shall be determined by each InteropPartner individually.</p></li>
  907. <li><p>A ServiceProvider's WaitingListService MUST record which of its IM Users have requested the JID associated with Contact's URI, and an InteropPartner's WaitingListService MUST record that Service Provider's WaitingListService (not User) has requested JID associated with Contact's URI. Therefore when Contact registers, InteropPartner's WaitingListService informs its local users as well as ServiceProvider's WaitingListService, and ServiceProvider's WaitingListService informs its local users.</p></li>
  908. <li><p>The InteropPartner's WaitingListService is not required to be hosted by InteropPartner, and could be hosted by a third party (e.g., a neutral phone number translation service). In this case, InteropPartner would simply advertise 'waitlist.third-party.com' as its WaitingListService.</p></li>
  909. <li><p>Once an IM User learns a Contact's JID, the IM User MAY send a normal subscription request to the Contact, setting the "to" address to Contact's JID. This interaction is defined in the base XMPP specifications and is out of scope for this document.</p></li>
  910. <li><p>For historical reasons, implementations MUST support the older <cite>Agent Information</cite> protocol (XEP-0094) and SHOULD support <cite>Service Discovery</cite> (XEP-0030). Note well that the <cite>Agent Information</cite> protocol will eventually be deprecated in favor of <cite>Service Discovery</cite>.</p></li>
  911. <li><p>An IM User's client receives WaitingList information either through a "JID push" message (received from WaitingListService at any time) or in the IQ result received after requesting the WaitingList (since one or more of the WaitingList items may contain a JID). (The same rule applies to a ServiceProvider's WaitingListService that receives an IQ set from an InteropPartner's WaitingListService.)</p></li>
  912. <li><p>When an IM User logs in, the user's client SHOULD request the current WaitingList.</p></li>
  913. <li><p>Although the examples in this document show the hostname of the WaitingListService as 'waitlist.third-party.com' (etc.), this is for convenience only; the hostname MAY be any valid DNS hostname.</p></li>
  914. <li><p>When sending JID pushes, an implementation MAY specify a message type of 'headline', which in some deployments will prevent such messages from being stored offline for later delivery.</p></li>
  915. <li><p>It can happen that WaitingListService does not receive a reply from InteropPartner within a certain amount of time or the connection to InteropPartner times out. Because such behavior is often transient, WaitingListService MAY attempt to reconnect and then resend the request (although any retry logic to handle these cases is a matter of implementation). However, WaitingListService SHOULD NOT return an &notfound; error to IM User unless it knows definitively that the Contact's InteropPartner is permanently unavailable, since returning an &notfound; error in response to temporary connection timeouts is likely to be misleading.</p></li>
  916. </ol>
  917. </section1>
  918. <section1 topic="Security Considerations" anchor='security'>
  919. <p>A ServiceProvider's WaitingListService MUST be configured with a "whitelist" of InteropPartners with which it communicates. The WaitingListService SHOULD NOT communicate with any InteropPartners that are not on the whitelist.</p>
  920. <p>Requesting JIDs via WaitingLists is not bidirectional; i.e., a service MUST NOT allow an IM User to discover a Contact's non-XMPP URI based on the Contact's JID.</p>
  921. <p>A service MAY require a Contact to approve the disclosure of the Contact's JID, either as a global preference or for each request; however, this is a local policy matter.</p>
  922. </section1>
  923. <section1 topic="IANA Considerations" anchor='iana'>
  924. <p>This document requires no interaction with &IANA;.</p>
  925. </section1>
  926. <section1 topic="XMPP Registrar Considerations" anchor='registrar'>
  927. <section2 topic="Protocol Namespaces" anchor='registrar-ns'>
  928. <p>The &REGISTRAR; includes 'http://jabber.org/protocol/waitinglist' in its registry of protocol namespaces.</p>
  929. </section2>
  930. <section2 topic="Service Discovery Identities" anchor='registrar-identities'>
  931. <p>The Jabber Registar includes a type of "waitinglist" in the "directory" category in its registry of service discovery identities.</p>
  932. </section2>
  933. <section2 topic="Service Discovery Features" anchor='registrar-features'>
  934. <p>The XMPP Registrar includes supported URI schemes in its registry of service discovery features. These features shall be of the form 'http://jabber.org/protocol/waitlist/schemes/SCHEME-NAME'.</p>
  935. <p>This document registers the following two namespace names for URI schemes, but others MAY be registered in the future using standard registration procedures:</p>
  936. <ul>
  937. <li>http://jabber.org/protocol/waitlist/schemes/mailto</li>
  938. <li>http://jabber.org/protocol/waitlist/schemes/tel</li>
  939. </ul>
  940. </section2>
  941. </section1>
  942. <section1 topic="XML Schema" anchor='schema'>
  943. <code><![CDATA[
  944. <?xml version='1.0' encoding='UTF-8'?>
  945. <xs:schema
  946. xmlns:xs='http://www.w3.org/2001/XMLSchema'
  947. targetNamespace='http://jabber.org/protocol/waitinglist'
  948. xmlns='http://jabber.org/protocol/waitinglist'
  949. elementFormDefault='qualified'>
  950. <xs:annotation>
  951. <xs:documentation>
  952. The protocol documented by this schema is defined in
  953. XEP-0130: http://www.xmpp.org/extensions/xep-0130.html
  954. </xs:documentation>
  955. </xs:annotation>
  956. <xs:import namespace='jabber:client'
  957. schemaLocation='http://xmpp.org/schemas/jabber-client.xsd'/>
  958. <xs:annotation>
  959. <xs:documentation>
  960. Note: there are two allowable root elements for the
  961. 'http://jabber.org/protocol/waitinglist' namespace,
  962. query and waitlist. The query element is used within
  963. IQ stanzas and the waitlist element is used within
  964. message stanzas. See XEP-0130 for details.
  965. </xs:documentation>
  966. </xs:annotation>
  967. <xs:element name='waitlist'>
  968. <xs:complexType>
  969. <xs:sequence>
  970. <xs:element ref='item'
  971. minOccurs='0'
  972. maxOccurs='unbounded'/>
  973. </xs:sequence>
  974. </xs:complexType>
  975. </xs:element>
  976. <xs:element name='query'>
  977. <xs:complexType>
  978. <xs:sequence>
  979. <xs:element ref='item'
  980. minOccurs='0'
  981. maxOccurs='unbounded'/>
  982. </xs:sequence>
  983. </xs:complexType>
  984. </xs:element>
  985. <xs:element name='item'>
  986. <xs:complexType>
  987. <xs:choice minOccurs='0'
  988. maxOccurs='unbounded'
  989. xmlns:xmpp='jabber:client'>
  990. <xs:sequence>
  991. <xs:element ref='uri'/>
  992. <xs:element ref='name' minOccurs='0'/>
  993. <xs:element ref='xmpp:error' minOccurs='0'/>
  994. </xs:sequence>
  995. <xs:element ref='remove'/>
  996. </xs:choice>
  997. <xs:attribute name='id'
  998. type='xs:string'
  999. use='optional'/>
  1000. <xs:attribute name='jid'
  1001. type='xs:string'
  1002. use='optional'/>
  1003. <xs:attribute name='type'
  1004. use='optional'>
  1005. <xs:simpleType>
  1006. <xs:restriction base='xs:NCName'>
  1007. <xs:enumeration value='error'/>
  1008. </xs:restriction>
  1009. </xs:simpleType>
  1010. </xs:attribute>
  1011. </xs:complexType>
  1012. </xs:element>
  1013. <xs:element name='uri'>
  1014. <xs:complexType>
  1015. <xs:simpleContent>
  1016. <xs:extension base='xs:string'>
  1017. <xs:attribute name='scheme'
  1018. type='xs:NCName'
  1019. use='required'/>
  1020. </xs:extension>
  1021. </xs:simpleContent>
  1022. </xs:complexType>
  1023. </xs:element>
  1024. <xs:element name='name' type='string1023'/>
  1025. <xs:element name='remove' type='empty'/>
  1026. <xs:simpleType name='string1023'>
  1027. <xs:restriction base='xs:string'>
  1028. <xs:maxLength value='1023'/>
  1029. </xs:restriction>
  1030. </xs:simpleType>
  1031. <xs:simpleType name='empty'>
  1032. <xs:restriction base='xs:string'>
  1033. <xs:enumeration value=''/>
  1034. </xs:restriction>
  1035. </xs:simpleType>
  1036. </xs:schema>
  1037. ]]></code>
  1038. </section1>
  1039. </xep>