Quantcast
Channel: Lync 2010 and OCS - Lync Clients and Devices forum
Viewing all articles
Browse latest Browse all 3260

Alternative for GetAutomation() in the LyncClient

$
0
0

Hi,

We are developing an Lync client application, in this we need to dial a number to outside number the below code works fine when we are not using UI Suppression

LyncClient lyncClient = LyncClient.GetClient();
 var automation = LyncClient.GetAutomation();
 var conversationModes = AutomationModalities.Audio;
 var conversationSettings = new Dictionary<AutomationModalitySettings, object>();
 List<string> participants = new List<string>();
 var contact = lyncClient.ContactManager.GetContactByUri("tel:" + _TelephoneNumber);
 participants.Add(contact.Uri);
 automation.BeginStartConversation(AutomationModalities.Audio, participants, null, null, automation);

The same code while we are running the application in UI Suppression mode LyncClient.GetAutomation() throwing an error "Exception from HRESULT: 0x80C8000B". In forums found that GetAutomation() will not work in UISuppression mode. Is there any alternative way to achieve this functionality if so could anyone provide us sample code.

Thanks and Regards,

Dinesh Haraveer


Viewing all articles
Browse latest Browse all 3260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>