Configuration

Below is an example configuration for STUN component. Note that the 2 stun-primary and 2 stun-secondary settings are required, where external settings are not.

stun (class: tigase.stun.StunComponent) {
    'stun-primary-ip' = '10.0.0.1'
    'stun-primary-port' = 3478
    'stun-secondary-ip' = '10.0.0.2'
    'stun-secondary-port' = 7001
    'stun-primary-external-ip' = '172.16.0.22'
    'stun-primary-external-port' = 3479
    'stun-secondary-external-ip' = '172.16.0.23'
    'stun-secondary-external-port' = 7002
}

Note

Primary port should be set to 3478 as it is default port for STUN servers.