我正在尝试使用统一通信托管 API 连接到 Office Communication Server。我已经尝试过我的用户和为 OCS 启用的新用户。两个帐户都可以成功登录 Office Communicator 客户端,但使用 API 失败。创建网络凭据时,如果我以域\用户名的形式传入用户名,我会收到以下错误:
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