0

I'm trying to create a simple script that can initiate a call to a contact on Skype For Businness.

Actually, i'm trying to do it using the Lync 2013 SDK in C# but it don't seems to work. The function LyncClient.ConversationManager.AddConversation() just don't want to work and it launch a stupid exception : Microsoft.Lync.Model.LyncClientException. Of course, this exception isn't referenced on the microsoft doc...

There is almost two days i've past on it, if someone have a solution i'll be thanksfull !

Widea
  • 129
  • 2
  • 14
  • I worked on severals solutions. I find out something : However is the way i try to obtain it, my **Conversation** object is always null... – Widea May 31 '16 at 11:41

1 Answers1

0

First off, make sure you have a client from the LyncClient.GetClient(). Then check that the client is signed in. e.g. client.State == ClientState.SignedIn.

To make a new call you need to get the automation object from the Lync client.

automation = LyncClient.GetAutomation()

Then you use the BeginStartConversation / EndStartConversation to start the new call. e.g.

var participantUri = new List<string> {"sip:{username}@{lyncdomain}"};
automation.EndStartConversation(automation.BeginStartConversation(AutomationModalities.Audio, participantUri, null, null, null))
Shane Powell
  • 13,698
  • 2
  • 49
  • 61