Project

General

Profile

Configuration

Component configuration

Example configuration needed for STUN component.

--comp-name-2=stun
--comp-class-2=tigase.stun.StunComponent

stun/stun-primary-ip=10.0.0.1
stun/stun-primary-port[I]=3478
stun/stun-secondary-ip=10.0.0.2
stun/stun-secondary-port[I]=7001

# additional setting of external ip/port
stun/stun-primary-external-ip=172.16.0.22
stun/stun-primary-external-port[I]=3479
stun/stun-secondary-external-ip=172.16.0.23
stun/stun-secondary-external-port[I]=7002

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

stun-primary-ip - primary IP address of STUN server used for binding (and sending to client if stun-primary-external-ip)

stun-primary-port - primary port of STUN server used for binding (and sending to client if stun-primary-external-port)

stun-secondary-ip - secondary IP address of STUN server used for binding (and sending to client if stun-secondary-external-ip)

stun-secondary-ip - secondary port of STUN server used for binding (and sending to client if stun-secondary-external-port)

stun-primary-external-ip - primary external IP address of STUN server used for sending to client if set

stun-primary-external-port - primary external port of STUN server used for sending to client if set

stun-secondary-external-ip - secondary external IP address of STUN server used for sending to client if set

stun-secondary-external-port - secondary external port of STUN server used for sending to client if set

Logback configuration/disable:

add

-Dlogback.configurationFile=etc/logback.xml

to java options.

Sample logback configuration:

<configuration  scan="true">

  <appender name="STDOUT"
    class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>
        %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
     </pattern>
    </encoder>
  </appender>

  <logger name="de.javawi.jstun.header.MessageHeader" level="INFO" />

  <root level="DEBUG">
    <appender-ref ref="STDOUT" />
  </root>

</configuration>