Hi,
Help me ASAP.
I am trying to create a conference using Application endpoint(UCMA 4.0 ) in WCF Service.
My code is as follows:
ConferenceScheduleInformation conferenceScheduleInformation = new ConferenceScheduleInformation();
conferenceScheduleInformation.Description = "Conference Description";
conferenceScheduleInformation.ExpiryTime = expiryTime;
ConferenceParticipantInformation participantA_Information = new ConferenceParticipantInformation(_applicationEndpoint.OwnerUri, ConferencingRole.Leader);
conferenceScheduleInformation.PhoneAccessEnabled = true;
conferenceScheduleInformation.Participants.Add(participantA_Information);
conferenceScheduleInformation.LobbyBypass = LobbyBypass.EnabledForGatewayParticipants;
ConferenceMcuInformation audioVideoMCU = new ConferenceMcuInformation(McuType.AudioVideo);
conferenceScheduleInformation.Mcus.Add(audioVideoMCU);
try
{
_applicationEndpoint.ConferenceServices.BeginScheduleConference(conferenceScheduleInformation,
ar =>
{
try
{
Conference newConference = _applicationEndpoint.ConferenceServices.EndScheduleConference(ar);
//DoSomethingWithTheConference(newConference);
}
catch (RealTimeException ex)
{
Console.WriteLine(ex);
}
},
null);
}
catch (InvalidOperationException ex)
{
Console.WriteLine(ex);
}
Getting an exception:
applicationEndpoint.ConferenceServices.EndScheduleConference(ar) line.
Exception details is as follows:
An unhandled exception of type 'Microsoft.Rtc.Signaling.OperationFailureException' occurred in Microsoft.Rtc.Collaboration.dll
Additional information: The GetInbandDataAsyncResult operation has failed with message:
"A 405 (Unsupported out of dialog request) response was received from the network and the operation failed.
See the exception details for more information.".
See the InnerException and FailureReason properties as well as the logs for additional information.
Web.Config:
<?xml version="1.0"?><configuration>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" maxRequestLength ="2147483647" executionTimeout="999999"/>
</system.web>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IService1" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:50:00" sendTimeout="00:50:00"
maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https"/>
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>
Thanks in Advance.
SVetrivel