ユニファイド コミュニケーション API を介して Office Communication Server に接続できない
質問
ユニファイド コミュニケーション マネージド 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
解決
これは私の一部に手落ちだったが判明。 ADドメインとコミュニケードメインが異なっている私たち、私は彼らが同じであったと想定していました。
ネットワーク資格情報は、ドメイン\ユーザー名で、SIPアドレスは、SIPされている必要があります:username@companyname.com、私は一口使用した:username@domain.comを
他のヒント
注意すべき点が 2 つあります。
- ユーザー名にはドメインを含めないでください。使用する必要がある NetworkCredential の別の Domain プロパティがあるはずです。
- ユーザー URI も渡す必要があります。例:
//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);
所属していません StackOverflow