首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法通过统一通信API连接到Office Communication Server

无法通过统一通信API连接到Office Communication Server
EN

Stack Overflow用户
提问于 2009-12-22 02:29:18
回答 2查看 3.2K关注 0票数 1

我正在尝试使用统一通信托管API连接到Office Communication Server。我已经尝试了我的用户和为OCS启用的新用户。这两个帐户都可以成功登录到Office Communicator客户端,但使用API失败。在创建网络凭据时,如果我以domain\username形式传入用户名,则会收到此错误:

代码语言:javascript
复制
SupportedAuthenticationProtocols=Ntlm, Kerberos
Realm=SIP Communications Service
FailureReason=InvalidCredentials
ErrorCode=-2146893044
Microsoft.Rtc.Signaling.AuthenticationException: The log on was denied. Check that the proper credentials are being used and the account is active. ---> Microsoft.Rtc.Internal.Sip.AuthException: NegotiateSecurityAssociation failed, error: - 2146893044

如果我在用户名中省略了域,则会出现以下错误:

代码语言:javascript
复制
ResponseCode=404 ResponseText=Not Found
DiagnosticInformation=ErrorCode=4005,Source=OCS.mydomain.com,Reason=Destination URI either not enabled for SIP or does not exist
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-01-12 06:12:57

事实证明这是我的疏忽。我们的AD域和通信器域是不同的,我认为它们是相同的。

我使用的是sip:username@domain.com,网络凭证是domain\username,sip地址应该是sip:username@companyname.com。

票数 2
EN

Stack Overflow用户

发布于 2010-01-03 12:28:35

需要注意的两件事:

  1. 用户名不应包含域。您应该使用NetworkCredential的单独的域属性。
  2. 您还需要传入用户URI,例如:

代码语言:javascript
复制
//Initialize and register the endpoint, using the credentials of the user the application will be acting as.
        UserEndpointSettings userEndpointSettings = new UserEndpointSettings(_userURI, _userServer);
        userEndpointSettings.Credential = _credential;
        _userEndpoint = new UserEndpoint(_collabPlatform, userEndpointSettings);
        _userEndpoint.BeginEstablish(EndEndpointEstablish, _userEndpoint);

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1941786

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档