pjsua_transport_config class final
Transport configuration for creating transports for both SIP and media. Before setting some values to this structure, application MUST call #pjsua_transport_config_default() to initialize its values with default settings.
- Inheritance
- Implemented types
- Available extensions
Constructors
Properties
-
address
→ Pointer<
T> -
Available on T, provided by the StructAddress extension
The memory address of the underlying data.no setter - bound_addr ↔ pj_str_t
-
Optional address where the socket should be bound to. This option
SHOULD only be used to selectively bind the socket to particular
interface (instead of 0.0.0.0), and SHOULD NOT be used to set the
published address of a transport (the public_addr field should be
used for that purpose).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- port ↔ int
-
UDP port number to bind locally. This setting MUST be specified
even when default port is desired. If the value is zero, the
transport will be bound to any available port, and application
can query the port by querying the transport info.
getter/setter pair
- port_range ↔ int
-
Specify the port range for socket binding, relative to the start
port number specified in \a port. Note that this setting is only
applicable to media transport when the start port number is non zero.
Media transport is configurable via account setting,
i.e: pjsua_acc_config.rtp_cfg, please check the media transport
config docs for more info.
getter/setter pair
- public_addr ↔ pj_str_t
-
Optional address to advertise as the address of this transport.
Application can specify any address or hostname for this field,
for example it can point to one of the interface address in the
system, or it can point to the public address of a NAT router
where port mappings have been configured for the application.
getter/setter pair
- qos_params ↔ pj_qos_params
-
Set the low level QoS parameters to the transport. This is a lower
level operation than setting the \a qos_type field and may not be
supported on all platforms.
getter/setter pair
- qos_type ↔ int
-
QoS traffic type to be set on this transport. When application wants
to apply QoS tagging to the transport, it's preferable to set this
field rather than \a qos_param fields since this is more portable.
getter/setter pair
- randomize_port ↔ int
-
Specify whether to randomly pick the starting port number from
the range of
\a port, \a port + \a port_range
. This setting is used only if both port and port_range are non-zero, and only applicable for the port selection of UDP and loop media transport.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sockopt_params ↔ pj_sockopt_params
-
Specify options to be set on the transport.
getter/setter pair
- tls_setting ↔ pjsip_tls_setting
-
This specifies TLS settings for TLS transport. It is only be used
when this transport config is being used to create a SIP TLS
transport.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited