Parameters to create a transport instance.
unsigned pj::TransportConfig::portRange |
Specify the port range for socket binding, relative to the start port number specified in port. Note that this setting is only applicable when the start port number is non zero.
Example: port=5000, portRange=4
- Available ports: 5000, 5001, 5002, 5003, 5004 (SIP transport)
Available ports are in the range of [port, port + portRange].
Default value is zero.
string pj::TransportConfig::boundAddress |
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).
Note that unlike public_addr field, the address (or hostname) here MUST correspond to the actual interface address in the host, since this address will be specified as bind() argument.