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><tuple xmlns="urn:ietf:params:xml:ns:pidf" id="t9062"><br> <status xmlns="urn:ietf:params:xml:ns:pidf"><br>
<basic>closed</basic><br> </status><br></tuple><br><dm:person xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" <br>xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" <br>
id="p8838"><rpid:activities/></dm:person><br><tuple xmlns="urn:ietf:params:xml:ns:pidf" id="t5358"><br><status><basic>open</basic></status><contact><a href="mailto:sip%3Auser@domain.com" target="_blank">sip:user@domain.com</a></contact><note>Online</note><br>
</tuple><br><dm:person xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" <br>xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" <br>id="p4226"><rpid:activities><rpid:away/></rpid:activities></dm:person><br>
<tuple xmlns="urn:ietf:params:xml:ns:pidf" id="t7139"><br><status><basic>open</basic></status><contact><a href="mailto:sip%3Auser@domain.com" target="_blank">sip:user@domain.com</a></contact><note>Away</note><br>
</tuple><br><dm:person xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" <br>xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" <br>id="p4606"><rpid:activities/></dm:person><br>
<tuple xmlns="urn:ietf:params:xml:ns:pidf" id="t5632"><br><status><basic>open</basic></status><contact><a href="mailto:sip%3Auser@domain.com" target="_blank">sip:user@domain.com</a></contact><note>Online</note><br>
</tuple></presence><br>
</div><br>