As described on this page:
http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/11_5/CJAB_BK_C9858CC7_00_cisco-jabber-features-guide/CJAB_BK_C9858CC7_00_cisco-jabber-features-guide_chapter_010.html
If you subscribe to the presence of a person who is not on your contact list (also called temporary presence subscription), the subscription expires after 68 minutes. After the subscription expires, you must re-subscribe to the person’s presence in order to continue to receive presence updates.
I'm confused about two things:
1. How can I find out if a user is in my contact list from javascript if I have his/her IM address?
2. How can I be notified when a subscription has expired?
It seems unclear how to accomplish these things by reading the documentation, what am I missing?