A browser voice call wants UDP. A locked-down office network often allows little more than HTTPS on port 443, and some inspect that too. This note explains why calls fail there, what a media-server setup such as LiveKit asks a network team to open, and how Brisvox gets a call through on a single HTTPS port.

Why calls fail on strict networks

WebRTC carries audio as UDP packets because UDP handles loss and delay better than TCP. A firewall that blocks UDP, or a NAT that rewrites addresses in a way the peers cannot undo, stops the media even though the page loaded and the signalling worked. Every WebRTC system has to answer the same question: what happens when UDP does not get through?

What a media-server setup asks the network to open

A self-hosted LiveKit server, by its documentation, uses several ports: TCP 7880 for the API and WebSocket, UDP 50000 to 60000 for media, TCP 7881 as a fallback, TURN over TLS on 5349 or 443, and UDP 3478 for the optional TURN and STUN. For LiveKit Cloud it tells administrators to allow TCP 443 to its signalling and TURN hosts and recommends the UDP and 7881 ports as well. When a visitor's network blocks the first choice, each of those is a fallback with its own port, and the network team has to know about every one. These are LiveKit's published defaults and they can change.

What Brisvox does

The Brisvox server is a WebRTC endpoint that only answers: the browser starts the connection through a single HTTP request, so there is no separate media server and no port range to publish for browser calls. Which path a call takes depends on the visitor's network:

Visitor's networkWhat gets a call through
Open internet, server with a public UDP portWebRTC over UDP, the default
Only HTTPS on 443, possibly inspectedThe WebSocket fallback, on the same port and certificate
Any network where a web page loadsThe WebSocket fallback: nothing to configure

The WebSocket fallback

The same port that serves the page and the WebRTC request also accepts a WebSocket upgrade. The bundled browser module tries WebRTC first and switches to wss://<same host>/ws when WebRTC is missing, the request fails at the network level, or the connection is not up after 4 seconds. The page then shows "Connected (WebSocket fallback)". Nothing else has to be reachable: no UDP, no second TCP port, no TURN server. The same proxy, the same TLS certificate and the same domain are enough, which makes it simple to explain to a network team: one hostname, port 443.

It also covers a server that itself has no inbound UDP, such as a service on a platform that publishes one HTTPS port, and it has the same protection as the WebRTC request: the same token rules, the same origin check, the same rate and admission limits.

Phone calls

Calls that come through Twilio or Telnyx reach the server as a WebSocket carrying the call's audio, so the server needs inbound HTTPS and nothing for the caller's network to allow. A SIP trunk needs UDP for signalling and a range of UDP ports for media, which the deployment guide lists.

Choosing

If calls have to work from any network where a page loads, a single HTTPS port with a built-in WebSocket fallback is the simplest thing to run. The details and every setting are in docs/DEPLOY.md, and Brisvox and LiveKit Agents compares the two projects in general.

Brisvox is designed and directed by Bilal and implemented largely with AI coding agents; this article was written with AI assistance. Every number in it comes from a result file committed to the repository.