1

Unified Communications Managed 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
4

2 に答える 2

2

これは私の側の見落としだったことが判明しました。私たちの AD ドメインとコミュニケーター ドメインは異なります。同じだと思っていました。

ネットワーク資格情報は domain\username で、sip アドレスは sip:username@companyname.com である必要があり、私は sip:username@domain.com を使用していました。

于 2010-01-11T22:12:56.523 に答える
0

2 つの注意事項:

  1. ユーザー名にドメインを含めないでください。使用する NetworkCredential の別の Domain プロパティが必要です。
  2. また、ユーザー 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);

于 2010-01-03T04:28:34.967 に答える