TsgcSTUNServer › Properties › STUNOptions
Options STUN côté serveur : FINGERPRINT, SOFTWARE, Authentification et les attributs ajoutés aux réponses de liaison.
property STUNOptions: TsgcSTUNServer_Options read FSTUNOptions write SetSTUNOptions;
—
Contrôle le comportement du protocole STUN du serveur :
LongTermCredentials et définissez son Realm et StaleNonce pour activer le mécanisme d'identifiants à long terme (RFC 5389 section 10.2) ; le mot de passe réel pour chaque utilisateur est fourni depuis l'événement OnSTUNRequestAuthorization.
oSTUN.STUNOptions.Fingerprint := True;
oSTUN.STUNOptions.Software := True;
oSTUN.STUNOptions.Authentication.Enabled := True;
oSTUN.STUNOptions.Authentication.LongTermCredentials.Enabled := True;
oSTUN.STUNOptions.Authentication.LongTermCredentials.Realm := 'sgc';
oSTUN.Active := True;