我如何将Lync 2010与一个进行DB查找并显示小弹窗及一些选项按钮的程序集成?
该程序已经与其他类型的电话系统配合运行,我需要为Lync提供连接器。
我不想在Lync中添加选项卡或其他UI。
我如何将Lync 2010与一个进行DB查找并显示小弹窗及一些选项按钮的程序集成?
该程序已经与其他类型的电话系统配合运行,我需要为Lync提供连接器。
我不想在Lync中添加选项卡或其他UI。
LyncClient
对象的引用。这可以通过调用静态方法LyncClient.GetClient()
来获取。ConversationManager.ConversationAdded
事件。ConversationManager
是您的LyncClient
实例上的属性。bool IsIncomingAVCall(Conversation conversation)
{
// Test to see if the call contains the AV modality
bool containsAVModality = conversation.Modalities.ContainsKey(ModalityTypes.AudioVideo);
if (containsAVModality)
{
// Get the state of the AV modality
var state = conversation.Modalities[ModalityTypes.AudioVideo].State;
// 'Notified' means the call is incoming
if (state == ModalityState.Notified) return true;
}
return false;
}
ConversationAdded
事件中,您应该注册Conversation.ParticipantAdded
事件,这样您就可以检查呼叫者是谁。EventArgs对象具有Participant
属性,该属性又具有Contact
属性。 Contact
属性具有许多属性,包括Uri
,如果需要,它应该为您提供电话号码。