DesignBuddyList » History » Version 19
Adrian Georgescu, 07/13/2009 05:53 PM
1 | 2 | Adrian Georgescu | = Buddy list = |
---|---|---|---|
2 | |||
3 | [[TOC(Design*, depth=1)]] |
||
4 | 1 | Adrian Georgescu | |
5 | 14 | Adrian Georgescu | This is a high level class that can be used to manage a buddy list driven interface of a SIP client graphical user interface. |
6 | |||
7 | 1 | Adrian Georgescu | * Account |
8 | * Address-book |
||
9 | * Buddy list |
||
10 | 13 | Adrian Georgescu | * Presence watcher list |
11 | 1 | Adrian Georgescu | * Presence rules |
12 | 15 | Adrian Georgescu | * Dialog watcher list |
13 | 1 | Adrian Georgescu | * Dialog rules |
14 | 15 | Adrian Georgescu | * Icon exchange |
15 | 1 | Adrian Georgescu | |
16 | == Account == |
||
17 | |||
18 | 17 | Adrian Georgescu | On boot |
19 | |||
20 | 19 | Adrian Georgescu | * Locate XCAP server by doing DNS TXT lookup for _xcap._tls.example.com |
21 | * GET documents xcap-caps, pres-rules, resource-lists, pidf-manipulation, rls-services, dialog-rules, icon, xcap-directory from XCAP server |
||
22 | 1 | Adrian Georgescu | * Send Subscribe for event presence.info |
23 | * Send Subscribe for event dialog.info |
||
24 | 18 | Adrian Georgescu | * Send Subscribe for event message-summary |
25 | * Retrieve curent icon image from the xcap server icon auid |
||
26 | * Build presentity based on pidf-manipulation document, if present |
||
27 | * Send Publish for event presence |
||
28 | * If rls-services present in xcap-caps, enable RLS and send Subscribe for event presence with Supported=eventlist |
||
29 | 1 | Adrian Georgescu | |
30 | 17 | Adrian Georgescu | While running |
31 | 1 | Adrian Georgescu | |
32 | 19 | Adrian Georgescu | * Refresh XCAP server location based on DNS time to live |
33 | 17 | Adrian Georgescu | * Refresh Publish for event presence |
34 | * Refresh subscription to presence.info |
||
35 | * Refresh subscription to dialog.info |
||
36 | * Refresh subscription to message-summary |
||
37 | * Maintain a '''Presentity''' attribute received in Notify for each buddy |
||
38 | |||
39 | 1 | Adrian Georgescu | == Address book == |
40 | 14 | Adrian Georgescu | |
41 | Use the OS standard address book |
||
42 | |||
43 | 1 | Adrian Georgescu | == Buddy list == |
44 | |||
45 | 17 | Adrian Georgescu | Contains list of buddies. The buddylist is indexed by the SIP URI. Additional, one can store full names and other attributes. Based on NOTIFY for event=presence each buddy has a '''Presentity''' attribute that contains published information. GUI displays parts of it. |
46 | 12 | Adrian Georgescu | |
47 | 1 | Adrian Georgescu | * The buddy list is stored in the main resource-lists XCAP document '''index''' . |
48 | 12 | Adrian Georgescu | * If '''account.presence.subscribe_rls_services''' is true, a RLS document that contains a list of discrete SIP URIs we subscribe to is PUT on the server under SIP URI account-buddies@domain. Then a Subscribe is sent with Supported: eventlist for this SIP URI. |
49 | 13 | Adrian Georgescu | |
50 | == Presence watcher lists == |
||
51 | 1 | Adrian Georgescu | |
52 | Built based on the body of NOTIFY for event=presence.winfo. |
||
53 | |||
54 | == Presence rules == |
||
55 | |||
56 | Based on NOTIFY for event watcher.info we update the policy and PUT pres-rules document on the XCAP server. |
||
57 | 15 | Adrian Georgescu | |
58 | == Dialog watcher lists == |
||
59 | |||
60 | Built based on the body of NOTIFY for event=dialog.winfo. To be built in OpenSIPS. |
||
61 | 12 | Adrian Georgescu | |
62 | == Dialog rules == |
||
63 | 15 | Adrian Georgescu | |
64 | 4 | Adrian Georgescu | Based on NOTIFY for event dialog.info we update the policy and PUT dialog-rules document on the XCAP server. To be built in OpenXCAP server. |
65 | 15 | Adrian Georgescu | |
66 | 4 | Adrian Georgescu | == Icon exhange == |
67 | 11 | Adrian Georgescu | |
68 | Support in OpenXCAP server is necessary, see http://openxcap.org/ticket/100 |
||
69 | 9 | Adrian Georgescu | |
70 | 1 | Adrian Georgescu | Publishing end-point, on change: |
71 | 9 | Adrian Georgescu | |
72 | 1. Generate a random filename: XYZ |
||
73 | 1. Build URL http://xcap.example.com/xcap-root/icon/users/sip:alice@example.com/XYZ.png |
||
74 | 1. HTTP PUT to xcap server |
||
75 | 1. Update <icon> element of pidf and PUBLISH new pidf |
||
76 | 1. HTTP GET for xcap-directory and locate previously uploaded icons |
||
77 | 1 | Adrian Georgescu | 1. HTTP DELETE any previous icon files |
78 | 9 | Adrian Georgescu | |
79 | 1 | Adrian Georgescu | On reboot: |
80 | 9 | Adrian Georgescu | |
81 | 1. HTTP GET for xcap-directory and locate previously uploaded icon (e.g. XYZ) |
||
82 | 1 | Adrian Georgescu | 1. HTTP GET http://xcap.example.com/xcap-root/icon/users/sip:alice@example.com/XYZ.png |
83 | 9 | Adrian Georgescu | |
84 | Subscribing end-point: |
||
85 | |||
86 | 1. Parse <icon> element of pidf received in Notify |
||
87 | 2. HTTP GET http://xcap.example.com/xcap-root/icon/users/sip:alice@example.com/XYZ.png |
||
88 | 1 | Adrian Georgescu | 3. Cache picture and check periodically |