One-way audio means the call connects but only one party hears the other: signalling worked, but RTP in one direction did not arrive. Most often the cause is NAT. This guide finds the failing direction and fixes it with PJSIP on Asterisk 20 to 24 (LTS releases 20, 22 and 24), and in FreePBX 17.
Updated 4 December 2026. Rewritten for PJSIP: chan_sip (sip.conf, externip, canreinvite) was removed in Asterisk 21, and FreePBX 17 installs Asterisk 22 by default. Options and defaults were checked against the Asterisk 20, 22, 23 and 24 source on that date.
Why One-Way Audio Happens
SIP sets the call up; RTP carries the audio on separate UDP ports. Each side states where to send its audio in the SDP: the c= line holds the address, the m= line the port. If that address is private (10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16), the far end sends audio somewhere it cannot reach.
Signalling needs NAT handling too: SIP over UDP behind NAT needs rport (RFC 3581), so responses go back to the address and port a request came from, and Contact rewriting, so later requests reach the device's public address. Get those wrong and registrations or call set-up fail; get the media address wrong and the call connects with audio one way.
Common Causes
| Cause | Typical sign | Fix |
|---|---|---|
| Private IP in the SDP | c= line sent to an outside party shows a private address | external_media_address and local_net on the transport |
| Phone behind NAT | Asterisk sends RTP to the phone's private address or the wrong port | rtp_symmetric, force_rport and rewrite_contact on the endpoint |
| Firewall or RTP port range | RTP leaves in one direction, nothing comes back | Open the configured RTP range (UDP) on every firewall in the path |
| direct_media | Media is moved to flow between endpoints that cannot reach each other | direct_media=no (the default is yes) |
| SIP ALG on a router | Unpredictable registration, call and audio faults | Disable SIP ALG on the router or firewall |
| Codec or payload mismatch | Call rejected with 488 Not Acceptable Here, or rtp set debug shows packets arriving with a payload type not in the SDP | Align the allow= codec lists |
Step 1: Capture the Call with sngrep
Look before changing configuration. sngrep groups SIP messages by call and draws the flow; on Debian 12, which FreePBX 17 uses, it is in the standard repositories.
# Install (Debian 12)
apt install sngrep
# Capture only dialogs that start with an INVITE
sngrep -c
# Capture SIP to and from a trunk and save the packets to a file
sngrep -O /tmp/call.pcap host 203.0.113.10
# Open a saved capture later
sngrep -I /tmp/call.pcapSelect a test call and press Enter for the call flow. F2 (or d) toggles SDP address and port; F3 (or m) toggles RTP arrows. Esc or q goes back, and quits from the call list. In the INVITE and the 200 OK, every c= address offered to an outside party must be public.
Step 2: Find the Direction That Fails
sngrep shows what was negotiated. To prove where audio stops, capture the RTP too (adjust the port and range to yours).
# SIP and RTP on all interfaces, saved for Wireshark
tcpdump -i any -n -w /tmp/call-rtp.pcap 'udp port 5060 or udp portrange 10000-20000'Open /tmp/call-rtp.pcap in Wireshark. Telephony > VoIP Calls lists each call with its RTP streams, and Play Streams opens the RTP Player. Telephony > RTP > RTP Stream Analysis shows loss and jitter. A stream in only one direction identifies the side that is not sending or not receiving.
From the Asterisk CLI
asterisk -rvvv
# then, at the CLI> prompt:
pjsip set logger on
rtp set debug ip 203.0.113.10
pjsip show channelstats
rtp set debug off
pjsip set logger offrtp set debug prints a line per packet, marked "Got" or "Sent"; lines in one direction only point at the failing leg. pjsip show channelstats gives Receive and Transmit counts per channel; a receive count stuck at zero means nothing is arriving from that party.
Step 3: Transport Settings When Asterisk Is Behind NAT
If Asterisk has a private address behind NAT (including one-to-one NAT), tell the transport its public address and which networks are local.
; pjsip.conf
[transport-udp-nat]
type=transport
protocol=udp
bind=0.0.0.0
local_net=192.168.1.0/24
local_net=10.0.0.0/8
external_media_address=203.0.113.50
external_signaling_address=203.0.113.50- local_net: networks treated as local; the external_ settings apply only outside them. Repeat it for each subnet, VPNs included.
- external_media_address: for destinations outside local_net, a media address inside local_net is rewritten to this value in the SDP. This fixes a private IP in the c= line.
- external_signaling_address: the public address used in SIP signalling outside local_net.
Transports ignore changes on reload by default (allow_reload=no, as a reload can disrupt calls), so restart Asterisk after editing one.
Step 4: Endpoint Settings for Phones Behind NAT
[6002]
type=endpoint
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes| Option | Default | What it does |
|---|---|---|
| direct_media | yes | Lets media flow directly between endpoints; no keeps Asterisk in the media path. |
| rtp_symmetric | no | Sends RTP back to the address and port it was received from. |
| force_rport | yes | Replies to the source port even without an rport parameter. |
| rewrite_contact | no | Replaces the inbound Contact with the source address and port. |
Symmetric RTP (RFC 4961) means a device sends from the address and port it receives on, so Asterisk can reply to where packets actually come from. Strict RTP, on by default, drops packets from an unexpected source; the sample rtp.conf suggests adjusting probation if RTP is dropped after a call connects.
FreePBX 17: Where the Same Settings Live
FreePBX generates pjsip.transports.conf, pjsip.endpoint.conf and rtp_additional.conf itself, so set these values in the GUI.
- Settings > Asterisk SIP Settings, General SIP Settings tab: External Address and Local Networks (ip/mask). FreePBX writes these as external_media_address, external_signaling_address and local_net on each transport.
- Same tab: RTP Port Ranges (default 10000–20000) and Strict RTP.
- SIP Settings [chan_pjsip] tab: per-transport External IP Address and Local network.
- Applications > Extensions, Advanced tab: Direct Media, RTP Symmetric, Rewrite Contact and Force rport. Then Submit and Apply Config.
- FreePBX extensions default RTP Symmetric, Rewrite Contact and Force rport to Yes, so usually only Direct Media needs changing to No.
Step 5: Firewall and RTP Port Range
Asterisk's built-in RTP range is 5000–31000; the sample rtp.conf and FreePBX set 10000–20000. The range in use must be open for UDP on the server firewall, any cloud security group and, behind NAT, the router. Opening only the SIP port lets calls connect while blocking audio.
# The range Asterisk is actually using
asterisk -rx "rtp show settings"
# Example iptables rule for the 10000-20000 range
iptables -A INPUT -p udp --dport 10000:20000 -j ACCEPTStep 6: SIP ALG on Routers
A SIP ALG translates IP addresses embedded in SIP as packets pass a router, and Cisco notes that no standard defines which fields to translate, so implementations vary. Sangoma recommends disabling SIP ALG and notes some routers enable it by default.
Step 7: Codec Mismatch
Asterisk answers an offer it cannot negotiate with 488 Not Acceptable Here, so a full mismatch usually fails the call. RTP that arrives with a dynamic payload type that was not negotiated is dropped without a log message, but rtp set debug still shows it arriving, on a "Got" line that gives its type number. Compare that type with the m= lines in the SDP and with the Codec column of pjsip show channelstats, and align the allow= lists.
WebRTC Clients and ICE
Browser softphones use ICE. On the PJSIP endpoint, webrtc=yes enables ice_support, use_avpf, rtcp_mux and media_use_received_transport, and sets DTLS media encryption. Browsers also need a WSS transport and TLS in http.conf. Asterisk's STUN and TURN servers go in rtp.conf.
; rtp.conf
[general]
icesupport=yes ; already the default
stunaddr=stun.example.com:3478
turnaddr=turn.example.com:3478
turnusername=asterisk
turnpassword=change-me
; pjsip.conf
[webrtc_client]
type=endpoint
webrtc=yes
dtls_auto_generate_cert=yesBehind one-to-one NAT, [ice_host_candidates] in rtp.conf can advertise the public address instead; the sample advises against combining it with stunaddr or turnaddr. The browser gathers its own candidates, so its STUN and TURN servers are set in the WebRTC client. In FreePBX 17, STUN and TURN are under Media Transport Settings on the General SIP Settings tab, and the extension's Advanced tab has Enable ICE Support and Enable AVPF.
Troubleshooting Checklist
- Capture a failing call with sngrep; note which party cannot hear.
- Private c= address to an outside party: set external_media_address and local_net, then restart Asterisk.
- For remote phones, set direct_media=no, rtp_symmetric=yes, force_rport=yes and rewrite_contact=yes.
- Confirm the range from rtp show settings is open on every firewall.
- Use rtp set debug or pjsip show channelstats to find the silent direction.
- Disable SIP ALG on routers in the path.
- Compare codecs: check that the payload type in rtp set debug output appears in the negotiated SDP.
- WebRTC: webrtc=yes on the endpoint, a WSS transport, and a reachable TURN server where NAT blocks direct media.
One-way audio is a media-path fault with a short list of causes, and capturing the call first beats changing settings at random. On current Asterisk the fix lives in PJSIP transport and endpoint options, or their FreePBX 17 equivalents, not sip.conf. Samcom Technologies has delivered 700+ VoIP projects since 2012; if audio still fails, our FreePBX team or a VoIP support engineer can review your captures, or contact us.