DesignBuddyList » History » Version 42
Adrian Georgescu, 08/04/2009 06:03 PM
1 | 27 | Adrian Georgescu | = Presence blueprint = |
---|---|---|---|
2 | 2 | Adrian Georgescu | |
3 | [[TOC(Design*, depth=1)]] |
||
4 | 1 | Adrian Georgescu | |
5 | 42 | Adrian Georgescu | [[Image(BuddyList-Aggregation.png)]] |
6 | |||
7 | 41 | Adrian Georgescu | This is a high level class that can be used to manage a '''Contacts list''' driven interface of a SIP client graphical user interface. It implements a combination of SIP SIMPLE standards related to presence event package, its storage and policy. |
8 | 14 | Adrian Georgescu | |
9 | 1 | Adrian Georgescu | * Account |
10 | 41 | Adrian Georgescu | * Contacts |
11 | 13 | Adrian Georgescu | * Presence watcher list |
12 | 1 | Adrian Georgescu | * Presence rules |
13 | 15 | Adrian Georgescu | * Dialog watcher list |
14 | 1 | Adrian Georgescu | * Dialog rules |
15 | * Icon exchange |
||
16 | 41 | Adrian Georgescu | * Preferences |
17 | 1 | Adrian Georgescu | |
18 | == Account == |
||
19 | 25 | Adrian Georgescu | |
20 | 1 | Adrian Georgescu | On boot |
21 | |||
22 | 40 | Adrian Georgescu | * Initialize own '''presentity''' |
23 | * Initialize the '''watchers list''' |
||
24 | 39 | Adrian Georgescu | * If '''account.presence.xcap_root''' is not defined, locate XCAP root by doing a DNS TXT lookup for xcap.example.com, deal with DNS timeout |
25 | 1 | Adrian Georgescu | * GET XCAP application xcap-caps |
26 | 39 | Adrian Georgescu | * GET the default filename for the applications supported in xcap-caps and cache them locally |
27 | * if '''pidf-manipulation''' application is supported by XCAP server, update the '''presentity''' with '''pidf-manipulation''' document |
||
28 | * Send PUBLISH for '''Event: presence''' |
||
29 | 41 | Adrian Georgescu | * Initialize '''Contacts''' using XCAP documents |
30 | 26 | Adrian Georgescu | * If '''account.message_summary.enabled''' SUBSCRIBE for '''Event: message-summary''' |
31 | 25 | Adrian Georgescu | * If '''account.presence.subscribe_xcap_diff.enabled''' SUBSCRIBE for '''Event: xcap-diff''' |
32 | 1 | Adrian Georgescu | |
33 | While running |
||
34 | |||
35 | 25 | Adrian Georgescu | * Refresh XCAP server location based on DNS TTL |
36 | 26 | Adrian Georgescu | * Refresh PUBLISH for event '''presence''' |
37 | * Refresh SUBSCRIBE to '''presence.winfo''' |
||
38 | * Refresh SUBSCRIBE to '''dialog.winfo''' |
||
39 | 29 | Adrian Georgescu | * Refresh SUBSCRIBE to '''xcap-diff''' |
40 | 1 | Adrian Georgescu | * Refresh SUBSCRIBE to '''message-summary''' |
41 | * Reload XCAP documents based on '''xcap-diff''' NOTIFYs |
||
42 | 30 | Adrian Georgescu | * Update '''presentity''' based on GUI actions or automatic sensors and cache it |
43 | 1 | Adrian Georgescu | |
44 | Long term state |
||
45 | |||
46 | * Update '''pidf-manipulation document''' and '''presentity''' |
||
47 | 14 | Adrian Georgescu | |
48 | 41 | Adrian Georgescu | == Contacts list == |
49 | 28 | Adrian Georgescu | |
50 | 41 | Adrian Georgescu | Contains a list of contacts we SUBSCRIBE to for '''Event: presence'''. The contacts list is indexed by a unique SIP URI, a random SIP URI must be generated for contacts that do not have a SIP URI and e must musk buddies we want to subscribe to by setting a particular flag for each of them. Additional, one can store full names and other attributes for each contact by using extensions to pidf for contact information. Based on NOTIFY for Event=presence each contact has a '''presentity''' attribute that contains its published information. The GUI displays various attributes of each '''presentity'''. |
51 | 39 | Adrian Georgescu | |
52 | 41 | Adrian Georgescu | * The contacts list is stored in the main '''resource-lists''' XCAP document '''index''' |
53 | * Maintain a '''presentity''' attribute with what is received in the Notify for each contact |
||
54 | * If '''account.presence.subscribe_rls_services''' is true, a RLS document that contains a list of discrete SIP URIs we subscribe to and PUT it on the server under SIP URI account-buddies@domain. Then a Subscribe is sent with Supported: eventlist for this SIP URI. /otherwise send SUBSCRIBVE to each contact for '''Event: presence''' |
||
55 | * On contacts list change, PUT resource-lists and rls-services documents on the XCAP server |
||
56 | 37 | Adrian Georgescu | |
57 | 41 | Adrian Georgescu | A contact has properties related to his device capabilities (e.g. can_chat, can_share, can_talk, can_video). This is conveyed via '''presence caps''' and updates the preferences set by the local user |
58 | 37 | Adrian Georgescu | |
59 | 1 | Adrian Georgescu | == Presence watcher lists == |
60 | |||
61 | 28 | Adrian Georgescu | Built based on the body of NOTIFY for '''Event=presence.winfo'''. |
62 | 1 | Adrian Georgescu | |
63 | == Presence rules == |
||
64 | 20 | Adrian Georgescu | |
65 | 28 | Adrian Georgescu | * Based on NOTIFY for event '''watcher.info''' we update the policy |
66 | * PUT '''pres-rules''' document on the XCAP server and cache locally |
||
67 | 15 | Adrian Georgescu | |
68 | == Dialog watcher lists == |
||
69 | 1 | Adrian Georgescu | |
70 | 28 | Adrian Georgescu | Built based on the body of NOTIFY for '''event=dialog.winfo'''. To be built in OpenSIPS. |
71 | 1 | Adrian Georgescu | |
72 | == Dialog rules == |
||
73 | |||
74 | 28 | Adrian Georgescu | Based on NOTIFY for event '''dialog.winfo''' we update the policy and PUT '''dialog-rules''' document on the XCAP server. To be built in OpenXCAP server. |
75 | 1 | Adrian Georgescu | |
76 | 9 | Adrian Georgescu | == Icon exhange == |
77 | 1 | Adrian Georgescu | |
78 | 35 | Adrian Georgescu | There is how OMA has specified such XCAP application: |
79 | 1 | Adrian Georgescu | |
80 | 35 | Adrian Georgescu | '"Presence Content XDM Specification'" |
81 | 36 | Adrian Georgescu | |
82 | 35 | Adrian Georgescu | http://www.openmobilealliance.org/technical/release_program/docs/PresenceSIMPLE/V2_0-20081223-C/OMA-TS-Presence_SIMPLE_Content_XDM-V1_0-20081223-C.pdf |
83 | 33 | Adrian Georgescu | |
84 | 1 | Adrian Georgescu | Support in OpenXCAP server is necessary, see http://openxcap.org/ticket/100 |
85 | 9 | Adrian Georgescu | |
86 | 26 | Adrian Georgescu | Publishing end-point, on boot: |
87 | 32 | Adrian Georgescu | |
88 | 1. HTTP GET for xcap-directory and locate previously uploaded icon (e.g. ABC) |
||
89 | 26 | Adrian Georgescu | 1. HTTP GET http://xcap.example.com/xcap-root/org.openmobilealliance.pres-content/users/sip:alice@example.com/oma_status-icon/ABC |
90 | 32 | Adrian Georgescu | |
91 | 1 | Adrian Georgescu | Publishing end-point, on change: |
92 | |||
93 | 1. Generate a new random filename: XYZ |
||
94 | 1. Build URL http://xcap.example.com/xcap-root/org.openmobilealliance.pres-content/users/sip:alice@example.com/oma_status-icon/XYZ |
||
95 | 1. HTTP PUT to xcap server |
||
96 | 9 | Adrian Georgescu | 1. Update <icon> element of pidf and PUBLISH new pidf |
97 | 1 | Adrian Georgescu | 1. HTTP DELETE any previous icon file ABC |
98 | 32 | Adrian Georgescu | |
99 | 9 | Adrian Georgescu | Subscribing end-point: |
100 | 1 | Adrian Georgescu | |
101 | 32 | Adrian Georgescu | 1. Parse <icon> element of pidf received in Notify |
102 | 9 | Adrian Georgescu | 2. HTTP GET http://xcap.example.com/xcap-root/org.openmobilealliance.pres-content/users/sip:alice@example.com/oma_status-icon/XYZ |
103 | 3. Cache picture until next NOTIFY with diferent <icon> element is received |
||
104 | 41 | Adrian Georgescu | |
105 | == Preferences == |
||
106 | |||
107 | Managed the policy dependent on the Group the Watcher is in the Contact list. |