我正在尝试使用统一通信托管API连接到Office Communication Server。我已经尝试了我的用户和为OCS启用的新用户。这两个帐户都可以成功登录到Office Communicator客户端,但使用API失败。在创建网络凭据时,如果我以domain\username形式传入用户名,则会收到此错误:
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如果我在用户名中省略了域,则会出现以下错误:
ResponseCode=404 ResponseText=Not Found
DiagnosticInformation=ErrorCode=4005,Source=OCS.mydomain.com,Reason=Destination URI either not enabled for SIP or does not exist发布于 2010-01-12 06:12:57
事实证明这是我的疏忽。我们的AD域和通信器域是不同的,我认为它们是相同的。
我使用的是sip:username@domain.com,网络凭证是domain\username,sip地址应该是sip:username@companyname.com。
发布于 2010-01-03 12:28:35
需要注意的两件事:
//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);
https://stackoverflow.com/questions/1941786
复制相似问题