【问题标题】:Microsoft UCMA 4.0 API QuickStart App for skypeSkype 的 Microsoft UCMA 4.0 API 快速入门应用程序
【发布时间】:2016-05-17 14:43:41
【问题描述】:

我正在使用适用于 Skype for Business 的 Microsoft UCMA 4.0 API QuickStart App AudioVideo Recorder。当我从组织内部呼叫用户时,我可以联系并录制语音。 我们与外部 Skype 用户联合。当我尝试调用外部 sip name.surname(gmail.com)@msn.com 时,我得到了例外:

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

为什么我突然不被授权了?

【问题讨论】:

    标签: visual-studio skype-for-business ucma


    【解决方案1】:

    我觉得你有点糊涂了。

    UCMA 应用程序创建和服务 sip 端点。 sip 端点就像一个“电话”,它可以拨打和接收音频/视频通话、即时消息等。

    UCMA 应用程序可以创建两种类型的端点:

    这两种类型的终结点都是 Lync 中预定义的用户类型。

    Sip 端点需要向 sip 注册器(Lync 前端)注册,这就像将电话插入墙上一样。上面写着我在这里,如果你接到任何要“X”的电话,请按我的方式发送。

    因此,您所做的是尝试使用本地 Lync 前端“注册”一个 sip 端点,即“name.surname(gmail.com)@msn.com”。这是非法的,这就是您收到“Microsoft.Rtc.Signaling.RegisterException”错误的原因。

    您可能想要做的是注册“本地”Lync 用户,然后“拨打”联合帐户或让联合帐户拨打您的电话。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-01-28
      • 2014-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多