SipPayloadsApi » History » Version 20
Adrian Georgescu, 08/07/2012 08:34 PM
1 | 19 | Adrian Georgescu | h1. Payloads API |
---|---|---|---|
2 | 1 | Adrian Georgescu | |
3 | 20 | Adrian Georgescu | These applications provide functionality that are required for implementing a feature-rich SIP SIMPLE client. These applications are used for parsing and generating bodies carried using PUBLISH, SUBSCRIBE and NOTIFY methods designed for asynchronous event notifications, to convey in near real-time, information between SIP end-points. |
4 | 18 | Adrian Georgescu | |
5 | 20 | Adrian Georgescu | An example of such information is presence, which in its basic form it provides user availability information based on end-user choice. In its advanced form, presence can provide rich state information including but not limited to user mood, geo-location, environment, noise level and the type of communication desired. The information can be disseminated based on a granular policy which allows end-users to decide who has access to which part of the published information. |
6 | 1 | Adrian Georgescu | |
7 | |||
8 | 18 | Adrian Georgescu | h2. addressbook.py |
9 | 1 | Adrian Georgescu | |
10 | 18 | Adrian Georgescu | High-level implementation of an addressbook stored in XCAP documents. The |
11 | contacts, groups and their attributes are stored in resource lists and OMA |
||
12 | extensions described in OMA-TS-Presence_SIMPLE_XDM are used for describing |
||
13 | policy and RLS services by references to resource lists. Multiple client |
||
14 | instances can synchronize this addressbook using XCAP-diff event package. |
||
15 | 1 | Adrian Georgescu | |
16 | |||
17 | 18 | Adrian Georgescu | h2. watcherinfo.py |
18 | 1 | Adrian Georgescu | |
19 | 18 | Adrian Georgescu | Described in RFC3857 and RFC3858. |
20 | 1 | Adrian Georgescu | |
21 | 18 | Adrian Georgescu | Parses NOTIFY body for presence.winfo event. Used for keeping track of |
22 | watchers that subscribed to our presentity. Based on this information the |
||
23 | the user can manage its presence policy. To retrieve this information the |
||
24 | SIP client must subscribe to its own address for event presence.winfo. |
||
25 | 1 | Adrian Georgescu | |
26 | |||
27 | 18 | Adrian Georgescu | h2 resourcelists.py |
28 | 15 | Adrian Georgescu | |
29 | 18 | Adrian Georgescu | Described in RFC4826. |
30 | 1 | Adrian Georgescu | |
31 | 18 | Adrian Georgescu | Parses and generates XML documents for constructing resource lists |
32 | documents. Used for server side storage of presence related buddy lists |
||
33 | using XCAP protocol. The SIP clients maintain the resource-lists on the |
||
34 | XCAP server which provides persisten storage and aggregation point for |
||
35 | multiple devices. |
||
36 | 1 | Adrian Georgescu | |
37 | |||
38 | 18 | Adrian Georgescu | rlsservices.py (RFC4826) |
39 | 1 | Adrian Georgescu | |
40 | 18 | Adrian Georgescu | Parses and generates XML documents for constructing rls-services documents. |
41 | Used for delegating presence related works to the server. The client build |
||
42 | rls-services lists with buddies and instructs the server to subscribe to the |
||
43 | sip uris indicated in the lists. This way the client can save bandwidth as |
||
44 | the server performs the signalling for subscription and collection of |
||
45 | notifications and provides consolidated answer to the sip user agent. |
||
46 | 1 | Adrian Georgescu | |
47 | 15 | Adrian Georgescu | |
48 | 18 | Adrian Georgescu | rlmi.py, rlsnotify.py (RFC4482) |
49 | 1 | Adrian Georgescu | |
50 | 18 | Adrian Georgescu | Document handling for NOTIFY body for Resource Lists Contact Information. |
51 | 1 | Adrian Georgescu | |
52 | |||
53 | 18 | Adrian Georgescu | policy.py (RFC4745) |
54 | 1 | Adrian Georgescu | |
55 | 18 | Adrian Georgescu | Generic data types to be used in policy applications. |
56 | 15 | Adrian Georgescu | |
57 | |||
58 | 18 | Adrian Georgescu | presrules.py (RFC5025) |
59 | 1 | Adrian Georgescu | |
60 | 18 | Adrian Georgescu | Parses and generates authorization rules in XML format for presence or other |
61 | applications. Authorization rules are stored on the XCAP server. The |
||
62 | presence rules are generated either based on user initiative or as a |
||
63 | response to a new subscription signaled by a change in the watcherinfo |
||
64 | application. |
||
65 | 1 | Adrian Georgescu | |
66 | |||
67 | 18 | Adrian Georgescu | omapolicy.py (OMA-TS-Presence_SIMPLE_XDM-V1_1) |
68 | 11 | Adrian Georgescu | |
69 | 18 | Adrian Georgescu | Conditions extension handling according to OMA-TS-Presence_SIMPLE_XDM-V1_1. |
70 | This module provides an extension to common policy defined in RFC4745 to |
||
71 | support condition extensions defined by OMA. |
||
72 | 15 | Adrian Georgescu | |
73 | 11 | Adrian Georgescu | |
74 | 18 | Adrian Georgescu | prescontent.py (OMA-TS-Presence_SIMPLE_XDM-V1_1) |
75 | 15 | Adrian Georgescu | |
76 | 18 | Adrian Georgescu | Generates presence content application documents according to OMA TS |
77 | Presence SIMPLE Content. |
||
78 | 1 | Adrian Georgescu | |
79 | 8 | Adrian Georgescu | |
80 | 18 | Adrian Georgescu | directory.py (OMA Core Specifications) |
81 | 8 | Adrian Georgescu | |
82 | 18 | Adrian Georgescu | Parses xcap-directory messages according to OMA TS XDM Core. |
83 | 1 | Adrian Georgescu | |
84 | 11 | Adrian Georgescu | |
85 | 18 | Adrian Georgescu | dialoginfo.py (RFC4235) |
86 | 13 | Adrian Georgescu | |
87 | 18 | Adrian Georgescu | Parses and produces dialog-info messages according to RFC4235. |
88 | 13 | Adrian Georgescu | |
89 | |||
90 | 18 | Adrian Georgescu | dialogrules.py |
91 | 13 | Adrian Georgescu | |
92 | 18 | Adrian Georgescu | Parses and produces Dialog Authorization Rules documents. As there is no RFC |
93 | for this, common-policy format from RFC 4745 is used. Subscription Handling |
||
94 | has been taken from RFC 5025. |
||
95 | 15 | Adrian Georgescu | |
96 | 11 | Adrian Georgescu | |
97 | 18 | Adrian Georgescu | pidf.py (RFC3863 and RFC3379) |
98 | 11 | Adrian Georgescu | |
99 | 18 | Adrian Georgescu | This module provides classes to parse and generate PIDF documents, and also |
100 | uses the XML Application extensibility API to allow extensions to PIDF. It |
||
101 | is used to parse NOTIFY body for presence event and generates rich presence |
||
102 | state information for use with PUBLISH. Used to generate own presence |
||
103 | information and to parse the state of buddy lists entries we have subscribed |
||
104 | to. A SIP client typically instantiates a new pidf object for itself and for |
||
105 | each buddy it SUBSCRIBEs to and update each object when a NOTIFY is |
||
106 | received. The list of buddys is maintained using resourcelists application. |
||
107 | 11 | Adrian Georgescu | |
108 | |||
109 | 18 | Adrian Georgescu | rpid.py (RFC4480) |
110 | 11 | Adrian Georgescu | |
111 | 18 | Adrian Georgescu | This module provides an extension to PIDF to support rich presence. |
112 | 11 | Adrian Georgescu | |
113 | |||
114 | 18 | Adrian Georgescu | presdm.py (RFC4479) |
115 | 11 | Adrian Georgescu | |
116 | 18 | Adrian Georgescu | This module provides an extension to the PIDF to support the data module |
117 | defined in RFC4479. |
||
118 | 11 | Adrian Georgescu | |
119 | |||
120 | 18 | Adrian Georgescu | cipid.py (RFC4482) |
121 | |||
122 | This module provides an extension to PIDF to provide person related information. |
||
123 | 11 | Adrian Georgescu | |
124 | |||
125 | 18 | Adrian Georgescu | caps.py (RFC5196) |
126 | 11 | Adrian Georgescu | |
127 | 18 | Adrian Georgescu | This module provides capabilities application: displays OPTIONS request-like information |
128 | as an extension to the PIDF. |
||
129 | 11 | Adrian Georgescu | |
130 | 15 | Adrian Georgescu | |
131 | 18 | Adrian Georgescu | xcapcaps.py (RFC4825) |
132 | 11 | Adrian Georgescu | |
133 | 18 | Adrian Georgescu | Support for parsing and building xcap-caps documents, as defined by RFC4825. |
134 | 15 | Adrian Georgescu | |
135 | |||
136 | 18 | Adrian Georgescu | xcapdiff.py (RFC5874) |
137 | 11 | Adrian Georgescu | |
138 | 18 | Adrian Georgescu | Parses NOTIFY body for xcap-diff event. Used to detect changes in XCAP |
139 | documents changed by other device configured for the same presentity. |
||
140 | 15 | Adrian Georgescu | |
141 | 11 | Adrian Georgescu | |
142 | 18 | Adrian Georgescu | iscomposing.py (RFC3994) |
143 | 11 | Adrian Georgescu | |
144 | 18 | Adrian Georgescu | This module parses and generates isComposing messages according to RFC3994. It's used |
145 | mainly in chat environments to indicate the other party that the user is actually |
||
146 | typing a message. |
||
147 | 11 | Adrian Georgescu | |
148 | |||
149 | 18 | Adrian Georgescu | conference.py (RFC4575) |
150 | 11 | Adrian Georgescu | |
151 | 18 | Adrian Georgescu | This module implements conference-info payload parsing and generating for |
152 | describing information about conference participants and related resources. |
||
153 | 11 | Adrian Georgescu | |
154 | 15 | Adrian Georgescu | |
155 | 18 | Adrian Georgescu | messagesummary.py (RFC3842) |
156 | 1 | Adrian Georgescu | |
157 | 18 | Adrian Georgescu | This module implements a parser and generator for message-summary payload, |
158 | which is used to indicate missed calls or voice mail recordings. |