Не удается подключиться к Office Communication Server через API-интерфейс Unified Communications - PullRequest
1 голос
/ 21 декабря 2009

Я пытаюсь подключиться к Office Communication Server с помощью управляемого API-интерфейса Unified Communications. Я попытался мой пользователь и новый пользователь включен для 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

Ответы [ 2 ]

2 голосов
/ 12 января 2010

Оказывается, это было упущением с моей стороны. Наш домен AD и домен коммуникатора разные, я предполагал, что они одинаковы.

Сетевые учетные данные - домен \ имя пользователя, и sip-адрес должен был быть sip: username@companyname.com, я использовал sip: username@domain.com.

0 голосов
/ 03 января 2010

Две вещи на заметку:

  1. Имя пользователя не должно содержать домен. Должно быть отдельное свойство Domain NetworkCredential, которое вы должны использовать.
  2. Вам также необходимо передать URI пользователя, например:

</p> <pre><code>//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);

...