none
Can`t initiate a "group conversation" using Lync SDK

    Question

  • Hi,
    Does anyone know how to start a "group conversation" using just Lync SDK?

    We are building an application with Lync SDK,
    that uses Lync communication features.

    We tried using the  ConversationManager.AddConversation method, which proved
    to be unsuccessful.

    Any info or reference to point me in the right direction will be greatly appreciated.

    Many thanks in advance for your support.

     


    Friday, June 03, 2011 3:52 AM

All replies

  •  lyncClient = LyncClient.GetClient();
                        lyncContactManager = lyncClient.ContactManager;
                        Contact contact = null;
                        
                        contact = lyncContactManager.GetContactByUri(conferenceCallDialer.PhoneNumber);
                        List<string> inviteeList = new List<string>();
                        inviteeList.Add(contact.Uri);
    //Note: You can add multiple contact here
                        Dictionary<AutomationModalitySettings, object> _ModalitySettings = new Dictionary<AutomationModalitySettings, object>();
                        _ModalitySettings.Add(AutomationModalitySettings.Subject, "Lync Client");
                        AutomationModalities _ChosenMode = AutomationModalities.Audio;
                      
    // Start the conversation.
                        IAsyncResult ar = LyncClient.GetAutomation().BeginStartConversation(
                            _ChosenMode
                            , inviteeList
                            , _ModalitySettings
                            , null
                            , null);
                        LyncClient.GetAutomation().EndStartConversation(ar);
    Monday, June 06, 2011 5:07 AM
  • Thanks for the post.
    Using your sample code, I could start a "group conversation" by adding multiple contacts.

    However, what I want to do is a bit different, which is to bring up a group conversation
    with just 1 participant, just as "Meet Now" feature of Lync 2010 menu does.

    Are there any ways I can do this?

    Many thanks in advance.

     

    Tuesday, June 07, 2011 4:17 AM
  • Do you find a solution?

     

    Thanks

    Luca

    Friday, June 17, 2011 9:41 AM
  •  lyncClient = LyncClient.GetClient();
                        lyncContactManager = lyncClient.ContactManager;
                        Contact contact = null;
                        
                        contact = lyncContactManager.GetContactByUri(conferenceCallDialer.PhoneNumber);
                        List<string> inviteeList = new List<string>();
                        inviteeList.Add(contact.Uri);
    //Note: You can add multiple contact here
                        Dictionary<AutomationModalitySettings, object> _ModalitySettings = new Dictionary<AutomationModalitySettings, object>();
                        _ModalitySettings.Add(AutomationModalitySettings.Subject, "Lync Client");
                        AutomationModalities _ChosenMode = AutomationModalities.Audio;
                      
    // Start the conversation.
                        IAsyncResult ar = LyncClient.GetAutomation().BeginStartConversation(
                            _ChosenMode
                            , inviteeList
                            , _ModalitySettings
                            , null
                            , null);
                        LyncClient.GetAutomation().EndStartConversation(ar);

    contact = lyncContactManager.GetContactByUri(conferenceCallDialer.PhoneNumber);=》conferenceCallDialer is what?
    Friday, June 17, 2011 12:00 PM
  • conferenceCallDialer.PhoneNumber is any number that you want to add in your conversation
    Tuesday, June 21, 2011 6:04 PM
  • But in this way you can create a conference only if the partecipants are more then 2. I need the same function that is in the client lync of the meet now.

     

    Luca

    Wednesday, June 22, 2011 7:51 PM
  • LyncClient instance is not trusted?

    LyncClient client=new LyncClient.GetClient();

    and throw these: client is not trusted.

    How can you to resolve it? any help from you will be greatly appreciated!

    Tuesday, June 28, 2011 6:14 AM
  • Pei-Rong,

    Is your code running in a SL browser application or as a SL Conversation Window Extension application?  If so, then be sure to add the domain that hosts your SL browser application to the IE trusted sites list.

    John Austin

    Monday, July 18, 2011 6:02 PM
  • The best solution I've come up with is to list two invalid recipients sip: addresses as participants.  As soon as Lync discovers that they are invalid they will be dropped from the conference, but the conference will remain up.

    Two participants seems to be the minimum number supported by the SDK to actually create a conference without popping up either a dialog requesting participants, or creating a call instead of a conference.
    Tuesday, October 23, 2012 7:08 AM