简体   繁体   中英

Lync 2010 On Answer event?

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.

Conversation is added:

public event EventHandler<ConversationManagerEventArgs> ConversationAdded

Picking up a call:

e.Conversation.Modalities[ModalityTypes.AudioVideo].Accept();

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM