tags:

views:

33

answers:

1

Hi,

I need to know how to schedule a conference which is similar to a Live meeting created by Live meeting add-in on the office communication server. I can obtain the sip by following the uccapi. But cant I connect to the meeting with that sip. I thought the way I configured the UccConferenceInformation is wrong. Please give any idea.

   private UccConferenceInformation CreateConferenceInfo()
    {
        UccConferenceInformation ci = this.myConfManagerSession.CreateConferenceInformation();

        IUccPropertyCollection cPC = ci.Properties;

        cPC.AddProperty(
            (int)UCC_CONFERENCE_INFORMATION_PROPERTY.UCCCIP_ADMISSION_TYPE,
                UCC_CONFERENCE_ADMISSION_TYPE.UCCCAT_ANONYMOUS);

        cPC.AddProperty(
           (int)UCC_CONFERENCE_INFORMATION_PROPERTY.UCCCIP_SUBJECT,
           "Conference Subject");

        DateTime dt;

        int mins = 59;
        TimeSpan ts = new TimeSpan(1, 0, mins, 0);
        dt = DateTime.UtcNow;
        dt.Add(ts);

        cPC.AddProperty(
          (int)UCC_CONFERENCE_INFORMATION_PROPERTY.UCCCIP_EXPIRY_TIME,
          dt);

        IUccPropertyCollection pMCU = new UccPropertyCollectionClass();
        IUccPropertyCollection _MCUCollection = new UccPropertyCollectionClass();


        pMCU.AddProperty(
                  (int)UCC_CONFERENCE_ENTITY_SETTING_PROPERTY.UCCCESP_TYPE,
                  (int)UCC_CONFERENCE_ENTITY_TYPE.UCCCET_CONTROL);
        _MCUCollection.AddProperty((int)UCC_CONFERENCE_ENTITY_TYPE.UCCCET_CONTROL, pMCU);

        ci.ConferenceKey = "12345678";   


        if (_MCUCollection.Count > 0)
        {
            cPC.AddProperty((int)Microsoft.Office.Interop.UccApi.UCC_CONFERENCE_INFORMATION_PROPERTY.UCCCIP_MCUS, _MCUCollection);
        }

        return ci;
    }

Thanks in advance

A: 

It was simple and silly. Althogh the mistake was there in microsoft`s sample code, I should have check it closely.

dt = dt.Add(ts);

Keep remember assign DateTime instance back if you add a TimeSpan to it.

Again keep remember assign DateTime instance back if you add a TimeSpan to it.

Once again keep remember assign DateTime instance back if you add a TimeSpan to it.

This is for me and anybody who don't notice this silly mistake at first look.

It is a lot easy to use UCMA SDK for OCS programming.

Kavinda Gayashan