TsgcTURNServer › 속성 › TURNOptions
TURN 관련 옵션: 기본 Allocation 수명, 포트 범위, Relay IP 및 long-term credentials.
property TURNOptions: TsgcTURNServer_Options read FTURNOptions write SetTURNOptions;
—
TURN 서버가 중계 엔드포인트를 할당하고 클라이언트를 인증하는 방법을 관리하는 옵션을 그룹화합니다:
LongTermCredentials를 활성화하고, Realm 및 StaleNonce를 설정하며, OnSTUNRequestAuthorization 핸들러에서 사용자별 비밀번호를 제공하십시오.oTURN.TURNOptions.Allocation.DefaultLifeTime := 600;
oTURN.TURNOptions.Allocation.MaxLifeTime := 3600;
oTURN.TURNOptions.Allocation.MinPort := 49152;
oTURN.TURNOptions.Allocation.MaxPort := 65535;
oTURN.TURNOptions.Authentication.Enabled := True;
oTURN.TURNOptions.Authentication.LongTermCredentials.Enabled := True;
oTURN.TURNOptions.Authentication.LongTermCredentials.Realm := 'esegece.com';
oTURN.Active := True;