1

I would like to know what is the easiest method to getting user presence for a website that exists on a server? We are using a web based application in dotnetCore

Is there any benefit to using ucma vs ucwa vs something else when getting user presence?

Currently I am using Lync SDK

lyncClient = LyncClient.GetClient()
Contact usercontact = lyncClient.ContactManager.GetContactByUri("sip:" + email);
var userPresence = GetStatus(Convert.ToInt32(usercontact.GetContactInformation(ContactInformationType.Availability)));

but once I deploy the app to the server I get an error since there is no lync client installed on the server.

Is there a better way to do this without installing anything on a server?

Amit Yadav
  • 4,422
  • 5
  • 34
  • 79
Terrance Jackson
  • 606
  • 3
  • 13
  • 40

1 Answers1

2

The Lync Client SDK is basically a SDK that remotely controls the currently running instance of the Skype Client. (as you have found out) Not really useful for applications running on servers.

The options you have are:

  • UCWA - this is a web based API where you can log in as a user and query other users presence states, this will work with on-prem and on-line versions of SfB
  • UCMA - this is a C# based API where you create SIP endpoints (you can think of them as instances of a Skype client) that you can use to query other users presence states in two main modes, this mainly only works with on-prem SfB setups. It can work with SfB using on-prem federation to the SfB on-line users, but this still requires a on-prem SfB setup.

UCMA modes:

  • Client Platform - this basically allows you to create a SIP endpoint for a Skype user (i.e. you need a skype user login details to use)
  • Server Platform - this allows you can setup a "trusted application" that can use "trusted application endpoints" to do things like query for other user presence states. This does not require any user login details but is way more involved onsite application setup and is best for "server" installs.

Which one you use depends a lot on the details of what you want to do.

Shane Powell
  • 13,698
  • 2
  • 49
  • 61
  • Thanks so if my website resides on an intranet server then does the server need any type of installation or is it plug and play? I deploy and it works the same as if im running on my local machine – Terrance Jackson Oct 30 '19 at 20:33
  • If the machine running it is on the internet (i.e. not part of the domain where SfB lives), then I think it's best to use UCWA. – Shane Powell Oct 30 '19 at 21:03
  • Ok yea its all the same domain since its intranet. – Terrance Jackson Oct 30 '19 at 21:09
  • Sorry I misread your comment. For UCWA / UCMA client platform, you can develop it on your machine and deploy it fine. For UCMA Server platform, you can't as the trusted application setup is tied to a specific machine (or set of machines) via certificates / DNS resolution. Altho you can develop a UCMA client platform and switch to server platform easy enough once you understand how it works. – Shane Powell Oct 30 '19 at 21:13