IMPORTANT: due to a drive failure, as of 13-Mar-2021, the Mercurial repository had to be re-mirrored, which changed every commit SHA. The old SHAs and trees are backed up in the vault branches. Please migrate to the new branches as soon as you can.
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.
 
 
 
 
prosody/spec/scansion/extdisco.scs

57 lines
2.1 KiB

# XEP-0215: External Service Discovery
[Client] Romeo
password: password
jid: user@localhost/mFquWxSr
-----
Romeo connects
Romeo sends:
<iq type='get' xml:lang='sv' id='lx2' to='localhost'>
<services xmlns='urn:xmpp:extdisco:2'/>
</iq>
Romeo receives:
<iq type='result' id='lx2' from='localhost'>
<services xmlns='urn:xmpp:extdisco:2'>
<service host='default.example' transport='udp' port='9876' type='stun'/>
<service port='9876' type='turn' restricted='1' password='yHYYBDN7M3mdlug0LTdJbW0GvvQ=' transport='udp' host='default.example' username='1219525744'/>
<service port='9876' type='turn' restricted='1' password='1Uc6QfrDhIlbK97rGCUQ/cUICxs=' transport='udp' host='default.example' username='1219525744'/>
<service port='2121' type='ftp' restricted='1' password='password' transport='tcp' host='default.example' username='john'/>
<service port='21' type='ftp' restricted='1' password='password' transport='tcp' host='ftp.example.com' username='john'/>
</services>
</iq>
Romeo sends:
<iq type='get' xml:lang='sv' id='lx3' to='localhost'>
<services xmlns='urn:xmpp:extdisco:2' type='ftp'/>
</iq>
Romeo receives:
<iq type='result' id='lx3' from='localhost'>
<services xmlns='urn:xmpp:extdisco:2'>
<service port='2121' type='ftp' restricted='1' password='password' transport='tcp' host='default.example' username='john'/>
<service port='21' type='ftp' restricted='1' password='password' transport='tcp' host='ftp.example.com' username='john'/>
</services>
</iq>
Romeo sends:
<iq type='get' xml:lang='sv' id='lx4' to='localhost'>
<credentials xmlns='urn:xmpp:extdisco:2'>
<service host='default.example' type='turn'/>
</credentials>
</iq>
Romeo receives:
<iq type='result' id='lx4' from='localhost'>
<credentials xmlns='urn:xmpp:extdisco:2'>
<service port='9876' type='turn' restricted='1' password='yHYYBDN7M3mdlug0LTdJbW0GvvQ=' transport='udp' host='default.example' username='1219525744'/>
<service port='9876' type='turn' restricted='1' password='1Uc6QfrDhIlbK97rGCUQ/cUICxs=' transport='udp' host='default.example' username='1219525744'/>
</credentials>
</iq>
Romeo disconnects
# recording ended on 2020-07-18T16:47:57Z