XCAP-samples
Version 7 (Adrian Georgescu, 12/13/2012 09:34 am)
1 | 3 | Adrian Georgescu | h1. XCAP samples |
---|---|---|---|
2 | 1 | Adrian Georgescu | |
3 | 2 | Adrian Georgescu | h2. Presence rules |
4 | 1 | Adrian Georgescu | |
5 | 1 | Adrian Georgescu | <pre> |
6 | 1 | Adrian Georgescu | <?xml version="1.0" ?> |
7 | 1 | Adrian Georgescu | <cp:ruleset xmlns:cp="urn:ietf:params:xml:ns:common-policy" xmlns:ocp="urn:oma:xml:xdm:common-policy" xmlns:pr="urn:ietf:params:xml:ns:pres-rules"> |
8 | 1 | Adrian Georgescu | <cp:rule id="wp_prs_grantedcontacts"> |
9 | 1 | Adrian Georgescu | <cp:conditions> |
10 | 1 | Adrian Georgescu | <ocp:external-list> |
11 | 1 | Adrian Georgescu | <ocp:entry anc="https%3A//xcap.test.sipthor.net/xcap-root/resource-lists/users/sip%3Aag%40test.sip2sip.info/index/%7E%7E/resource-lists/list%5B%40name%3D%22oma_grantedcontacts%22%5D"/> |
12 | 1 | Adrian Georgescu | </ocp:external-list> |
13 | 1 | Adrian Georgescu | </cp:conditions> |
14 | 1 | Adrian Georgescu | <cp:actions> |
15 | 1 | Adrian Georgescu | <pr:sub-handling> |
16 | 1 | Adrian Georgescu | allow |
17 | 1 | Adrian Georgescu | </pr:sub-handling> |
18 | 1 | Adrian Georgescu | </cp:actions> |
19 | 1 | Adrian Georgescu | </cp:rule> |
20 | 1 | Adrian Georgescu | <cp:rule id="wp_prs_blockedcontacts"> |
21 | 1 | Adrian Georgescu | <cp:conditions> |
22 | 1 | Adrian Georgescu | <ocp:external-list> |
23 | 1 | Adrian Georgescu | <ocp:entry anc="https%3A//xcap.test.sipthor.net/xcap-root/resource-lists/users/sip%3Aag%40test.sip2sip.info/index/%7E%7E/resource-lists/list%5B%40name%3D%22oma_blockedcontacts%22%5D"/> |
24 | 1 | Adrian Georgescu | </ocp:external-list> |
25 | 1 | Adrian Georgescu | </cp:conditions> |
26 | 1 | Adrian Georgescu | <cp:actions> |
27 | 1 | Adrian Georgescu | <pr:sub-handling> |
28 | 1 | Adrian Georgescu | polite-block |
29 | 1 | Adrian Georgescu | </pr:sub-handling> |
30 | 1 | Adrian Georgescu | </cp:actions> |
31 | 1 | Adrian Georgescu | </cp:rule> |
32 | 1 | Adrian Georgescu | <cp:rule id="wp_prs_unlisted"> |
33 | 1 | Adrian Georgescu | <cp:conditions> |
34 | 1 | Adrian Georgescu | <ocp:other-identity/> |
35 | 1 | Adrian Georgescu | </cp:conditions> |
36 | 1 | Adrian Georgescu | <cp:actions> |
37 | 1 | Adrian Georgescu | <pr:sub-handling> |
38 | 1 | Adrian Georgescu | confirm |
39 | 1 | Adrian Georgescu | </pr:sub-handling> |
40 | 1 | Adrian Georgescu | </cp:actions> |
41 | 1 | Adrian Georgescu | </cp:rule> |
42 | 1 | Adrian Georgescu | <cp:rule id="wp_prs_block_anonymous"> |
43 | 1 | Adrian Georgescu | <cp:conditions> |
44 | 1 | Adrian Georgescu | <ocp:anonymous-request/> |
45 | 1 | Adrian Georgescu | </cp:conditions> |
46 | 1 | Adrian Georgescu | <cp:actions> |
47 | 1 | Adrian Georgescu | <pr:sub-handling> |
48 | 1 | Adrian Georgescu | block |
49 | 1 | Adrian Georgescu | </pr:sub-handling> |
50 | 1 | Adrian Georgescu | </cp:actions> |
51 | 1 | Adrian Georgescu | </cp:rule> |
52 | 1 | Adrian Georgescu | <cp:rule id="wp_prs_allow_own"> |
53 | 1 | Adrian Georgescu | <cp:conditions> |
54 | 1 | Adrian Georgescu | <cp:identity> |
55 | 1 | Adrian Georgescu | <cp:one id="sip%3Aag%40test.sip2sip.info"/> |
56 | 1 | Adrian Georgescu | </cp:identity> |
57 | 1 | Adrian Georgescu | </cp:conditions> |
58 | 1 | Adrian Georgescu | <cp:actions> |
59 | 1 | Adrian Georgescu | <pr:sub-handling> |
60 | 1 | Adrian Georgescu | allow |
61 | 1 | Adrian Georgescu | </pr:sub-handling> |
62 | 1 | Adrian Georgescu | </cp:actions> |
63 | 1 | Adrian Georgescu | </cp:rule> |
64 | 1 | Adrian Georgescu | </cp:ruleset> |
65 | 1 | Adrian Georgescu | </pre> |
66 | 4 | Adrian Georgescu | |
67 | 4 | Adrian Georgescu | h2. RLS services |
68 | 4 | Adrian Georgescu | |
69 | 4 | Adrian Georgescu | <pre> |
70 | 4 | Adrian Georgescu | <?xml version="1.0" ?> |
71 | 4 | Adrian Georgescu | <rls-services xmlns="urn:ietf:params:xml:ns:rls-services"> |
72 | 4 | Adrian Georgescu | <service uri="sip%3Aag%2Bpresence%40test.sip2sip.info"> |
73 | 4 | Adrian Georgescu | <resource-list> |
74 | 4 | Adrian Georgescu | https%3A//xcap.test.sipthor.net/xcap-root/resource-lists/users/sip%3Aag%40test.sip2sip.info/index/%7E%7E/resource-lists/list%5B%40name%3D%22sipsimple_presence_rls%22%5D |
75 | 4 | Adrian Georgescu | </resource-list> |
76 | 4 | Adrian Georgescu | <packages> |
77 | 4 | Adrian Georgescu | <package> |
78 | 4 | Adrian Georgescu | presence |
79 | 4 | Adrian Georgescu | </package> |
80 | 4 | Adrian Georgescu | </packages> |
81 | 4 | Adrian Georgescu | </service> |
82 | 4 | Adrian Georgescu | <service uri="sip%3Aag%2Bdialog%40test.sip2sip.info"> |
83 | 4 | Adrian Georgescu | <resource-list> |
84 | 4 | Adrian Georgescu | https%3A//xcap.test.sipthor.net/xcap-root/resource-lists/users/sip%3Aag%40test.sip2sip.info/index/%7E%7E/resource-lists/list%5B%40name%3D%22sipsimple_dialog_rls%22%5D |
85 | 4 | Adrian Georgescu | </resource-list> |
86 | 4 | Adrian Georgescu | <packages> |
87 | 4 | Adrian Georgescu | <package> |
88 | 4 | Adrian Georgescu | dialog |
89 | 4 | Adrian Georgescu | </package> |
90 | 4 | Adrian Georgescu | </packages> |
91 | 4 | Adrian Georgescu | </service> |
92 | 4 | Adrian Georgescu | </rls-services> |
93 | 4 | Adrian Georgescu | </pre> |
94 | 5 | Adrian Georgescu | |
95 | 5 | Adrian Georgescu | h2. Status icon |
96 | 5 | Adrian Georgescu | |
97 | 5 | Adrian Georgescu | <pre> |
98 | 5 | Adrian Georgescu | <?xml version='1.0' encoding='UTF-8'?> |
99 | 5 | Adrian Georgescu | <content xmlns="urn:oma:xml:prs:pres-content"><mime-type>image/png</mime-type><encoding>base64</encoding><data>iVBORw0KGgoAAAANSUhEUgAAAEkAAABJCAIAAAD+EZyLAAAl10lEQVRoBVWb2Y8l133fa791116n |
100 | 5 | Adrian Georgescu | Z+lZOTMiOaQoSqIoyQYs2Q8K5E0ykCDIS/KYfyDIW/6GwO8BogCxFQRGNsVJ5NixY4EyKXPRUCJn |
101 | 5 | Adrian Georgescu | 4Uz39PS+3L59t9qXfL6nekSlpud23apT5/yW72891fb3v/ul2q7s2rEsy+ZX7VQ2pzq3LMfc4otr |
102 | 5 | Adrian Georgescu | rlVcsbmh8QzQtbquzYke18M8pGfNcJ1Y3Kis86/Nrdq2eJyRzUK1FmIYY5jZcisIqLjY/GtuVVbt |
103 | 5 | Adrian Georgescu | W35plc1gLrIuj3DdtiFSRPOsjgqC9LuuK08cWO75DY12LKc0N/UBlZ/T5XBa85AebK7DKfzq4Dnb |
104 | 5 | Adrian Georgescu | hTixwrq63wzhvsi0HbNq7XBSlPO0iOdJmZVpnjPAC/xuN+z3Qt9zCrcUNfxAFoRpLn2prJLlEUsF |
105 | 5 | Adrian Georgescu | ... |
106 | 5 | Adrian Georgescu | iSDi1AJEJkMAk8EagYW9Q/O3j+dwg0IpUK6BFweywGv/P8HB6Yn10+vLAAAAAElFTkSuQmCC |
107 | 5 | Adrian Georgescu | </data></content> |
108 | 5 | Adrian Georgescu | </pre> |
109 | 6 | Adrian Georgescu | |
110 | 6 | Adrian Georgescu | h2. Resource lists |
111 | 6 | Adrian Georgescu | |
112 | 6 | Adrian Georgescu | <pre> |
113 | 6 | Adrian Georgescu | <?xml version="1.0" ?> |
114 | 6 | Adrian Georgescu | <rl:resource-lists xmlns:addressbook="urn:ag-projects:xml:ns:addressbook" xmlns:blink="urn:ag-projects:blink:xml:ns:addressbook" xmlns:rl="urn:ietf:params:xml:ns:resource-lists"> |
115 | 6 | Adrian Georgescu | <rl:list name="oma_buddylist"/> |
116 | 6 | Adrian Georgescu | <rl:list name="oma_grantedcontacts"> |
117 | 6 | Adrian Georgescu | <rl:entry uri="saghul%40gmail.com"/> |
118 | 6 | Adrian Georgescu | </rl:list> |
119 | 6 | Adrian Georgescu | <rl:list name="oma_blockedcontacts"> |
120 | 6 | Adrian Georgescu | <rl:entry uri="saghul2%40test.sip2sip.info"/> |
121 | 6 | Adrian Georgescu | </rl:list> |
122 | 6 | Adrian Georgescu | <rl:list name="oma_allcontacts"> |
123 | 6 | Adrian Georgescu | <rl:external anchor="https%3A//xcap.test.sipthor.net/xcap-root/resource-lists/users/sip%3Aag%40test.sip2sip.info/index/%7E%7E/resource-lists/list%5B%40name%3D%22oma_buddylist%22%5D"/> |
124 | 6 | Adrian Georgescu | <rl:external anchor="https%3A//xcap.test.sipthor.net/xcap-root/resource-lists/users/sip%3Aag%40test.sip2sip.info/index/%7E%7E/resource-lists/list%5B%40name%3D%22oma_grantedcontacts%22%5D"/> |
125 | 6 | Adrian Georgescu | <rl:external anchor="https%3A//xcap.test.sipthor.net/xcap-root/resource-lists/users/sip%3Aag%40test.sip2sip.info/index/%7E%7E/resource-lists/list%5B%40name%3D%22oma_blockedcontacts%22%5D"/> |
126 | 6 | Adrian Georgescu | </rl:list> |
127 | 6 | Adrian Georgescu | <rl:list name="sipsimple_presence_rls"> |
128 | 6 | Adrian Georgescu | <rl:entry uri="saghul%40test.sip2sip.info"/> |
129 | 6 | Adrian Georgescu | </rl:list> |
130 | 6 | Adrian Georgescu | <rl:list name="sipsimple_addressbook"> |
131 | 6 | Adrian Georgescu | <addressbook:contact id="id1341072133147342303365"> |
132 | 6 | Adrian Georgescu | <addressbook:name> |
133 | 6 | Adrian Georgescu | Saul Ibarra |
134 | 6 | Adrian Georgescu | </addressbook:name> |
135 | 6 | Adrian Georgescu | <addressbook:uris> |
136 | 6 | Adrian Georgescu | <addressbook:uri id="id1343985390914325976718" type="SIP" uri="saul%40ag-projects.com"> |
137 | 6 | Adrian Georgescu | <blink:attributes/> |
138 | 6 | Adrian Georgescu | </addressbook:uri> |
139 | 6 | Adrian Georgescu | <addressbook:uri id="id1343985390914934732740" type="XMPP" uri="saghul%40jit.si"> |
140 | 6 | Adrian Georgescu | <blink:attributes/> |
141 | 6 | Adrian Georgescu | </addressbook:uri> |
142 | 6 | Adrian Georgescu | <addressbook:uri id="id1343985390915549658015" type="XMPP" uri="saghul%40gmail.com"> |
143 | 6 | Adrian Georgescu | <blink:attributes/> |
144 | 6 | Adrian Georgescu | </addressbook:uri> |
145 | 6 | Adrian Georgescu | <addressbook:uri id="id1346858434767006537914" type="SIP" uri="saghul%40sip2sip.info"> |
146 | 6 | Adrian Georgescu | <blink:attributes/> |
147 | 6 | Adrian Georgescu | </addressbook:uri> |
148 | 6 | Adrian Georgescu | <addressbook:uri id="id1352399317853493372140" type="SIP" uri="saghul%40test.sip2sip.info"> |
149 | 6 | Adrian Georgescu | <blink:attributes/> |
150 | 6 | Adrian Georgescu | </addressbook:uri> |
151 | 6 | Adrian Georgescu | <addressbook:uri id="id1354399366159710946049" type="SIP" uri="31208005163%40ag-projects.com"> |
152 | 6 | Adrian Georgescu | <blink:attributes/> |
153 | 6 | Adrian Georgescu | </addressbook:uri> |
154 | 6 | Adrian Georgescu | </addressbook:uris> |
155 | 6 | Adrian Georgescu | <addressbook:dialog> |
156 | 6 | Adrian Georgescu | <addressbook:policy> |
157 | 6 | Adrian Georgescu | block |
158 | 6 | Adrian Georgescu | </addressbook:policy> |
159 | 6 | Adrian Georgescu | <addressbook:subscribe> |
160 | 6 | Adrian Georgescu | false |
161 | 6 | Adrian Georgescu | </addressbook:subscribe> |
162 | 6 | Adrian Georgescu | </addressbook:dialog> |
163 | 6 | Adrian Georgescu | <addressbook:presence> |
164 | 6 | Adrian Georgescu | <addressbook:policy> |
165 | 6 | Adrian Georgescu | allow |
166 | 6 | Adrian Georgescu | </addressbook:policy> |
167 | 6 | Adrian Georgescu | <addressbook:subscribe> |
168 | 6 | Adrian Georgescu | true |
169 | 6 | Adrian Georgescu | </addressbook:subscribe> |
170 | 6 | Adrian Georgescu | </addressbook:presence> |
171 | 6 | Adrian Georgescu | <blink:attributes> |
172 | 6 | Adrian Georgescu | <blink:attribute name="default_uri" nil="true"/> |
173 | 6 | Adrian Georgescu | <blink:attribute name="auto_answer"> |
174 | 6 | Adrian Georgescu | False |
175 | 6 | Adrian Georgescu | </blink:attribute> |
176 | 6 | Adrian Georgescu | <blink:attribute name="preferred_media"> |
177 | 6 | Adrian Georgescu | chat |
178 | 6 | Adrian Georgescu | </blink:attribute> |
179 | 6 | Adrian Georgescu | <blink:attribute name="icon" nil="true"/> |
180 | 6 | Adrian Georgescu | </blink:attributes> |
181 | 6 | Adrian Georgescu | </addressbook:contact> |
182 | 6 | Adrian Georgescu | </rl:list> |
183 | 6 | Adrian Georgescu | </rl:resource-lists> |
184 | 6 | Adrian Georgescu | </pre> |
185 | 7 | Adrian Georgescu | |
186 | 7 | Adrian Georgescu | h2. PIDF |
187 | 7 | Adrian Georgescu | |
188 | 7 | Adrian Georgescu | <pre> |
189 | 7 | Adrian Georgescu | Content-Type: application/pidf+xml |
190 | 7 | Adrian Georgescu | |
191 | 7 | Adrian Georgescu | <?xml version="1.0"?> |
192 | 7 | Adrian Georgescu | <presence xmlns="urn:ietf:params:xml:ns:pidf" entity="sip:ag@test.sip2sip.info"> |
193 | 7 | Adrian Georgescu | <tuple xmlns="urn:ietf:params:xml:ns:pidf" xmlns:agp-pidf="urn:ag-projects:xml:ns:pidf" xmlns:c="urn:ietf:params:xml:ns:pidf:cipid" xmlns:caps="urn:ietf:params:xml:ns:pidf:caps" xmlns:agp-caps="urn:ag-projects:xml:ns:pidf:caps" xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" id="SID-f4649f87-1aa3-44ec-ab49-d0464528d706"> |
194 | 7 | Adrian Georgescu | <status> |
195 | 7 | Adrian Georgescu | <basic>open</basic> |
196 | 7 | Adrian Georgescu | <agp-pidf:extended>away</agp-pidf:extended> |
197 | 7 | Adrian Georgescu | </status> |
198 | 7 | Adrian Georgescu | <c:display-name>Adrian Georgescu</c:display-name> |
199 | 7 | Adrian Georgescu | <c:map>Netherlands/Haarlem</c:map> |
200 | 7 | Adrian Georgescu | <c:icon>https%3A//xcap.test.sipthor.net/xcap-root/org.openmobilealliance.pres-content/users/sip%3Aag%40test.sip2sip.info/oma_status-icon/index</c:icon> |
201 | 7 | Adrian Georgescu | <c:homepage>http%3A//georgescu.info</c:homepage> |
202 | 7 | Adrian Georgescu | <agp-pidf:device-info id="f4649f87-1aa3-44ec-ab49-d0464528d706"> |
203 | 7 | Adrian Georgescu | <agp-pidf:description>imac3-2</agp-pidf:description> |
204 | 7 | Adrian Georgescu | <agp-pidf:user-agent>Blink Pro 2.0.0 (MacOSX)</agp-pidf:user-agent> |
205 | 7 | Adrian Georgescu | <agp-pidf:time-offset>120</agp-pidf:time-offset> |
206 | 7 | Adrian Georgescu | </agp-pidf:device-info> |
207 | 7 | Adrian Georgescu | <caps:servcaps> |
208 | 7 | Adrian Georgescu | <caps:audio>true</caps:audio> |
209 | 7 | Adrian Georgescu | <caps:message>true</caps:message> |
210 | 7 | Adrian Georgescu | <caps:text>true</caps:text> |
211 | 7 | Adrian Georgescu | <agp-caps:file-transfer>true</agp-caps:file-transfer> |
212 | 7 | Adrian Georgescu | <agp-caps:screen-sharing>true</agp-caps:screen-sharing> |
213 | 7 | Adrian Georgescu | </caps:servcaps> |
214 | 7 | Adrian Georgescu | <rpid:user-input idle-threshold="600">active</rpid:user-input> |
215 | 7 | Adrian Georgescu | <dm:deviceID>f4649f87-1aa3-44ec-ab49-d0464528d706</dm:deviceID> |
216 | 7 | Adrian Georgescu | <contact>sip%3Aag%40test.sip2sip.info</contact> |
217 | 7 | Adrian Georgescu | <note/> |
218 | 7 | Adrian Georgescu | <timestamp>2012-09-21T12:53:57.802353+02:00</timestamp> |
219 | 7 | Adrian Georgescu | </tuple> |
220 | 7 | Adrian Georgescu | <dm:person xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" id="PID-5c82e1b170c9aa1a670c4388052657f2"> |
221 | 7 | Adrian Georgescu | <rpid:time-offset>120</rpid:time-offset> |
222 | 7 | Adrian Georgescu | <dm:timestamp>2012-09-21T12:53:57.802353+02:00</dm:timestamp> |
223 | 7 | Adrian Georgescu | </dm:person> |
224 | 7 | Adrian Georgescu | <dm:device xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" id="DID-f4649f87-1aa3-44ec-ab49-d0464528d706"> |
225 | 7 | Adrian Georgescu | <dm:deviceID>f4649f87-1aa3-44ec-ab49-d0464528d706</dm:deviceID> |
226 | 7 | Adrian Georgescu | <dm:note>Blink Pro 2.0.0 (MacOSX) at imac3-2</dm:note> |
227 | 7 | Adrian Georgescu | <dm:timestamp>2012-09-21T12:53:57.802353+02:00</dm:timestamp> |
228 | 7 | Adrian Georgescu | </dm:device> |
229 | 7 | Adrian Georgescu | </presence> |
230 | 7 | Adrian Georgescu | </pre> |