ODF

Version 4 (Adrian Georgescu, 11/04/2014 12:55 pm)

1 1 Adrian Georgescu
h1. ODF integration
2 1 Adrian Georgescu
3 1 Adrian Georgescu
4 1 Adrian Georgescu
h2. Signaling
5 1 Adrian Georgescu
6 1 Adrian Georgescu
7 1 Adrian Georgescu
h2. Media
8 1 Adrian Georgescu
9 2 Adrian Georgescu
A new MSRP media type can be created similar to file-transfer or screen sharing. See SIP SIMPLE Client SDK MSRP streams definition:
10 2 Adrian Georgescu
11 2 Adrian Georgescu
<pre>
12 2 Adrian Georgescu
sipsimple/streams/msrp.py
13 2 Adrian Georgescu
</pre>
14 1 Adrian Georgescu
15 3 Adrian Georgescu
h3. Example of a new type of stream:
16 3 Adrian Georgescu
17 3 Adrian Georgescu
<pre>
18 3 Adrian Georgescu
class ODFStream(MSRPStreamBase):
19 3 Adrian Georgescu
    type = 'odf'
20 3 Adrian Georgescu
21 3 Adrian Georgescu
    media_type = 'odf'
22 3 Adrian Georgescu
    accept_types = ['application/odf+xml']
23 3 Adrian Georgescu
    accept_wrapped_types = ['*']
24 3 Adrian Georgescu
</pre>
25 3 Adrian Georgescu
26 3 Adrian Georgescu
Once established, the MSRP stream can cary back and forth payloads of the types specified in the stream definition. Is up to the end-points to handle the actual payloads and match various files shared through this mechanism over the same session. The SIP session id can be used to group together various flows within the same stream.
27 3 Adrian Georgescu
28 1 Adrian Georgescu
29 1 Adrian Georgescu
h2. Presence
30 1 Adrian Georgescu
31 4 Adrian Georgescu
The end-points supporting this feature will advertise this capability by publishing it using SIP SIMPLE Presence. For this the end-point capabilities must be extended to support off.
32 4 Adrian Georgescu
33 4 Adrian Georgescu
<pre>
34 4 Adrian Georgescu
sipsimple/payloads/caps.py
35 4 Adrian Georgescu
</pre>