UCMA SDK. How to create a conference call with her on the phone
-
Thursday, August 27, 2009 11:45 AMGood dayI need to create a program that should create a conference and invite people from the list. calls should go to mobile phones. 'll show how to begin, an example, it is desirable step by step ...Through Communicator API and through CommunicationWorkflow not suitable. I studied UCMASampleCode - Escalate to Conference - but do not work very similar. I need to start the program to set up a conference, joined her and she sent me an invitation, or call a conference ...
All Replies
-
Sunday, August 30, 2009 11:32 PMYou can use the Built in Dial-In Conferencing in OCSR2 where you can schedule conference calls and people can dial in with a Pin number.
http://blogs.technet.com/brettjo/archive/2009/03/20/ocs-r2-tip-of-the-day-3-audio-dial-in-conferencing-part-1.aspx
If you can provide more details on what you need built I can give you an idea using UCMA 2.0 but your decription is unclear to me.
You have a call with one parter and you want an application to add more parties that are on cell numbers??
Keith Kabza
http://www.ocsmvp.com -
Tuesday, September 01, 2009 12:15 AMPlease take a look at the sample code in quickstarts sample, which are part of UCMA 2.0 sdk (\QuickStarts\BasicConferencing). This sample should demonstrate the conference scheduling, invitation and joing the existing conference for InstantMessaging, you can apply similar concept for audio conferencing.
- Proposed As Answer by adarsh khare [msft] Tuesday, September 01, 2009 12:15 AM
- Unproposed As Answer by FighterZP Monday, January 25, 2010 7:29 AM
-
Monday, January 25, 2010 7:29 AM
The examples specify the user names and passwords for creating conferences - both text and audio. I need to do a service that would create an audio conference and connect it to the participants, without specifying their passwords. It needs an example project in Visual Studio ...
I would be very grateful for the concrete example of the code ...- Proposed As Answer by KobyL Monday, February 08, 2010 4:21 AM
-
Tuesday, January 26, 2010 5:03 AMThe SDK sample is using a User Endpoint. You need to use an Application End point to do what you want. I have built somthing simaler for one of my clients.
You can have the Trusted Agent monitor a SQL server for Meeting times and participants.
If you wanted to call cell phones you would set the conference modality to Voice and specify a TelUri. In most cases yhou would have users Dial-In to a conference becuase if they dont answer the phone how to they join?
The sample has username and password because it acting like a user, An application End Pont it a trusted application that is provisioned on the OCS Server. -
Tuesday, February 02, 2010 11:07 AMApplication point I got to create. but it is now a conference and invite people there. First, even with Office Communicator. And then on mobile phones to make calls.In the SDK has found an example of how to create a conference for 2 participants. but I need much more.I need sample code how to make such a conference and connect the participants there.
-
Monday, February 08, 2010 4:24 AM
Sorry - please ignore that other propose...
If you have an app endpoint, then you can use the Conversation.Impersonate() method to act on behalf of any user.
From there, you should be able to use the samples that Adarsh proposed.
Hope that helps!
Koby- Proposed As Answer by KobyL Monday, February 08, 2010 4:24 AM
-
Saturday, April 14, 2012 8:49 AMRelevant. how to create a conference and connect it to all participants? Any sample code...
-
Monday, April 16, 2012 3:41 PM
There are many samples applications provided with the SDK that perform conferecne operations - http://msdn.microsoft.com/en-us/library/hh364906.aspx-- How To Ask a Question: http://support.microsoft.com/kb/555375 -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
- Proposed As Answer by Kai Strandskov [Msft]Owner Monday, April 23, 2012 10:08 PM
-
Thursday, April 26, 2012 8:32 AM
my problem still exists with ucma 3.0 :(
i want create conference using userEndpoint and invite 3 and more mobile-phone sessions
my code-logic is:
1. Create user endpoint using login/password user (user login testlync@company.com)
helper = new UCMASampleHelper(); userEndpoint = helper.CreateEstablishedUserEndpoint("My Test userEndpoint");
2. Create conversation
conversation = new Conversation(userEndpoint);
3. Establish AudioVideo call to my mobile, I get incoming call and begin "talk"
AvCall = new AudioVideoCall(conversation); AvCall.BeginEstablish("tel:+123456789012", null, EndCallerCallEstablish, AvCall); _waitForCallerCallEstablish.WaitOne();
4. Schedule Conference
ConferenceScheduleInformation conferenceScheduleInformation = new ConferenceScheduleInformation(); conferenceScheduleInformation.AccessLevel = ConferenceAccessLevel.Everyone; conferenceScheduleInformation.IsPasscodeOptional = false; conferenceScheduleInformation.Description = "Conference Description"; conferenceScheduleInformation.ExpiryTime = System.DateTime.Now.AddHours(1); ConferenceParticipantInformation participantA_Information = new ConferenceParticipantInformation("sip:testlync@company.com", ConferencingRole.Attendee); conferenceScheduleInformation.Participants.Add(participantA_Information); conferenceScheduleInformation.LobbyBypass = LobbyBypass.EnabledForGatewayParticipants; conferenceScheduleInformation.AutomaticLeaderAssignment = AutomaticLeaderAssignment.Everyone; ConferenceMcuInformation audioVideoMCU = new ConferenceMcuInformation(McuType.AudioVideo); conferenceScheduleInformation.Mcus.Add(audioVideoMCU); userEndpoint.ConferenceServices.BeginScheduleConference(conferenceScheduleInformation, EndScheduleConference, userEndpoint.ConferenceServices); _waitForConferenceScheduling.WaitOne();
5. In this point conversation state is "Established"
6. try join to conference current conversation
ConferenceJoinOptions conferenceJoinOptions = new ConferenceJoinOptions(); conferenceJoinOptions.JoinMode = JoinMode.Default; conferenceJoinOptions.LobbyTimeout = new TimeSpan(0, 5, 0); conversation.ConferenceSession.BeginJoin(_conferenceUri, conferenceJoinOptions, EndJoinConference, conversation.ConferenceSession); _waitForConferenceJoin.WaitOne(); Console.WriteLine(conversation.State.ToString());
7. In this point conversation state is "Conferencing"
8. Try invite to conference some other user
ConferenceInvitation invitation = new ConferenceInvitation(conversation); invitation.BeginDeliver( "tel:+987654321098",this.DeliverCompleted, invitation /*state*/);
And catch error: The conversation state is invalid. Expexted value is Conferenced but actual value is Conferencing
any solution please?
PS: when I remove step 3 I get another error in step 8
The conversation does not have any established call or media session to conference
-
Thursday, April 26, 2012 10:42 AM
What you need to do is to:
1) Obtain an endpoint (you can use server endpoint as well)
2) Schedule a conference
3) Join a conference and establish an AVCall with
4) Make a dialout to any number(s) you want
Here is a sample:
ConferenceScheduleInformation csi = new ConferenceScheduleInformation(); csi.AccessLevel = ConferenceAccessLevel.Everyone; csi.AutomaticLeaderAssignment = AutomaticLeaderAssignment.Everyone; csi.ExpiryTime = DateTime.Now.AddYears(5); csi.Description = "Test Conference"; csi.Subject = "Subject"; csi.Mcus.Add(new ConferenceMcuInformation(McuType.AudioVideo)); ar = currentEndpoint.ConferenceServices.BeginScheduleConference(csi, null, null); _conference = currentEndpoint.ConferenceServices.EndScheduleConference(ar); _conversation = new Conversation(currentEndpoint); _conversation.RemoteParticipantAttendanceChanged += new EventHandler<ParticipantAttendanceChangedEventArgs>(_conversation_RemoteParticipantAttendanceChanged); ConferenceJoinOptions cjo = new ConferenceJoinOptions(); cjo.JoinMode = JoinMode.TrustedParticipant; ar = _conversation.ConferenceSession.BeginJoin(_conference.ConferenceUri, cjo, null, null); _conversation.ConferenceSession.EndJoin(ar); _avcall = new AudioVideoCall(_conversation); ar = _avcall.BeginEstablish(null, null); _avcall.EndEstablish(ar); ar = _conversation.ConferenceSession.AudioVideoMcuSession.BeginDialOut("tel:12345678900", null, null); _conversation.ConferenceSession.AudioVideoMcuSession.EndDialOut(ar); ar = _conversation.ConferenceSession.AudioVideoMcuSession.BeginDialOut("tel:12345678901", null, null); _conversation.ConferenceSession.AudioVideoMcuSession.EndDialOut(ar); ar = _conversation.ConferenceSession.AudioVideoMcuSession.BeginDialOut("someone@example.com", null, null); _conversation.ConferenceSession.AudioVideoMcuSession.EndDialOut(ar);
- Proposed As Answer by Kai Strandskov [Msft]Owner Thursday, April 26, 2012 6:49 PM
- Marked As Answer by Kai Strandskov [Msft]Owner Monday, April 30, 2012 11:37 PM
-
Thursday, April 26, 2012 11:59 AM
Thanks! Its good example, but I got new error:
ar = _conversation.ConferenceSession.BeginJoin(_conference.ConferenceUri, cjo, null, null);
This operation can only be performed when the CollaborationPlatform object is created with a trusted service gruu
Is this example use applicationEndpoint for success run?
I used userEndpoint...
For run example code I used follow variables:
AudioVideoCall _avcall; Conversation _conversation; IAsyncResult ar; Conference _conference;
and
void _conversation_RemoteParticipantAttendanceChanged(object sender, ParticipantAttendanceChangedEventArgs e) { }
- Edited by FighterZP Thursday, April 26, 2012 11:59 AM
-
Thursday, April 26, 2012 12:02 PM
I am always using ApplicationEndpoint so it is poissible that this code won't work with the UserEndpoint.
Try registering an ApplicationEndpoint through CmdLets - I see no reason sticking with UserEndpoint on server.
-
Thursday, April 26, 2012 2:30 PM
To use a user endpoint with this code, remove this line -cjo.JoinMode = JoinMode.TrustedParticipant;
That JoinMode is only available to application endpoints.-- How To Ask a Question: http://support.microsoft.com/kb/555375 -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
- Proposed As Answer by Kai Strandskov [Msft]Owner Thursday, April 26, 2012 6:49 PM
- Marked As Answer by Kai Strandskov [Msft]Owner Monday, April 30, 2012 11:37 PM
-
Friday, May 04, 2012 1:37 PM
Thanks! Its works for me! :)))
I Sucessfull create conference and join 3 mobile telephone together! :)
Its Cool !!! :))

