Unified Communications API를 통해 사무실 통신 서버에 연결할 수 없습니다.

StackOverflow https://stackoverflow.com/questions/1941786

  •  20-09-2019
  •  | 
  •  

문제

Unified Communications Managed API를 사용하여 Office Communication Server에 연결하려고합니다. OCS에 대한 사용자와 신선한 사용자를 사용해 보았습니다. 두 계정 모두 Office Communicator 클라이언트에 성공적으로 로그인 할 수 있지만 API를 사용하면 실패합니다. 네트워크 자격 증명을 만들 때 양식 도메인 username의 사용자 이름을 전달하면이 오류가 발생합니다.

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
도움이 되었습니까?

해결책

이것은 내 입장에 대한 감독이라는 것이 밝혀졌습니다. 우리의 광고 도메인과 커뮤니케이터 도메인은 다르며, 그것들이 동일하다고 생각했습니다.

네트워크 자격 증명은 도메인 username이며 SIP 주소는 sip : username@companyname.com이어야합니다. SIP : username@domain.com을 사용하고있었습니다.

다른 팁

주목 할 두 가지 :

  1. 사용자 이름에는 도메인이 포함되어서는 안됩니다. 사용해야 할 NetworkCredential의 별도 도메인 속성이 있어야합니다.
  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);

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top