我正在使用適用於Skype for Business的Microsoft UCMA 4.0 API快速入門應用程序AudioVideo Recorder。當我從組織內部呼叫用戶時,我可以聯繫和錄製語音。 我們已與外部Skype用戶聯合。當我嘗試調用外部SIP name.surname(gmail.com)@msn.com我越來越exeption:用於skype的Microsoft UCMA 4.0 API快速入門應用程序
An exception of type 'Microsoft.Rtc.Signaling.RegisterException' occurred in Microsoft.Rtc.Collaboration.dll but was not handled in user code
Additional information: The endpoint was unable to register. See the ErrorCode for specific reason.
下面是該過程:
private void EndEndpointEstablish(IAsyncResult ar)
{
LocalEndpoint currentEndpoint = ar.AsyncState as LocalEndpoint;
try
{
currentEndpoint.EndEstablish(ar);
}
catch (AuthenticationException authEx)
{
// AuthenticationException will be thrown when the credentials are invalid.
Console.WriteLine(authEx.Message);
throw;
}
catch (ConnectionFailureException connFailEx)
{
// ConnectionFailureException will be thrown when the endpoint cannot connect to the server, or the credentials are invalid.
Console.WriteLine(connFailEx.Message);
throw;
}
catch (InvalidOperationException iOpEx)
{
// InvalidOperationException will be thrown when the endpoint is not in a valid state to connect. To connect, the platform must be started and the Endpoint Idle.
Console.WriteLine(iOpEx.Message);
throw;
}
finally
{
// Again, just for sync. reasons.
_endpointInitCompletedEvent.Set();
}
}
我們如何才能達到外部用戶?
幾小時後第二次嘗試呼叫內部用戶,它不工作。現在得到消息:
An exception of type 'Microsoft.Rtc.Signaling.AuthenticationException' occurred in RecorderSample.exe but was not handled in user code
Additional information: Not authorized to perform the requested operation, request is refused
爲什麼我沒有被突然授權?