簡體   English   中英

使用Skype for Business發起呼叫的腳本

[英]Script that initiate a call using Skype For Business

我正在嘗試創建一個簡單的腳本,該腳本可以在Skype For Businness上發起對聯系人的呼叫。

實際上,我正在嘗試使用C#中Lync 2013 SDK來執行此操作,但它似乎不起作用。 函數LyncClient.ConversationManager.AddConversation()只是不想工作,它會啟動一個愚蠢的異常: Microsoft.Lync.Model.LyncClientException 當然,Microsoft文檔沒有引用此異常。

我已經過去了將近兩天,如果有人有解決方案,我將非常感激!

首先,請確保您具有LyncClient.GetClient()中的客戶端。 然后檢查客戶端是否已登錄。例如, client.State == ClientState.SignedIn。

要進行新呼叫,您需要從Lync客戶端獲取自動化對象。

automation = LyncClient.GetAutomation()

然后,您可以使用BeginStartConversation / EndStartConversation來開始新的調用。 例如

var participantUri = new List<string> {"sip:{username}@{lyncdomain}"};
automation.EndStartConversation(automation.BeginStartConversation(AutomationModalities.Audio, participantUri, null, null, null))

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM