blob: 38c6f755f8bb79be91416366c61f0153fa9ae2ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# XEP-0054 vCard-temp writable and readable by anyone
# mod_scansion_record on host 'localhost' recording started 2018-10-20T15:00:12Z
[Client] Romeo
jid: romeo@localhost
password: password
[Client] Juliet
jid: juliet@localhost
password: password
-----
Romeo connects
# Romeo sets his vCard
# FN and N are required by the schema and mod_vcard_legacy will always inject them
Romeo sends:
<iq id="lx3" type="set">
<vCard xmlns="vcard-temp">
<FN>Romeo Montague</FN>
<N>
<FAMILY>Montague</FAMILY>
<GIVEN>Romeo</GIVEN>
<MIDDLE/>
<PREFIX/>
<SUFFIX/>
</N>
</vCard>
</iq>
Romeo receives:
<iq type="result" id="lx3" to="${Romeo's full JID}"/>
Romeo sends:
<iq id="lx4" type="get">
<vCard xmlns="vcard-temp"/>
</iq>
Romeo receives:
<iq type="result" id="lx4" to="${Romeo's full JID}">
<vCard xmlns="vcard-temp">
<FN>Romeo Montague</FN>
<N>
<FAMILY>Montague</FAMILY>
<GIVEN>Romeo</GIVEN>
<MIDDLE/>
<PREFIX/>
<SUFFIX/>
</N>
</vCard>
</iq>
Romeo disconnects
Juliet connects
Juliet sends:
<iq type="get" id="lx3" to="romeo@localhost">
<vCard xmlns="vcard-temp"/>
</iq>
# Juliet can see Romeo's vCard since it's public
Juliet receives:
<iq type="result" from="romeo@localhost" id="lx3" to="${Juliet's full JID}">
<vCard xmlns="vcard-temp">
<FN>Romeo Montague</FN>
<N>
<FAMILY>Montague</FAMILY>
<GIVEN>Romeo</GIVEN>
<MIDDLE/>
<PREFIX/>
<SUFFIX/>
</N>
</vCard>
</iq>
Juliet disconnects
# recording ended on 2018-10-20T15:02:14Z
|