2009-12-21 8 views
1

통합 통신 관리 API를 사용하여 Office Communication Server에 연결하려고합니다. 나는 내 사용자와 OCS에 대해 활성화 된 새로운 사용자를 시도했습니다. 두 계정 모두 Office Communicator 클라이언트에 성공적으로 로그인 할 수는 있지만 API를 사용하면 실패합니다. 네트워크 자격 증명을 만들 때 나는 도메인 \ 사용자 이름 형식의 사용자 이름에 전달하면, 나는이 오류 얻을 : 나는 이름의 도메인을두면통합 통신 API를 통해 Office Communication Server에 연결할 수 없습니다.

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

이 내 부분에 감독이었다 밝혀졌습니다. 우리의 AD 도메인과 커뮤니케이터 도메인은 다르다. 나는 그들이 동일하다고 생각했다.

네트워크 자격 증명은 domain \ username이며 sip 주소는 sip : [email protected]이어야합니다. sip : [email protected]을 사용하고있었습니다.

0

참고 사항 :

  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); 

+0

응답 해 주셔서 감사 드리며, 저는이 두 가지 모두를 수행하고 있습니다. 그러나 UserEndpoint가 아닌 CollaborationPlatform을 사용하고 있습니다. 내가 얻는 오류는 UCMA에 기본 IM 호출이라는 샘플에 포함되어 있습니다. –