Kurento / bugtracker

[ARCHIVED] Contents migrated to monorepo: https://github.com/Kurento/kurento
46 stars 10 forks source link

401 with CoTURN, Chrome/FF, 6.7.1 and 6.7.2, CoTURN on separate AWS instance #296

Open kylefoley opened 6 years ago

kylefoley commented 6 years ago

KMS Version:

Kurento Media Server version: 6.7.1
 'core' version 6.7.1
 'elements' version 6.7.1
 'filters' version 6.7.1

Other libraries versions:

ii  gstreamer1.5-libav:amd64              1.8.2.1.xenial-20170725171352.96.493eee4  amd64        libav plugin for GStreamer
ii  gstreamer1.5-nice:amd64               0.1.13.1.xenial-20170725160546.81.eebfdab amd64        ICE library (GStreamer plugin)
ii  gstreamer1.5-plugins-bad:amd64        1.8.1.1.xenial-20170725164047.100.3db37b1 amd64        GStreamer plugins from the "bad" set
ii  gstreamer1.5-plugins-base:amd64       1.8.1.1.xenial-20170725154709.55.7b19cfd  amd64        GStreamer plugins from the "base" set
ii  gstreamer1.5-plugins-good:amd64       1.8.1.1.xenial-20170725161537.112.9ee4248 amd64        GStreamer plugins from the "good" set
ii  gstreamer1.5-plugins-ugly:amd64       1.8.1.1.xenial-20170725170621.89.2685b0f  amd64        GStreamer plugins from the "ugly" set
ii  gstreamer1.5-pulseaudio:amd64         1.8.1.1.xenial-20170725161537.112.9ee4248 amd64        GStreamer plugin for PulseAudio
ii  gstreamer1.5-x:amd64                  1.8.1.1.xenial-20170725154709.55.7b19cfd  amd64        GStreamer plugins for X11 and Pango
ii  kms-core                              6.7.1.xenial.20180321183643.47e0370       amd64        Kurento Core module
ii  kms-elements                          6.7.1.xenial.20180321184406.5aaf4a0       amd64        Kurento Elements module
ii  kms-filters                           6.7.1.xenial.20180321185049.7f2d045       amd64        Kurento Filters module
ii  kms-jsonrpc                           6.7.1.xenial~20180321183209.1.637bf2a     amd64        Kurento JSON-RPC library
ii  kmsjsoncpp                            1.6.3.xenial.20170725151047.d78deb7       amd64        Kurento jsoncpp library
ii  kurento-media-server                  6.7.1.xenial.20180321185711.dd49a2c       amd64        Kurento Media Server
ii  libgstreamer-plugins-bad1.5-0:amd64   1.8.1.1.xenial-20170725164047.100.3db37b1 amd64        GStreamer development files for libraries from the "bad" set
ii  libgstreamer-plugins-base1.5-0:amd64  1.8.1.1.xenial-20170725154709.55.7b19cfd  amd64        GStreamer libraries from the "base" set
ii  libgstreamer1.5-0:amd64               1.8.1.1.xenial-20170725152356.170.0d6031b amd64        Core GStreamer libraries and elements
ii  libnice10:amd64                       0.1.13.1.xenial-20170725160546.81.eebfdab amd64        ICE library (shared library)
ii  openh264-gst-plugins-bad-1.5:amd64    1.8.1.1.xenial-20170725164047.100.3db37b1 amd64        GStreamer plugins from openh264

Client libraries

Browsers tested

System description: AWS Ubuntu 16.04, CoTURN also on a SEPARATE AWS Ubuntu 16.04 instance. Clients are connecting via WSS to signalling server. Vanilla WebRTC being used client-side. CoTURN instance has every port open for testing purposes.

What steps will reproduce the problem?

  1. Plug TURN info into https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ to make sure TURN server works
  2. Ensure that Username/Credential/IP/port are accurate in Kurento WebRTC config
  3. Initiate vanilla P2P call to make sure TURN works
  4. Initiate MCU to see if TURN works, it does, but about 50% of the packets 401 Unauth on CoTURN
  5. Initiate SFU connection, you will see almost every packet is 401 Unauth on CoTURN

What is the expected result? Kurento attaches the TURN Username/credential to the ICE packet

What happens instead? Kurento does not attach the TURN Username/credential to the ICE packet to > 80% of packets

Does it happen with one of the tutorials? Not tested, will test and report back

Please provide any additional information below. I can provide any screenshots and CoTURN/Kurento config upon request.

Is there any reason that https://github.com/Kurento/kms-elements/blob/master/src/gst-plugins/webrtcendpoint/kmsiceniceagent.c#L407 is called two times in a row?

kylefoley commented 6 years ago

image

This screenshot is from a SFU conference, these messages are from Kurento only, clients are going to a different TURN server. These messages popped up within seconds of each other