Glossary
DTLS (Datagram Transport Layer Security)
TLS assumes a reliable byte stream. Real-time media runs over UDP, where packets go missing and arrive out of order, so WebRTC uses the datagram version of TLS to agree the keys that lock every call.
General definition
DTLS (Datagram Transport Layer Security) is TLS re-engineered for transports that do not guarantee delivery or ordering. DTLS 1.2 (RFC 6347) mirrors TLS 1.2 and DTLS 1.3 (RFC 9147) mirrors TLS 1.3, with the same cipher suites, certificates and handshake messages. The changes are the ones UDP forces: explicit sequence numbers and epochs in every record so each datagram can be decrypted on its own, retransmission timers for handshake messages, fragmentation of handshake messages that exceed the path MTU, a replay window instead of a strict sequence, and a stateless cookie exchange so an attacker cannot force the server to allocate state with spoofed packets. Record-level encryption is identical to TLS, so the security properties, including forward secrecy with ephemeral key exchange, carry over.
Its most visible use is WebRTC. The WebRTC security architecture (RFC 8827) makes DTLS-SRTP (RFC 5764) mandatory: the two endpoints run a DTLS handshake over the same UDP path that ICE negotiated, then use a keying material exporter to derive the SRTP master keys. Audio and video are not carried inside DTLS records; DTLS only agrees the keys, and SRTP then encrypts and authenticates each RTP packet with far less overhead. WebRTC data channels take the other route and run SCTP directly inside DTLS (RFC 8831). Both ends normally use self-signed certificates generated by the browser or SDK; trust comes from the fingerprint, a hash of the certificate published in the SDP offer and answer (a=fingerprint, RFC 8122) and delivered over the application’s secure signaling channel. If the certificate presented in the handshake does not match the fingerprint, the connection is rejected, which is how WebRTC detects a man in the middle without a certificate authority.
Beyond WebRTC, DTLS protects CoAP for constrained IoT devices, is one of the transports in OpenVPN and Cisco AnyConnect, and secures SIP over UDP where stream-oriented TLS would not fit. In every case it is encryption in transit for datagrams: it protects the hop, and an intermediary that terminates the DTLS session, such as a media server, can read what passes through it.
Adding calls to your product? The Ethora voice chat SDK is built on WebRTC, with 1:1 calls, group voice rooms and push-to-talk for web, iOS and Android.
In the Ethora ecosystem
Ethora’s in-app voice and video calls are built on WebRTC, so every call follows the standard design: ICE finds a path, a DTLS handshake agrees the keys, and the audio and video packets travel as SRTP. The call signaling that carries the SDP offers, answers and fingerprints rides on the chat connection, which is already protected by TLS on the XMPP stream or WSS, so a fingerprint cannot be swapped in transit. Group calls use a selective forwarding unit (SFU); each participant has its own DTLS-SRTP session with the SFU, which forwards streams without decoding them.
That last point is the honest boundary. An SFU terminates DTLS, so media is encrypted on every hop but the media server is a party to the call, in the same way the chat server is a party to a plaintext room. This matches Ethora’s compliance-archive default, where the server can see content; on a dedicated or self-hosted deployment that media server runs inside your own cloud account under your control, with the certificate and cipher configuration yours to set. The call features themselves are described on the voice and video call API page.