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.
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?
Thank you in advance,
DanB
PS: FYI, I am pasting such a tuple example.
<tuple xmlns="urn:ietf:params:xml:ns:pidf" id="t9062">
<status xmlns="urn:ietf:params:xml:ns:pidf">
<basic>closed</basic>
</status>
</tuple>
<dm:person xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
id="p8838"><rpid:activities/></dm:person>
<tuple xmlns="urn:ietf:params:xml:ns:pidf" id="t5358">
<status><basic>open</basic></status><contact>
sip:user@domain.com</contact><note>Online</note>
</tuple>
<dm:person xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
id="p4226"><rpid:activities><rpid:away/></rpid:activities></dm:person>
<tuple xmlns="urn:ietf:params:xml:ns:pidf" id="t7139">
<status><basic>open</basic></status><contact>
sip:user@domain.com</contact><note>Away</note>
</tuple>
<dm:person xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
id="p4606"><rpid:activities/></dm:person>
<tuple xmlns="urn:ietf:params:xml:ns:pidf" id="t5632">
<status><basic>open</basic></status><contact>
sip:user@domain.com</contact><note>Online</note>
</tuple></presence>