Back to Insights
VoIP Engineering

RTP and SRTP Explained: Securing Real-Time Voice Traffic

Telephony Engineering Team
6 min read
RTP and SRTP Explained: Securing Real-Time Voice Traffic

SIP gets most of the attention in VoIP security discussions, but SIP only handles call setup and signaling — the actual voice audio travels over a separate protocol, RTP (Real-time Transport Protocol), and by default, RTP is completely unencrypted.

What RTP Actually Carries

Once a SIP call is established, the negotiated audio (and video, if applicable) flows as a stream of RTP packets directly between endpoints — or, more commonly in enterprise deployments, through a media server or SBC that anchors the stream. Each packet contains a sequence number, timestamp, and the actual encoded audio payload.

The Problem With Plain RTP

Unencrypted RTP means anyone with visibility into the network path — a compromised router, a malicious actor on shared WiFi, an attacker who's gained access to internal network infrastructure — can capture and reconstruct the actual audio of a phone call with widely available packet capture tools. For any business handling sensitive conversations — legal, healthcare, financial services, or frankly any customer call containing personal information — this is a genuine, demonstrable exposure, not a theoretical one.

SRTP: Encrypted Media

SRTP (Secure Real-time Transport Protocol) adds authentication and encryption to RTP packets, typically negotiated via SDES (inline key exchange during SIP signaling) or the more robust DTLS-SRTP (used natively by WebRTC), which derives keys through a proper cryptographic handshake rather than exchanging them in plaintext SDP.

ApproachKey Exchange MethodSecurity Profile
Plain RTPNone — no encryptionVulnerable to passive eavesdropping
SDES-SRTPKeys exchanged in SIP/SDPEncrypted media, but key exposed if SIP signaling itself isn't also encrypted (TLS)
DTLS-SRTPCryptographic handshake, no key in SDPStrongest — standard for WebRTC

Why SDES Alone Isn't Enough

A common half-measure: enabling SRTP for media while leaving SIP signaling on plain UDP. Since SDES-SRTP negotiates the encryption key within the SDP body of the SIP message itself, an attacker who can intercept the unencrypted SIP signaling can recover the SRTP key and decrypt the "encrypted" media anyway. Proper security requires both SIP over TLS and SRTP for media — encrypting one without the other leaves a real gap.

Performance Considerations

SRTP's encryption overhead is genuinely negligible on modern hardware — the computational cost is not a legitimate reason to skip it. The far more common obstacle is interoperability: not every legacy carrier trunk or older endpoint supports SRTP, which is why encrypted media often needs to be negotiated as one leg of a call while a transcoding/anchoring point (SBC or media server) bridges to an unencrypted leg where required.


Auditing whether your VoIP deployment's call audio is actually encrypted end-to-end? Controva LLC performs full-stack VoIP security audits covering both SIP signaling and RTP media encryption.

Discussion

0

Join the conversation

Sign in with your preferred account to comment, reply, and keep the discussion useful for other engineers.

Takes a few seconds. No separate password required.

C

Controva LLC

Engineering Team

We build digital empires that scale. Specializing in high-performance web architecture, AI automation, and headless commerce.

Work with us

Share this article