[SIPForum-discussion] Presence aggregation

kamal mann kamal.mann at yahoo.co.in
Tue Oct 14 05:23:16 UTC 2008


Hello Csaba, 
Have a look on RPID and CIPID (PIDF data). RFC 4482
have solution to your all queries. 
For example if you consider the following CIPID doc:

 <?xml version="1.0" encoding="UTF-8"?> <presence
xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:c="urn:ietf:params:xml:ns:pidf:cipid"
entity="pres:someone at example.com"> <tuple id="bs35r9">
<status> <basic>open</basic> </status> <contact
priority="0.8">im:alice at example.net</contact>
<timestamp>2005-11-21T16:14:29Z</timestamp> </tuple>
<dm:person id="p1">
<c:card>http://example.com/~alice/card.vcd</c:card>
<c:display-name>Alice Lewis</c:card>
<c:homepage>http://example.com/~alice</c:homepage>
<c:icon>http://example.com/~alice/me.png</c:icon>
<c:map>http://example.com/~alice/gml-map.xml</c:map>
<c:sound>http://example.com/~alice/hello.wav</c:sound>
<dm:timestamp>2005-11-21T09:00:00+05:00</dm:timestamp>
</dm:person> </presence> An example combining RPID and
CIPID is shown below: <?xml version="1.0"
encoding="UTF-8"?> <presence
xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:c="urn:ietf:params:xml:ns:pidf:cipid"
xmlns:r="urn:ietf:params:xml:ns:pidf:rpid"
xsi:schemaLocation="urn:ietf:params:xml:ns:pidf
pidf.xsd urn:ietf:params:xml:ns:pidf:data-model
data-model.xsd urn:ietf:params:xml:ns:pidf:cipid
cipid.xsd urn:ietf:params:xml:ns:pidf:rpid rpid.xsd"
entity="pres:someone at example.com"> <tuple id="bs35r9">
<status> <basic>open</basic> </status> <contact
priority="0.8">im:someone at mobile.example.net</contact>
<timestamp>2005-05-30T22:00:29Z</timestamp> </tuple>
<tuple id="bs78"> <status> <basic>closed</basic>
</status>
<r:relationship><r:assistant/></r:relationship>
<c:card>http://example.com/~assistant/card.vcd</c:card>
<c:homepage>http://example.com/~assistant</c:homepage>
<contact
priority="0.1">im:assistant at example.com</contact>
<timestamp>2005-05-30T22:00:29Z</timestamp> </tuple>
<dm:person id="p1">
<c:card>http://example.com/~someone/card.vcd</c:card>
<c:homepage>http://example.com/~someone</c:homepage>
<c:icon>http://example.com/~someone/icon.gif</c:icon>
<c:map>http://example.com/~someone/gml-map.xml</c:map>
<c:sound>http://example.com/~someone/whoosh.wav</c:sound>
<dm:timestamp>2005-05-30T22:02:44+05:00</dm:timestamp>
</dm:person> </presence>


Look for tags named status, contact priority,
timestamp under the <tuple>. It gives you information
about current basic status (open or closed), contact
priority etc. Hope this resolve your queries.


Cheers!
MANN


--- Szappanos Csaba <kumite84 at freemail.hu> wrote:

> Hi SIP forum members!
> 
> I've got another questions.
> 
> How to do Presence Aggregation? Last time I asked,
> how to handle more 
> than one devices with the same SIP URI. Now I know
> that, but now I'm 
> stuck again. I couldn't find any useful, for
> deciding, what to show to 
> the others, if more clients has the same SIP URI and
> everyone of them 
> has different presence status.
> Should I show the weakest presence status (like
> available) as the 
> aggregated presence, or should I show the strongest
> (like busy), or sort 
> by priority? Or for example create a management web
> page, where users 
> can change the priority or the policy? Or or or...
> And if I got an aggregated presence status, which
> device should I ring 
> in a click-to-call system? All availables, last
> changed to available, 
> most prior available, most prior weakes etc. Is
> there an RFC or a 
> standard for this?
> 
> I found 2 solutions for multiple devices with same
> SIP URIs:
> 1.) using SIP-Etag and SIP-If-Match headers in SIP
> messages
> 2.) using more tuple tags with different id, per
> PIDF XML document, like 
> shown in RFC3863's examples. And if using PIDF with
> multiple tuple tags, 
> can XLite decide the aggregated presence?
> I can make somekind of an aggregated presence using
> 1.) and/or 2.), but 
> I don't know will it be compatible with SIP clients.
> 
> Wow, thats a nice group of questions.
> Thank you for your help, last time everyone was
> great!;)
> 
> Best regards,
> Csaba Szappanos, Hungary
> _______________________________________________
> This is the SIP Forum discussion mailing list
> TO UNSUBSCRIBE, or edit your delivery options,
> please visit
> http://sipforum.org/mailman/listinfo/discussion
> Post to the list at discussion at sipforum.org
> 



      Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/



More information about the discussion mailing list