.docker | ||
.github | ||
api | ||
bundle | ||
cdn | ||
dashboard | ||
gateway | ||
rtc | ||
util | ||
webrtc | ||
.dockerignore | ||
.editorconfig | ||
.gitignore | ||
.prettierrc | ||
COPYING | ||
crowdin.yml | ||
docker-compose.yml | ||
Dockerfile | ||
fosscord-server.code-workspace | ||
nginx.conf | ||
package.json | ||
README.md |
Fosscord Server
Install
Setup fosscord-server as normal ( existing installations are fine, if you run voice on the same server on port 3004
you don't need to edit the regions_available_0_endpoint
record of config
)
Note: currently everything about webrtc is commented out ( because I was lazy )
If you want to test that, you're gonna have to do some fiddling, shouldn't be toooo difficult ( check SelectProtocols.ts
, Identify.ts
and theres probably smth in Server.ts
I forgot about ). Also also make sure you set the listenIps
in Identify.ts
properly because otherwise the transport won't start
cd webrtc
ts-node src/start.ts # don't think the build script works lol
Current problems / setup / etc:
-
Webrtc DTLS fails to properly connect with browser voice. The handshake completes and is labeled completed by chrome://webrtc-internals, however mediasoup drops all RTP packets as the 'handshake is not completed' yet.
-
After the desktop client updates it's VoiceState to join a voice channel, upon leaving the VoiceState will not update to match, and the client is prevented from joining any new voice channels. The client also continuously plays the voice disconnected notification sound. Video demo
-
Desktop client cannot properly connect to voice/media servers due to the above, but also because somewhere in my signalling there is a problem. I haven't looked much into it.
-
When the client does magically decide to try to connect, it connects to signalling but then throws an error client-side about
this.conn.setSelfMute
not being a function -
I have instead been testing voice using a fork of the reverse engineered client from this article, with some slight modifications ( I think it was just changing the email field the client uses to login from
email
->login
. Todo: these could be aliases infosscord-server
? ) -
This client can join a channel, connect to signalling, and does send packets to the UDP server. However, I can't seem to get decrpytion to work. As far as I know, I'm using the same key I'm sending. It turns out the client converts the
secret_key: Number[]
received into a string, but doing the same on the server-side before passing to the decrpyt method still just complains about a key mismatch.