Hello Anca,<br><br>thank you for the clearance. All bright now.<br><br>It looks like there was a false alarm from the developer I work with since the order of the tuple was first thing we checked, but since the xml was processed as DOM he did not receive the info in order. <br>
Now he confirmed me that the order is properly received in the UA.<br><br>Wish you a lovely afternoon.<br><br>DanB<br><br><div class="gmail_quote">On Mon, May 12, 2008 at 12:40 PM, Anca Vamanu &lt;<a href="mailto:anca@voice-system.ro">anca@voice-system.ro</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;">Hi Dan,<br>
<br>
In fact, the presence modules orders the tuples in the Notify body after the time the Publish was received. So, you will always have the most recent information first.<br>
<br>
Regards,<br>
Anca<br>
<br>
Dan-Cristian Bogos wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="Ih2E3d">
Hi Pascal,<br>
<br>
many thanks for the tip. Looks like a nice approach on a first glance.<br>
<br>
I use sip-communicator and am in contact with the developers. Will try the approach for the client then, but the idea with the timestamp on the server side could help much more people hitting the same issues and not able to touch their clients.<br>

<br>
Wish you a nice weekend!<br>
<br>
DanB<br>
<br></div><div class="Ih2E3d">
On Sat, May 10, 2008 at 10:47 AM, Pascal Maugeri &lt;<a href="mailto:pascal.maugeri@gmail.com" target="_blank">pascal.maugeri@gmail.com</a> &lt;mailto:<a href="mailto:pascal.maugeri@gmail.com" target="_blank">pascal.maugeri@gmail.com</a>&gt;&gt; wrote:<br>

<br>
 &nbsp; &nbsp;Hi<br>
<br>
 &nbsp; &nbsp;I use the &lt;timestamp/&gt; element (section 4.1.7 of RFC 3863) of<br>
 &nbsp; &nbsp;&lt;tuple/&gt; to detect the most recent tuple and ignore the outdated ones.<br>
<br>
 &nbsp; &nbsp;Problem, the &lt;timestamp/&gt; is an optional element and your clients<br>
 &nbsp; &nbsp;may not insert it when publishing. Do you control the client<br>
 &nbsp; &nbsp;source code that publishes the presence information ? If no we<br>
 &nbsp; &nbsp;should find a way in openser presence module to add this timestamp<br>
 &nbsp; &nbsp;element for you. I add a quick look at PRESENCE and PRESENCE_XML<br>
 &nbsp; &nbsp;but I haven&#39;t find anything yet.<br>
<br>
 &nbsp; &nbsp;Regards,<br>
 &nbsp; &nbsp;Pascal<br>
<br>
 &nbsp; &nbsp;On Fri, May 9, 2008 at 12:02 PM, Dan-Cristian Bogos<br></div><div><div></div><div class="Wj3C7c">
 &nbsp; &nbsp;&lt;<a href="mailto:danb.lists@googlemail.com" target="_blank">danb.lists@googlemail.com</a> &lt;mailto:<a href="mailto:danb.lists@googlemail.com" target="_blank">danb.lists@googlemail.com</a>&gt;&gt; wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Guys,<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;while dealing with presence/presence_xml modules, I came into<br>
 &nbsp; &nbsp; &nbsp; &nbsp;one situation when one user crashes simultaneously and each<br>
 &nbsp; &nbsp; &nbsp; &nbsp;time displaying different presence info (online, away,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;offline). Have noticed that the presence server is smart<br>
 &nbsp; &nbsp; &nbsp; &nbsp;enough to inform all the other watchers about three different<br>
 &nbsp; &nbsp; &nbsp; &nbsp;status information for the same user.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;My question is, how can the watcher know the most recent<br>
 &nbsp; &nbsp; &nbsp; &nbsp;status information. Have looked on both order of info in the<br>
 &nbsp; &nbsp; &nbsp; &nbsp;tuple as well as on ids but did not find any logic. Can u<br>
 &nbsp; &nbsp; &nbsp; &nbsp;please guide me about possibilities I have?<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Thank you in advance,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;DanB<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;PS: FYI, I am pasting such a tuple example.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;tuple xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot; id=&quot;t9062&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;status xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;basic&gt;closed&lt;/basic&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/status&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tuple&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;dm:person xmlns:dm=&quot;urn:ietf:params:xml:ns:pidf:data-model&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;xmlns:rpid=&quot;urn:ietf:params:xml:ns:pidf:rpid&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;id=&quot;p8838&quot;&gt;&lt;rpid:activities/&gt;&lt;/dm:person&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;tuple xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot; id=&quot;t5358&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&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><br></div></div>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:sip%253Auser@domain.com" target="_blank">sip%3Auser@domain.com</a>&gt;&lt;/contact&gt;&lt;note&gt;Online&lt;/note&gt;<div class="Ih2E3d"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tuple&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;dm:person xmlns:dm=&quot;urn:ietf:params:xml:ns:pidf:data-model&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;xmlns:rpid=&quot;urn:ietf:params:xml:ns:pidf:rpid&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;id=&quot;p4226&quot;&gt;&lt;rpid:activities&gt;&lt;rpid:away/&gt;&lt;/rpid:activities&gt;&lt;/dm:person&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;tuple xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot; id=&quot;t7139&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&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><br></div>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:sip%253Auser@domain.com" target="_blank">sip%3Auser@domain.com</a>&gt;&lt;/contact&gt;&lt;note&gt;Away&lt;/note&gt;<div class="Ih2E3d"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tuple&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;dm:person xmlns:dm=&quot;urn:ietf:params:xml:ns:pidf:data-model&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;xmlns:rpid=&quot;urn:ietf:params:xml:ns:pidf:rpid&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;id=&quot;p4606&quot;&gt;&lt;rpid:activities/&gt;&lt;/dm:person&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;tuple xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot; id=&quot;t5632&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&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><br></div>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:sip%253Auser@domain.com" target="_blank">sip%3Auser@domain.com</a>&gt;&lt;/contact&gt;&lt;note&gt;Online&lt;/note&gt;<div class="Ih2E3d"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tuple&gt;&lt;/presence&gt;<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;_______________________________________________<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Users mailing list<br></div>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a> &lt;mailto:<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a>&gt;<div class="Ih2E3d"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<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>
<br>
<br></div>
------------------------------------------------------------------------<div class="Ih2E3d"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org" target="_blank">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>
 &nbsp;<br>
</div></blockquote>
<br>
</blockquote></div><br>