[jitsi-dev] Using raw-udp transport on Videobridge causes BindException


#1

Hello.
I have been trying to force Videobridge to use raw udp.
I am using the latest binary:

jitsi-videobridge-linux-x64-383.zip
<https://download.jitsi.org/jitsi-videobridge/linux/jitsi-videobridge-linux-x64-383.zip>

I configured this by putting the following line in
~/.sip-communicator/sip-communicator.properties
org.jitsi.videobridge.Videobridge.defaultTransportManager=urn:xmpp:jingle:transports:raw-udp:1

I start a conference by sending the following body through the REST
interface:
{"contents":[{"name":"audio","channels":[{"expire":60,"initiator":"true"},{"expire":60,"initiator":"true"}]}]}
But the videbridge seems to be in a loop, printing this over and over:
16:10:16.050 INFO: [19] org.jitsi.videobridge.Channel.info() Transport
connected for channel a85d046907651f83 of content au\
dio of conference cd10c47461765424
16:10:16.052 INFO: [19] org.jitsi.videobridge.Channel.info() Transport
connected for channel a85d046907651f83 of content au\
dio of conference cd10c47461765424
16:10:16.053 INFO: [19] org.jitsi.videobridge.Channel.info() Transport
connected for channel a85d046907651f83 of content au\
dio of conference cd10c47461765424
Then I get an exception:
16:10:16.152 WARNING: [19]
org.jitsi.service.neomedia.DefaultStreamConnector.warn() Retrying a bind
because of a failure to\
bind to address [*address removed*] and port 11008
java.net.BindException: Address already in use
        at java.net.PlainDatagramSocketImpl.bind0(Native Method)
        at
java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:96)
        at java.net.DatagramSocket.bind(DatagramSocket.java:396)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:251)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:304)
        at
org.jitsi.service.neomedia.DefaultStreamConnector.createDatagramSocket(DefaultStreamConnector.java:118)
        at
org.jitsi.service.neomedia.DefaultStreamConnector.getDataSocket(DefaultStreamConnector.java:270)
        at
org.jitsi.videobridge.RawUdpTransportManager.createStreamConnector(RawUdpTransportManager.java:215)

I get this exception 4 times, for the rtp and rtcp stream of each of the
two channels.

Any suggestions?

Regards,
Ron