XCAP-samples
Version 6 (Adrian Georgescu, 12/13/2012 09:31 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> |