Project

General

Profile

Presence » History » Version 47

Adrian Georgescu, 09/21/2012 12:57 PM

1 1 Adrian Georgescu
h1. Presence
2
3 47 Adrian Georgescu
This functionality will be available in upcoming Blink Pro 2.0 and Blink Lite 2.0 for MacOSX and also on Blink-Qt for Window and Linux.
4 44 Adrian Georgescu
5 15 Adrian Georgescu
h2. Design Principles
6
7 30 Adrian Georgescu
 * Blink should work with any SIP and XCAP servers that supports SIP SIMPLE standards
8 1 Adrian Georgescu
 * Blink uses only TCP or TLS transports for signaling
9 38 Adrian Georgescu
 * Blink presence payload is based on "RPID schema":http://tools.ietf.org/html/rfc4480
10 43 Adrian Georgescu
 * Blink relies on a Presence Agent collocated with the SIP Registrar that supports PUBLISH method and XCAP storage
11 40 Adrian Georgescu
 * Presence Agent must support handling of presence rules using org.openmobilealliance.pres-rules XCAP document
12
 * Presence Agent must support external references from rls-services to resource-lists
13
 * Presence Agent must support external references from rls-services to  org.openmobilealliance.pres-rules
14
 * Presence Agent must support presence and presence.winfo event packages
15 43 Adrian Georgescu
 * Presence Agent may support xcap-diff event package for XCAP documents replication between clients
16 42 Adrian Georgescu
 * Presence Agent must support RLS subscriptions and "RLMI notifications":http://tools.ietf.org/html/rfc4662
17 45 Adrian Georgescu
 * SIP Registrar may support GRUU
18 40 Adrian Georgescu
 * XCAP server must support the following XCAP applications: rls-services, resource-lists, xcap-caps, org.openmobilealliance.pres-content, org.openmobilealliance.pres-rules, org.openmobilealliance.xcap-directory
19
 * XCAP server may support pidf-manipulation for offline status
20 28 Adrian Georgescu
21 29 Adrian Georgescu
There is nothing that should prevent Blink interoperate with any other SIP end-points as far as SIP signaling is concerned (PUBLISH, SUBSCRIBE and NOTIFY methods). Blink will preserve contacts related information it did not create in XCAP documents. Unfortunately, we have not found other clients that behave in the same way. Sharing the same XCAP documents with other SIP clients is therefore strongly discouraged as is guaranteed to cause failures.
22
23 25 Adrian Georgescu
h3. Standards
24
25
http://sipsimpleclient.com/projects/sipsimpleclient/wiki/SipFeatures#Presence
26 18 Adrian Georgescu
27 1 Adrian Georgescu
h3. Disclaimer
28 19 Adrian Georgescu
29 29 Adrian Georgescu
There is no guaranty Blink Presence functionality would interoperate with other SIP clients due to the freedom allowed by the standards in modeling the data used for contacts storage.
30 27 Adrian Georgescu
31 1 Adrian Georgescu
h3. Interoperability
32
33 21 Adrian Georgescu
Presence is a complex issue and the mechanisms used internally by Blink may not necessarily work under your own server environment. If you want to troubleshot when things do not work as expected, first use the built-in Blink accounts that are designed to work with SIP2SIP domain. As protocol traces for signaling and storage are logged to file, you can easily access such debug information and analyze Blink behavior.
34 1 Adrian Georgescu
35 32 Adrian Georgescu
We can provide support, if you encounter interoperability issues with any the following products and services against which Blink has been fully tested:
36 1 Adrian Georgescu
37
 * SIP2SIP.info (a public free SIP service)
38 33 Adrian Georgescu
 * Interoperability with XMPP domains (using SylkServer SIP/XMPP gateway)
39 1 Adrian Georgescu
 * OpenSIPS/OpenXCAP combination (server software you can run on your premisses)
40 27 Adrian Georgescu
41
You can also enable one SIP2SIP account in your Blink instance to perform presence and contact storage operations while using your preferred SIP provider to make phone calls.
42 18 Adrian Georgescu
43 15 Adrian Georgescu
h3. Support
44
45 34 Adrian Georgescu
As presence require proper infrastructure that many SIP service providers simply lack today, do not complain to us when Presence does not work with your SIP service provider.
46 15 Adrian Georgescu
47
h2. Contacts
48 24 Adrian Georgescu
49 34 Adrian Georgescu
Contacts are stored on the XCAP server in the resource-lists document under a proprietary name space to avoid conflicts with other end-points that might use the same document as there is no common standard way for how to store a rich address book on a server. This means that different SIP user agents from different vendors cannot read or modify this data in a deterministic way. The contacts in the address-book are then used by standard OMA rls-services and pres-rules XCAP documents. Contacts have two Presence related properties that can changed in Edit Contact Panel Subscriptions section:
50 1 Adrian Georgescu
51
 * Subscribe to Contact's Presence Information
52 8 Adrian Georgescu
 * Allow Contact to see my Presence Information
53 34 Adrian Georgescu
 * If an URI part of the contact is labelled as XMPP, when using a SIP2SIP.info account the session request will be forwarded to an XMPP gateway.
54 1 Adrian Georgescu
55 4 Adrian Georgescu
h2. Watcher Information
56
57 13 Adrian Georgescu
Using SUBSCRIBE for presence.winfo event package, Blink keeps track of presence watchers and their status.
58 6 Adrian Georgescu
 
59 4 Adrian Georgescu
 * Contacts that have subscribed to our presence are rendered in the 'New Contact Requests' group that is rendered on top of the contacts list. Right click or dragging the contact can be used to allow or deny the request. Blocked contacts are displayed in the Blocked group.
60
 * Active watchers are shown in Status -> People Watching  My Presence Activity menu
61
62 6 Adrian Georgescu
h2. Published Presence
63 1 Adrian Georgescu
64 13 Adrian Georgescu
Using PUBLISH method for presence event package, the following information is published by Blink:
65 1 Adrian Georgescu
66 7 Adrian Georgescu
h3. Basic Status
67
68
Open or closed.
69
70 14 Adrian Georgescu
h3. Extended Status
71 7 Adrian Georgescu
72 14 Adrian Georgescu
Blink uses a proprietary extension for indicating the extented status compatible with XMPP end-points. 
73 7 Adrian Georgescu
74 6 Adrian Georgescu
h3. Location
75 1 Adrian Georgescu
76 6 Adrian Georgescu
Location is based on CIPID map extension. Location can be disabled per account in Presence section of account preferences.
77
78
h3. Homepage
79
80
A home page can be entered in Presence section of account preferences. Homepage is based on CIPID homepage extension.
81 1 Adrian Georgescu
82 3 Adrian Georgescu
h3. Note
83 6 Adrian Georgescu
84 14 Adrian Georgescu
Presence note can be typed in the text area right to own icon in the main GUI window. Note is attached to the service.
85 5 Adrian Georgescu
86
h3. Status
87 1 Adrian Georgescu
88 7 Adrian Georgescu
Presence status can be changed from the main GUI window and Status menu. Last combination of Presence state and note are saved in the history build at the end of the menu. 
89 1 Adrian Georgescu
90 5 Adrian Georgescu
h3. Icon
91 1 Adrian Georgescu
92
User icon is uploaded to XCAP server using OMA pres-content application, replicated among multiple Blink instances and location of icons storage URL on XCAP server is published in PIDF.
93
94
h3. Offline Presence
95
96
In status menu, one can change its presence state and also an offline state when Blink is offline. This is done using pidf-manipulation XCAP application.
97
98
h3. Media Capabilities
99
100
Type of media supported by the end-point.
101
102
h3. Device Information
103
104
The following information is published:
105
106
 * Hostname
107
 * Time offset
108 9 Adrian Georgescu
 * Idle status
109 1 Adrian Georgescu
 * GRUU contact address
110 8 Adrian Georgescu
111 46 Adrian Georgescu
h3. Example
112
113
<pre>
114
Content-Type: application/pidf+xml
115
116
<?xml version="1.0"?>
117
<presence xmlns="urn:ietf:params:xml:ns:pidf" entity="sip:ag@test.sip2sip.info"><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"><status><basic>open</basic><agp-pidf:extended>away</agp-pidf:extended></status><c:display-name>Adrian Georgescu</c:display-name><c:map>Netherlands/Haarlem</c:map><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><c:homepage>http%3A//georgescu.info</c:homepage><agp-pidf:device-info id="f4649f87-1aa3-44ec-ab49-d0464528d706"><agp-pidf:description>imac3-2</agp-pidf:description><agp-pidf:user-agent>Blink Pro 2.0.0 (MacOSX)</agp-pidf:user-agent><agp-pidf:time-offset>120</agp-pidf:time-offset></agp-pidf:device-info><caps:servcaps><caps:audio>true</caps:audio><caps:message>true</caps:message><caps:text>true</caps:text><agp-caps:file-transfer>true</agp-caps:file-transfer><agp-caps:screen-sharing>true</agp-caps:screen-sharing></caps:servcaps><rpid:user-input idle-threshold="600">active</rpid:user-input><dm:deviceID>f4649f87-1aa3-44ec-ab49-d0464528d706</dm:deviceID><contact>sip%3Aag%40test.sip2sip.info</contact><note/><timestamp>2012-09-21T12:53:57.802353+02:00</timestamp></tuple><dm:person xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" id="PID-5c82e1b170c9aa1a670c4388052657f2"><rpid:time-offset>120</rpid:time-offset><dm:timestamp>2012-09-21T12:53:57.802353+02:00</dm:timestamp></dm:person><dm:device xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" id="DID-f4649f87-1aa3-44ec-ab49-d0464528d706"><dm:deviceID>f4649f87-1aa3-44ec-ab49-d0464528d706</dm:deviceID><dm:note>Blink Pro 2.0.0 (MacOSX) at imac3-2</dm:note><dm:timestamp>2012-09-21T12:53:57.802353+02:00</dm:timestamp></dm:device></presence>
118
</pre>
119
120
121 10 Adrian Georgescu
h2. Subscribe To Presence
122 3 Adrian Georgescu
123 8 Adrian Georgescu
Using SIP SUBSCRIBE for RLS, Bink subscribes to the SIP addresses stored in rls-services document uploaded on the XCAP server by contacts management actions in the GUI (add/update/delete contacts).
124 1 Adrian Georgescu
 
125 10 Adrian Georgescu
h3. Presence Notifications
126
127 6 Adrian Georgescu
Presence information received from the SIP URIs as RLMI notifications from the RLS server is used to update each contact in the contacts list with:
128 1 Adrian Georgescu
129
 * Status icon overlaid on botton right of user icon, indicating away, busy, extended-away or available
130
 * Rectangular presence indicator on right side of the tile to provide a quick overview about availability
131
 * Presence note is rendered on second line, multiple notes and pending authorizations are rotated every 10 seconds
132
 * User icon is retrieved and updated when necessary from URL advertised by user 
133 2 Adrian Georgescu
134
Selecting  Show Presence Information menu item from contextual contact menu show a panel with detailed information, not all information may have been rendered in the GUI.
135 1 Adrian Georgescu
136
h2. Sessions
137
138
 * When subscribed to Presence, if information is received, the contextual menu of each contact is updated with the possibility of starting a session to a specific device. This requires the remote device to use GRUU.