2016-05-17 39 views
0

我正在使用適用於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 

爲什麼我沒有被突然授權?

回答

0

我想你會感到困惑。

UCMA應用程序創建和服務SIP端點。一個SIP端點就像「手機」中,它可以發出和接收音頻/視頻通話,即時消息等

有兩種類型的端點的UCMA應用程序可以創建:

這兩種類型的端點都是Lync中預定義的用戶類型。

SIP端點需要註冊SIP註冊器(Lync Front End),就像將電話插入牆上一樣。據說我在這裏,如果你有任何的呼叫'X'發送他們的方式。

因此,您所做的就是嘗試使用本地Lync前端「註冊」sip端點,即「name.surname(gmail.com)@msn.com」。這是非法的,這就是爲什麼你會收到「Microsoft.Rtc.Signaling.RegisterException」錯誤。

您可能想要做的是註冊一個「本地」Lync用戶,然後「撥打」聯合帳戶或讓聯邦帳戶撥打您。

相關問題