Protocols About 6 min read

SIP and SRTP for intercom and real time media

SIP manages call signalling while SRTP protects media. Check both paths, and give any door control its own authentication and permissions.

Sources and scopeSource record 25 August 2026

Technical source record: 25 August 2026. Check the linked documentation for current product requirements.

Core signaling and media protection architecture only; no PBX, proxy, intercom, registration, call, SRTP exchange, DTMF action, or door control behaviour is validated.

Verification and testing

Overview#

SIP establishes, modifies, and terminates multimedia sessions. SDP usually describes the media; RTP carries it; SRTP can protect it. SIP signalling protection and media protection are independent. A TLS protected SIP hop doesn't automatically encrypt RTP, and SRTP doesn't authorise a caller to unlock a door. SIP SRTP

Standards status and profiles#

RFC 3261 remains the SIP core, with many updating RFCs. The IETF SIPCORE charter identifies the maintained core family including reliable provisional responses (RFC 3262), server location (RFC 3263), SDP offer/answer (RFC 3264), and event notification (RFC 6665). Implementations must state the extensions and option tags they support rather than claiming an unspecified “latest SIP.” SIPCORE

Function Reference Notes
Core signaling RFC 3261 plus applicable updates Transactions, dialogs, routing, methods, responses
Media negotiation RFC 3264 Offer/answer rules over SDP
Digest authentication update RFC 8760 Modern algorithms and updates to SIP Digest behaviour
Authenticated calling identity RFC 8224 PASSporT based identity within an originating/terminating service model; not universal end user identity
SRTP base RFC 3711, updated by RFCs 5506, 6904, and 9335 Media confidentiality, message authentication, and replay protection profiles
AEAD AES GCM for SRTP RFC 7714 Modern authenticated encryption transforms
DTLS SRTP keying RFC 5764 Establishes SRTP keying material from DTLS
SDP security descriptions RFC 4568 Carries key parameters in SDP; the signaling path must protect them and deployment support varies

SIP concepts that must stay distinct#

  • Transaction: one request and its responses, with client/server transaction state.
  • Dialog: peer relationship established by identifiers such as Call ID and tags; multiple transactions can occur within it.
  • Registration: binding an Address of Record to contacts; registration isn't call authorisation.
  • Route set: proxies a dialog traverses; it isn't necessarily the media path.
  • Session: negotiated media state; it can outlive a transaction and can change through re INVITE or UPDATE where supported.

Call ID, tags, branches, contacts, display names, and asserted headers are protocol identifiers or claims, not independently verified identities.

Basic intercom call flow#

text
door station             proxy/registrar              operator endpoint
     |--- REGISTER ---------->|                              |
     |<-- 401 challenge ------|                              |
     |--- REGISTER + auth --->|                              |
     |<-- 200 ----------------|                              |
     |--- INVITE + SDP ------>|--- INVITE + SDP ----------->|
     |<-- 100 / 180 ----------|<-- provisional -------------|
     |<-- 200 + SDP answer ---|<-- 200 + SDP answer --------|
     |--- ACK --------------->|--- ACK --------------------->|
     |<========= RTP/SRTP media, often on a separate path ===>|
     |--- BYE --------------->|--- BYE --------------------->|
     |<-- 200 ----------------|<-- 200 ----------------------|

CANCEL stops a pending request; it doesn't terminate an established dialog. ACK handling differs for 2xx and non 2xx final responses. Model retransmissions, provisional responses, forking, multiple final responses, glare, session timers, and endpoint restart.

Safe message shape#

Target: Parser and documentation fixture only.

Inputs: Reserved example domains, names, and no credentials.

Side effects: None.

sip
OPTIONS sip:intercom-01@devices.example SIP/2.0
Via: SIP/2.0/TLS client.example;branch=z9hG4bK-doc-001
Max-Forwards: 20
From: <sip:monitoring@client.example>;tag=doc-from-001
To: <sip:intercom-01@devices.example>
Call-ID: doc-call-001@client.example
CSeq: 1 OPTIONS
Contact: <sips:monitoring@client.example>
Content-Length: 0

The example is intentionally unauthenticated and unsuitable for production. A real implementation must follow the selected transport, certificate, routing, authentication, authorisation, and extension profile.

Signaling protection#

TLS and SIPS#

Use TLS with certificate validation between each managed hop. sips: expresses a requirement for secure SIP transport along the route defined by SIP; it doesn't mean that every intermediary is invisible, that headers are end to end encrypted, or that media is protected. RFC 5630 clarifies SIPS handling. SIPS

Protect UDP/TCP only legacy segments with network isolation and a migration plan. Reject opportunistic downgrade after TLS failure. Don't disable name/certificate verification to accommodate IP address provisioning without an explicit trust design.

Digest and identity#

  • Use updated Digest algorithms/profile support and TLS; don't rely on legacy weak choices or reusable shared credentials.
  • Use unique endpoint credentials, bounded nonce lifetime, replay detection, attempt throttling, and credential rotation.
  • SIP Identity can authenticate an asserted telephone identity within its trust framework; it doesn't prove physical presence or entitlement to a door operation.
  • Display name and From URI are untrusted presentation data.

SRTP and key management#

SRTP adds encryption, integrity/authentication (depending on transform), and replay protection to RTP; SRTCP does the same for RTCP. Security depends on the negotiated transform and, critically, how keys and peer identity are established.

DTLS SRTP#

DTLS SRTP performs a DTLS handshake on the media path and exports SRTP keying material. Bind the certificate fingerprint from SDP to an authenticated signalling exchange. A fingerprint received over unauthenticated signalling can be replaced by an attacker.

SDP security descriptions#

RFC 4568 places SRTP key parameters in SDP. It is only acceptable when the complete signalling path and every component that can read the SDP are trusted for key exposure. Avoid logging or recording SDP that contains key material. Prefer a stronger key management design where both endpoints support it.

Transform selection#

Inventory actual support. Older AES counter mode plus HMAC SHA1 SRTP profiles remain deployed; AEAD AES GCM profiles are defined by RFC 7714. Never negotiate “SRTP” without recording the exact protection profile, authentication tag behaviour, replay window expectations, and rollover counter handling. SRTP GCM

DTMF and physical control#

DTMF can be in band audio, RTP telephone events, or SIP INFO depending on the deployment. It can be replayed, generated by intermediaries, lost, duplicated, or exposed to media processors. A DTMF digit sequence must not be the sole authorisation for unlock, relay, alarm suppression, or configuration. Route high impact actions to a separately authenticated, authorised, freshness protected control API and correlate the action to an operator identity.

Parser and state machine controls#

  • Bound start line, header count/length, body length, MIME nesting, SDP size, contacts, routes, and fork branches.
  • Reject conflicting Content-Length values and parser differentials between proxy and endpoint.
  • Validate URI schemes, hostnames, ports, and route targets before resolving or connecting.
  • Use a real SIP grammar/state machine; don't parse security relevant headers with ad hoc string splitting.
  • Keep transaction timers and dialog/session lifetimes bounded.
  • Treat REFER, MESSAGE, SUBSCRIBE/NOTIFY, INFO, and vendor methods as separately authorised capabilities.
  • Prevent automatic media or microphone activation except under documented operational policy.

Deployment checklist#

  • Exact SIP transports, RFC extensions, option tags, codecs, and DTMF method documented
  • Mutual endpoint/proxy trust and certificate lifecycle defined
  • Unique endpoint credentials and modern Digest behaviour configured
  • Registration, call placement, media receive/send, and door control permissions separated
  • SDP offer/answer, early media, forking, re INVITE, timeout, and restart behaviour handled
  • Exact SRTP profile and authenticated key management method required
  • Plain RTP fallback prohibited or explicitly isolated and accepted
  • SIP/SDP/message sizes and state allocation bounded before authentication
  • Identity headers and display text not treated as sufficient authorisation
  • DTMF/data channel control mapped to an independently authorised service
  • Call detail, SDP, addresses, and media metadata retained/redacted by policy

Checks for your system#

SIP profiles differ materially across products. Validate registration, proxy routing, TLS identity, offer/answer, codec and DTMF negotiation, SRTP key management, retransmission/forking, intercom/PBX recovery, privacy, and the independently authorised door control boundary in an approved lab.

Sources#

Section overview · Wiki home