I have been asked to integrate a phone call note system into our new Lync based system. When a phone call is accepted the software should pop up a form to allow notes to be taken against the phone call.

I have found ways of loading the form when a phone call is received but not answered. Does anyone have any ideas how this can be achieved?

Currently using Lync 2010 SDK and C# Winforms.

有帮助吗?

解决方案

Subscribe to the StateChanged event of the AV modality:

 _conversation.Modalities[ModalityTypes.AudioVideo].ModalityStateChanged += AVModality_StateChanged;

I can't remember exactly what state corresponds to an accepted call (I'm on my phone) but it ought to be easy to add some console output and play with it...

Hope that helps.

其他提示

Conversation is added:

public event EventHandler<ConversationManagerEventArgs> ConversationAdded

Picking up a call:

e.Conversation.Modalities[ModalityTypes.AudioVideo].Accept();
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top