Domanda

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.

È stato utile?

Soluzione

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.

Altri suggerimenti

Conversation is added:

public event EventHandler<ConversationManagerEventArgs> ConversationAdded

Picking up a call:

e.Conversation.Modalities[ModalityTypes.AudioVideo].Accept();
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top