Hi<br><br>I use the &lt;timestamp/&gt; element (section 4.1.7 of RFC
3863) of &lt;tuple/&gt; to detect the most recent tuple and ignore the
outdated ones.<br><br>Problem, the &lt;timestamp/&gt; is an optional
element and your clients may not insert it when publishing. Do you
control the client source code that publishes the presence information
? If no we should find a way in openser presence module to add this
timestamp element for you. I add a quick look at PRESENCE and
PRESENCE_XML but I haven&#39;t find anything yet.<br>
<br>Regards,<br>Pascal<br><br><div class="gmail_quote">On Fri, May 9, 2008 at 12:02 PM, Dan-Cristian Bogos &lt;<a href="mailto:danb.lists@googlemail.com">danb.lists@googlemail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Guys,<br><div class="gmail_quote"><br>while dealing with presence/presence_xml modules, I came into one situation when one user crashes simultaneously and each time displaying different presence info (online, away, offline). Have noticed that the presence server is smart enough to inform all the other watchers about three different status information for the same user.<br>


<br>My question is, how can the watcher know the most recent status information. Have looked on both order of info in the tuple as well as on ids but did not find any logic. Can u please guide me about possibilities I have?<br>


<br>Thank you in advance,<br>DanB<br><br>PS: FYI, I am pasting such a tuple example.<br><br>&lt;tuple xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot; id=&quot;t9062&quot;&gt;<br>&nbsp; &nbsp; &lt;status xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot;&gt;<br>


&nbsp; &nbsp; &lt;basic&gt;closed&lt;/basic&gt;<br>&nbsp; &nbsp; &nbsp;&lt;/status&gt;<br>&lt;/tuple&gt;<br>&lt;dm:person xmlns:dm=&quot;urn:ietf:params:xml:ns:pidf:data-model&quot; <br>xmlns:rpid=&quot;urn:ietf:params:xml:ns:pidf:rpid&quot; <br>


id=&quot;p8838&quot;&gt;&lt;rpid:activities/&gt;&lt;/dm:person&gt;<br>&lt;tuple xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot; id=&quot;t5358&quot;&gt;<br>&lt;status&gt;&lt;basic&gt;open&lt;/basic&gt;&lt;/status&gt;&lt;contact&gt;<a href="mailto:sip%3Auser@domain.com" target="_blank">sip:user@domain.com</a>&lt;/contact&gt;&lt;note&gt;Online&lt;/note&gt;<br>


&lt;/tuple&gt;<br>&lt;dm:person xmlns:dm=&quot;urn:ietf:params:xml:ns:pidf:data-model&quot; <br>xmlns:rpid=&quot;urn:ietf:params:xml:ns:pidf:rpid&quot; <br>id=&quot;p4226&quot;&gt;&lt;rpid:activities&gt;&lt;rpid:away/&gt;&lt;/rpid:activities&gt;&lt;/dm:person&gt;<br>


&lt;tuple xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot; id=&quot;t7139&quot;&gt;<br>&lt;status&gt;&lt;basic&gt;open&lt;/basic&gt;&lt;/status&gt;&lt;contact&gt;<a href="mailto:sip%3Auser@domain.com" target="_blank">sip:user@domain.com</a>&lt;/contact&gt;&lt;note&gt;Away&lt;/note&gt;<br>


&lt;/tuple&gt;<br>&lt;dm:person xmlns:dm=&quot;urn:ietf:params:xml:ns:pidf:data-model&quot; <br>xmlns:rpid=&quot;urn:ietf:params:xml:ns:pidf:rpid&quot; <br>id=&quot;p4606&quot;&gt;&lt;rpid:activities/&gt;&lt;/dm:person&gt;<br>


&lt;tuple xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot; id=&quot;t5632&quot;&gt;<br>&lt;status&gt;&lt;basic&gt;open&lt;/basic&gt;&lt;/status&gt;&lt;contact&gt;<a href="mailto:sip%3Auser@domain.com" target="_blank">sip:user@domain.com</a>&lt;/contact&gt;&lt;note&gt;Online&lt;/note&gt;<br>


&lt;/tuple&gt;&lt;/presence&gt;<br>
</div><br>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org">Users@lists.openser.org</a><br>
<a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>