private void OutgoingConversationAdded(object sender, mslm.Conversation.ConversationManagerEventArgs e) { this.UpdateStatusFile(0, "n/m", "OutgoingConversationAdded", ""); //Conversation originated with remote SIP user if (e.Conversation.Modalities[mslm.Conversation.ModalityTypes.AudioVideo].State != mslm.Conversation.ModalityState.Notified) { if (e.Conversation.CanInvoke(mslm.Conversation.ConversationAction.AddParticipant)) { e.Conversation.ParticipantAdded += OutgoingConversation_ParticipantAdded; //e.Conversation.AddParticipant(_LyncClient.ContactManager.GetContactByUri("*****@*****.**")); } } }
private void IncomingConversationAdded(object sender, mslm.Conversation.ConversationManagerEventArgs e) { Console.WriteLine("\n\tIncomingConversationAdded..."); /* clear event bag */ this.eventBag.Clear(); /* set user name & user sip */ this.SetUserNameUserSIP(e.Conversation); this.UpdateStatusFile(0, "n/m", "IncomingConversationAdded", "n/m"); /* monitor conv prop changes */ e.Conversation.PropertyChanged += this.Conversation_PropertyChanged; this.ProcessConversation(e.Conversation); }