STUN and local transport settings for ICE stream transport.
Optional configuration for STUN transport. The default value will be initialized with pj_stun_sock_cfg_default().
Ignore STUN resolution error and proceed with just local addresses.
The default is PJ_FALSE
Include loopback addresses in the host candidates.
Maximum number of host candidates to be added. If the value is zero, no host candidates will be added.
The port number of the STUN server, when server field specifies a hostname rather than domain name. This field should also be set even when the server specifies a domain name, to allow DNS SRV resolution to fallback to DNS A/AAAA resolution when the DNS SRV resolution fails.
The default value is PJ_STUN_PORT.
Specify the STUN server domain or hostname or IP address. If DNS SRV resolution is required, application must fill in this setting with the domain name of the STUN server and set the resolver instance in the resolver field. Otherwise if the resolver setting is not set, this field will be resolved with hostname resolution and in this case the port field must be set.
The port field should also be set even when DNS SRV resolution is used, in case the DNS SRV resolution fails.
When this field is empty, STUN mapped address resolution will not be performed. In this case only ICE host candidates will be added to the ICE transport, unless if no_host_cands field is set. In this case, both host and srflx candidates are disabled.
If there are more than one STUN candidates per ICE stream transport component, the standard recommends to use the same STUN server for all STUN candidates.
The default value is empty.
The documentation for this struct was generated from the following file: