TsgcTURNServerProperties › TURNOptions

TURNOptions Property

TURN-specific options: default Allocation lifetime, port range, Relay IP and long-term credentials.

Syntax

property TURNOptions: TsgcTURNServer_Options read FTURNOptions write SetTURNOptions;

Default Value

Remarks

Groups the options that govern how the TURN server allocates relay endpoints and authenticates its clients:

Example

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;

Back to Properties