A VoIP firewall policy can allow a call to connect while blocking its audio. SIP, the Session Initiation Protocol, arranges the call; RTP, the Real-time Transport Protocol, carries the media on separately negotiated ports. Say a 60-seat call centre in Manchester changes its firewall and callers can hear agents, but agents hear silence. Opening every UDP port might hide the fault. It also weakens your boundary. Mapping signalling and media separately gives you a way to restore audio without treating the entire internet as a trusted caller.
State tracking doesn't automatically understand a call
A plain stateful firewall tracks network flows, usually by source and destination addresses, ports and transport protocol. It doesn't necessarily interpret SIP's Session Description Protocol (SDP) payload, which describes media addresses and ports. An RTP flow isn't automatically a reply to the SIP connection.
In the Manchester example, the signalling connection succeeds, but inbound audio arrives on a different UDP port before the firewall has seen outbound media. A matching SIP rule doesn't authorise that packet.
Your policy needs either explicitly restricted media rules or call-aware inspection that opens temporary media permissions, often called pinholes. NIST SP 800-58 (2005), section 7, identifies dynamically assigned RTP ports as a firewall problem. The practical distinction is application awareness, not whether a box carries the word stateful.
Ottawa-based VoIP security company VoIPshield addresses the inspection side through VoIPguard, its VoIP-aware intrusion prevention with 250+ SIP/VoIP attack signatures, working with McAfee Network Security Platform and Next Generation Firewall. That adds attack detection; it doesn't replace documenting your media path.
NAT and SIP ALG need one accountable owner
Network Address Translation (NAT) changes packet addresses, but ordinary translation doesn't necessarily correct addresses inside SIP messages. A SIP application-level gateway (ALG) attempts that correction. It can conflict with another component already handling traversal.
Say Manchester's session border controller (SBC), a gateway controlling the carrier boundary, advertises its public media address. A router ALG rewrites the same SDP again. Calls may ring normally while audio goes to the wrong destination. “Should I disable SIP ALG?” depends on who owns that translation.
For this example, the SBC owns SIP translation and anchors carrier media, so the generic router ALG stays off. Comparing SDP and packet captures on both sides confirms that advertised addresses match reachable destinations. IETF RFC 4787 (2007), section 7, recommends disabling NAT ALGs for UDP-based protocols because they can interfere with NAT traversal. That's not a ban on purpose-built SBCs. A tested legacy deployment may still need an ALG.
VoIP-aware inspection adds protocol checks, with limits
Port permission doesn't prove that a SIP message is safe. A permitted peer could send malformed requests or excessive call attempts, and ordinary flow tracking won't necessarily recognise those attacks.
Say the centre's carrier signalling address is allowed, but an unusual burst of requests reaches the PBX. A VoIP-aware firewall or intrusion prevention system (IPS) can inspect visible SIP messages for protocol violations and recognised attack patterns. Capabilities differ by product.
Your acceptance criteria should distinguish message validation, attack signatures, call-rate controls and media pinholes rather than assuming every device provides them. TLS-encrypted SIP prevents payload inspection unless a component legitimately terminates that encryption. In this example, the SBC terminates carrier TLS; an unrelated perimeter IPS can't read it. Keeping encryption and placing inspection at an appropriate trust boundary is preferable to exposing signalling just for visibility. VoIPshield's Labs research provides historical examples of vulnerabilities in enterprise voice systems.
A bounded port pool makes the rules explainable
A handset count doesn't determine your RTP range. Transfers, recording and conferences can change media allocations, so a guessed range can fail during busy periods.
Say Manchester budgets 80 concurrent carrier-facing media legs, including temporary transfer legs. Its chosen SBC configuration uses one local RTP port and one separate RTCP control port per leg, with internal media on a separate pool. The external pool is UDP 20000–20199. Working: 20199 − 20000 + 1 = 200 ports; 80 × 2 = 160 required; 200 − 160 = 40 spare. This is an example allocation, not a universal setting.
Documented SBC allocation behaviour and the carrier's current peer lists determine the actual rules. Manchester's ordered policy would read:
- Signalling: allow the carrier's documented signalling addresses to the SBC's public NAT object on TCP destination port 5061, translated to 10.20.30.10. Allow the corresponding outbound connection and established return traffic.
- Media: allow the carrier's documented media addresses and source-port range to that NAT object on UDP destination ports 20000–20199. Allow SBC media back to the carrier's documented destination range. Signalling peers and media peers aren't assumed identical.
- Management: allow SBC administration only from the management network. Handsets reach approved internal call services, not arbitrary internet SIP peers.
- Default denial: reject other inbound signalling and media, with rate-limited logging so rejected traffic can't overwhelm the logs.
Explicit media permissions remain open within that restricted peer boundary. Call-aware pinholes can narrow exposure further, but only where the enforcing device can understand the signalling. Keeping anonymous public SIP off the handset network reduces bypass paths. The VoIP security primer gives wider context for that separation.
Testing must cover silence, changes and rejection
A successful short outbound call doesn't prove the policy works. Incoming audio, idle mappings and changed media destinations exercise different rules.
Say an agent transfers a caller after a long hold and audio disappears. The initial setup passed, but the transfer negotiated another media path.
Your staged test plan should include inbound and outbound calls, early media such as ringing announcements, hold/resume, transfers and conferences. A call left idle beyond the configured mapping timeout tests whether supported keepalives preserve reachability. Carrier failover checks every approved backup peer.
At the planned media-leg load, captures and counters should show audio in both directions, negotiated ports inside the pool and acceptable quality against your recorded baseline. With authorisation, a controlled packet from an unapproved external address should be denied. Matching timestamps across SIP, NAT and IPS logs helps distinguish policy drops from codec faults. A saved configuration and rollback window keep a failed change recoverable.
The useful policy has an owner and an expiry check
A working rule can become unsafe after a carrier or SBC change. Yesterday's peer list may no longer describe today's service.
Say Manchester adds a recording service with another media destination. Quietly widening the internet rule would conceal that architectural change.
Assigning an owner to each voice rule, recording its purpose and retesting after service changes keeps permissions explainable. Your evidence should show both that approved calls work and that unapproved traffic fails. That's a better acceptance test than “the phones ring”.
Quick answers
Why can calls connect but have no audio through a firewall?
SIP signalling and RTP audio use separate flows. A signalling rule can succeed while an RTP rule, NAT mapping or advertised media address prevents audio from reaching the endpoint.
Should SIP ALG always be disabled?
A generic SIP ALG is usually unnecessary when a tested SBC already owns NAT traversal. Some legacy deployments need an ALG, so the decision should follow the documented architecture and call testing.
How many RTP ports does a 60-seat office need?
Seat count alone isn't enough. Port sizing depends on concurrent media legs, transfers, conferences and the system's RTP/RTCP allocation. The example budgets 160 ports for 80 legs and uses a 200-port pool.