0

The Lync 2013 SDK publishes a ContactAvailability property for contacts, with values as described here:

https://msdn.microsoft.com/en-us/library/microsoft.lync.controls.contactavailability_di_3_uc_ocs14mreflyncwpf.aspx

Each of the values in this enumeration is an indication of the color and pattern shown beside the contact in Lync 2013.

It seems to me that the Skype for Business 2015 client has added a new color, coinciding with an Outlook calendar entry that is tagged with "Out of Office", as seen here:

enter image description here

The Lync 2013 Client SDK simply returns the Free enumeration value (same as green) for this new(??) purple status indicator.

My question is, does anyone know of a way to detect when a contact's status is such that SfB would display that contact's icon with a purple "Out of Office" status indicator? I haven't been able to find any documentation on this.

Thanks.

danBhentschel
  • 863
  • 7
  • 24

1 Answers1

1

I'm not sure from a Lync Client SDK point of view, as I haven't done much with presence in the Lync Client SDK.

In a UMCA application where you have subscribed to presence changes you get a RemotePresentityNotification object you can get the AggregatedPresenceState.Activity.ActivityToken which will be set to the string "out-of-office" as defined in the MS-Pres spec.

I assume there will be some way to get the ActivityToken from the Lync Client SDK. My guess would be asking for ContactInformationType.ActivityId or Activity from the lync user presence.

Shane Powell
  • 13,698
  • 2
  • 49
  • 61
  • Thanks. This was helpful in that I was not aware of the MS-Pres spec. However, neither the `Activity` nor the `ActivityId` returns the `out-of-office` value in this situation. `Activity` is "Available", and `ActivityId` is "Free". – danBhentschel Nov 16 '15 at 14:36
  • Actually, I need to amend this. Your answer has renewed my interest in the question. While testing, I noticed at one point that my Skype for Business status in the client actually displayed "Out of Office". When I moved the mouse, though, it changed back to "Available". It turns out that SfB doesn't consider you to be "Out of Office" if you are using your PC. However, if the PC is idle for 10 minutes (default value), and your Outlook calendar shows you as "Out of Office", then `ContactInformationType.ActivityId` will, in fact, return the value `out-of-office`, as you say. – danBhentschel Nov 16 '15 at 16:08