Comparison

spec/scansion/extdisco.scs @ 11036:79e410cd7f6e

mod_external_services: XEP-0215: External Service Discovery
author Kim Alvefur <zash@zash.se>
date Sat, 18 Jul 2020 15:36:25 +0200
child 11753:c4599a7c534c
comparison
equal deleted inserted replaced
11035:ba1143ddae9b 11036:79e410cd7f6e
1 # XEP-0215: External Service Discovery
2
3 [Client] Romeo
4 password: password
5 jid: user@localhost/mFquWxSr
6
7 -----
8
9 Romeo connects
10
11 Romeo sends:
12 <iq type='get' xml:lang='sv' id='lx2' to='localhost'>
13 <services xmlns='urn:xmpp:extdisco:2'/>
14 </iq>
15
16 Romeo receives:
17 <iq type='result' id='lx2' from='localhost'>
18 <services xmlns='urn:xmpp:extdisco:2'>
19 <service host='default.example' transport='udp' port='9876' type='stun'/>
20 <service port='9876' type='turn' restricted='1' password='yHYYBDN7M3mdlug0LTdJbW0GvvQ=' transport='udp' host='default.example' username='1219525744'/>
21 <service port='9876' type='turn' restricted='1' password='1Uc6QfrDhIlbK97rGCUQ/cUICxs=' transport='udp' host='default.example' username='1219525744'/>
22 <service port='2121' type='ftp' restricted='1' password='password' transport='tcp' host='default.example' username='john'/>
23 <service port='21' type='ftp' restricted='1' password='password' transport='tcp' host='ftp.example.com' username='john'/>
24 </services>
25 </iq>
26
27 Romeo sends:
28 <iq type='get' xml:lang='sv' id='lx3' to='localhost'>
29 <services xmlns='urn:xmpp:extdisco:2' type='ftp'/>
30 </iq>
31
32 Romeo receives:
33 <iq type='result' id='lx3' from='localhost'>
34 <services xmlns='urn:xmpp:extdisco:2'>
35 <service port='2121' type='ftp' restricted='1' password='password' transport='tcp' host='default.example' username='john'/>
36 <service port='21' type='ftp' restricted='1' password='password' transport='tcp' host='ftp.example.com' username='john'/>
37 </services>
38 </iq>
39
40 Romeo sends:
41 <iq type='get' xml:lang='sv' id='lx4' to='localhost'>
42 <credentials xmlns='urn:xmpp:extdisco:2'>
43 <service host='default.example' type='turn'/>
44 </credentials>
45 </iq>
46
47 Romeo receives:
48 <iq type='result' id='lx4' from='localhost'>
49 <credentials xmlns='urn:xmpp:extdisco:2'>
50 <service port='9876' type='turn' restricted='1' password='yHYYBDN7M3mdlug0LTdJbW0GvvQ=' transport='udp' host='default.example' username='1219525744'/>
51 <service port='9876' type='turn' restricted='1' password='1Uc6QfrDhIlbK97rGCUQ/cUICxs=' transport='udp' host='default.example' username='1219525744'/>
52 </credentials>
53 </iq>
54
55 Romeo disconnects
56
57 # recording ended on 2020-07-18T16:47:57Z