DesignBuddyList » History » Version 14
Adrian Georgescu, 07/13/2009 05:40 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 | * Dialog watcher list |
||
12 | 1 | Adrian Georgescu | * Presence rules |
13 | 13 | Adrian Georgescu | * Dialog rules |
14 | 1 | Adrian Georgescu | |
15 | 3 | Adrian Georgescu | [[Image(sipsimple-buddy-list-design.png,width=600)]] |
16 | 14 | Adrian Georgescu | |
17 | 1 | Adrian Georgescu | == Account == |
18 | |||
19 | 14 | Adrian Georgescu | * GET XCAP documents xcap-caps, pres-rules, resource-lists, pidf-manipulation, rls-services, icon, xcap-directory |
20 | 1 | Adrian Georgescu | * Sends Publish for event presence |
21 | * Maintains a '''Presentity''' attributed that is sent as body to Publish |
||
22 | * Sends Subscribe for event presence.info |
||
23 | * Sends Subscribe for event presence with Supported=eventlist |
||
24 | |||
25 | 14 | Adrian Georgescu | == Address book == |
26 | |||
27 | Use the OS standard address book |
||
28 | |||
29 | == Buddy list == |
||
30 | 1 | Adrian Georgescu | |
31 | Contains list of buddies. The buddylist is indexed by SIP URIs. Additional one can store full name or other attributes. Based on NOTIFY for event=presence each buddy has a '''Presentity''' attribute that contains published information. GUI displays parts of it. |
||
32 | |||
33 | 12 | Adrian Georgescu | * The buddy list is stored in the main resource-lists XCAP document '''index''' . |
34 | 1 | 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. |
35 | 12 | Adrian Georgescu | |
36 | 13 | Adrian Georgescu | == Presence watcher lists == |
37 | 1 | Adrian Georgescu | |
38 | Built based on the body of NOTIFY for event=presence.winfo. |
||
39 | 13 | Adrian Georgescu | |
40 | == Dialog watcher lists == |
||
41 | |||
42 | Built based on the body of NOTIFY for event=dialog.winfo. Need to be built in OpenSIPS. |
||
43 | 1 | Adrian Georgescu | |
44 | == Presence rules == |
||
45 | |||
46 | Based on NOTIFY for event watcher.info we update the policy and PUT pres-rules document on the XCAP server. |
||
47 | 12 | Adrian Georgescu | |
48 | == Dialog rules == |
||
49 | |||
50 | Based on NOTIFY for event dialog.info we update the policy and PUT dialog-rules document on the XCAP server. |
||
51 | 4 | Adrian Georgescu | |
52 | 10 | Adrian Georgescu | == Icon exhange flow == |
53 | 4 | Adrian Georgescu | |
54 | 11 | Adrian Georgescu | Support in OpenXCAP server is necessary, see http://openxcap.org/ticket/100 |
55 | |||
56 | 9 | Adrian Georgescu | Publishing end-point, on change: |
57 | 1 | Adrian Georgescu | |
58 | 9 | Adrian Georgescu | 1. Generate a random filename: XYZ |
59 | 1. Build URL http://xcap.example.com/xcap-root/icon/users/sip:alice@example.com/XYZ.png |
||
60 | 1. HTTP PUT to xcap server |
||
61 | 1. Update <icon> element of pidf and PUBLISH new pidf |
||
62 | 1. HTTP GET for xcap-directory and locate previously uploaded icons |
||
63 | 1. HTTP DELETE any previous icon files |
||
64 | 1 | Adrian Georgescu | |
65 | 9 | Adrian Georgescu | On reboot: |
66 | 1 | Adrian Georgescu | |
67 | 9 | Adrian Georgescu | 1. HTTP GET for xcap-directory and locate previously uploaded icon (e.g. XYZ) |
68 | 1. HTTP GET http://xcap.example.com/xcap-root/icon/users/sip:alice@example.com/XYZ.png |
||
69 | 1 | Adrian Georgescu | |
70 | 9 | Adrian Georgescu | Subscribing end-point: |
71 | |||
72 | 1. Parse <icon> element of pidf received in Notify |
||
73 | 2. HTTP GET http://xcap.example.com/xcap-root/icon/users/sip:alice@example.com/XYZ.png |
||
74 | 3. Cache picture and check periodically |