Vicidial One-Way Audio, No Audio and Dead Air: How to Fix It

By , Connectivity King · Last updated

One-way audio in Vicidial almost always means the call's signaling works but the media (RTP) can't find its way back. The usual cause is NAT: Asterisk tells the carrier to send audio to a private IP address, or the firewall blocks the RTP port range. Fix it in this order: set your public IP and local network in the SIP or PJSIP config, open the RTP ports (Vicidial's default range is 10000 to 20000 UDP), turn off SIP ALG on your router, make sure codecs match (ulaw for US calls), then check the agent's softphone or browser. A SIP trace with sngrep shows you which of these it is in a couple of minutes.

The rest of this guide walks through each check, with the config lines to look at and how to tell the problems apart.

One-Way vs No Audio vs Dead Air: Tell Them Apart

These three get lumped together, but they point to different causes:

  • One-way audio. The agent hears the customer but the customer hears nothing, or the reverse. The call connects and the timer runs. This is the classic NAT or firewall symptom: RTP flows in one direction only.
  • No audio at all. Both sides hear silence even though the call shows as answered. Usually RTP is blocked in both directions, the SDP advertises an address nobody can reach, or the codecs don't match.
  • Dead air. The customer answers and hears silence for a few seconds before an agent comes on, or the call drops. This is often a dialer setting rather than a network fault: answering machine detection holding the call, a dial level set higher than your agents can handle, or no agent free when the call is answered.

Write down which one you have, which direction is silent, and whether it hits every call or only some. "Every call, customer can't hear agent" points at a different fix than "a few calls a day go silent."

Check 1: NAT (external_media_address / externip, local_net)

If your Vicidial server sits behind a router or a cloud provider's private network, Asterisk only knows its private address (something like 10.x, 172.16-31.x or 192.168.x). Unless you tell it the public IP, it writes the private address into the SDP of every call. The carrier sends audio to an address it can't reach, and you get one-way or no audio.

chan_sip settings

On older Vicidial builds that use chan_sip, set these in the [general] section of sip.conf:

externip=203.0.113.10
localnet=192.168.1.0/255.255.255.0
nat=force_rport,comedia

On the carrier peer, also set canreinvite=no (or directmedia=no) so media keeps flowing through Asterisk.

PJSIP settings

On PJSIP, the settings live on the transport:

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
external_media_address=203.0.113.10
external_signaling_address=203.0.113.10
local_net=192.168.1.0/24

On the carrier endpoint, use direct_media=no, rtp_symmetric=yes, force_rport=yes and rewrite_contact=yes. If you are moving carriers from chan_sip to PJSIP, our Vicidial PJSIP carrier migration guide covers where each of these goes.

Replace 203.0.113.10 with your server's real public IP, and list every private range your phones and server use in localnet / local_net. Reload SIP (or run pjsip reload) and place a test call.

Check 2: RTP Port Range Open on the Firewall

Signaling uses port 5060, but audio uses a range of UDP ports set in rtp.conf:

[general]
rtpstart=10000
rtpend=20000

Every port in that range must be open for UDP from your carrier's media IPs, both on the server firewall (iptables, firewalld or whatever your build uses) and on any network or cloud firewall in front of it. A rule that only opens 5060 is the single most common reason for "the call connects but nobody can hear anything."

Two things to watch:

  • Open the same range in every layer. If rtp.conf says 10000 to 20000 but the cloud firewall only allows 10000 to 10100, calls work until ports above 10100 are picked, then go silent. That looks random but isn't.
  • Your carrier may send media from different IPs than signaling. Ask your carrier for the full list and allow all of them.

Each call uses RTP ports, so busier floors need the full range. Our VoIP cost calculator helps you estimate monthly minutes from agents, hours and days, which is a useful starting point when you size trunks and firewall rules together.

Check 3: Turn Off SIP ALG

SIP ALG (Application Layer Gateway) is a router feature that rewrites SIP packets as they pass through. It is meant to help with NAT, but it often mangles the SDP, changes ports or drops packets. On many business routers and firewalls it is on by default.

If your server or your agents sit behind a router with SIP ALG enabled, turn it off. The setting is usually under a name like "SIP ALG," "SIP helper," "SIP transformations" or "SIP fixup." Reboot the router after changing it, then test again. If audio problems only hit remote agents working from home, their home routers are a likely suspect.

Check 4: Codec Mismatch (ulaw/alaw)

If the two sides can't agree on a codec, the call can connect with no usable audio. For US calling, ulaw (G.711 μ-law) is the standard. Set the carrier peer or endpoint to allow it first:

disallow=all
allow=ulaw

In PJSIP, that is disallow=all and allow=ulaw on the endpoint. Then check your phones and the agent softphone allow the same codec. If you see 488 Not Acceptable Here in the SIP trace, it's a codec mismatch. If you transcode (for example to G.729 for remote agents), confirm the codec is installed and licensed on the server, or the call falls silent the moment it is bridged.

Check 5: Agent Side (WebRTC/Softphone, Browser Mic Permissions)

If the carrier leg is fine but the agent can't hear or be heard, look at the agent's setup:

  • Browser microphone permission. With a WebRTC phone in the agent screen, the browser must be allowed to use the microphone. A blocked permission, or the wrong input device selected, gives the classic "customer can't hear the agent."
  • HTTPS and certificates. WebRTC needs the agent page served over HTTPS with a valid certificate. A certificate problem can let the page load but stop audio.
  • STUN and ICE. WebRTC phones need a STUN server and correct ICE settings so the browser can find a media path through NAT.
  • Softphone NAT settings. For desktop softphones, turn on the NAT keep-alive or STUN option, and don't use a high-latency VPN for voice.
  • Headset and USB. Test the headset on another app. Unplugging and replugging a USB headset mid-shift can switch the default device.

If only one agent has the problem, start here. If every agent does, go back to checks 1 to 4.

Reading a SIP Trace (sngrep)

Guessing wastes time. sngrep shows SIP calls on the server in real time. Install it, run sngrep, place a test call and open it:

  1. Find the SDP in the INVITE and the 200 OK. Look at the c=IN IP4 line. If your server advertises a private address there, NAT is your problem (check 1).
  2. Check the m=audio line. It shows the RTP port and the codecs offered. If the port is outside your open range, or the codec lists share nothing, you've found it.
  3. Compare both sides. The carrier's SDP tells you where its audio comes from. Make sure that IP is allowed in your firewall.

For a second view, run rtp set debug on in the Asterisk CLI during a test call (and rtp set debug off afterward). You should see both "Got RTP packet from" and "Sent RTP packet to" lines. If you only see "Sent," audio is not reaching you.

When It's the Carrier

If your SDP shows the right public IP, the ports are open, SIP ALG is off and codecs match, but audio still drops one way, the trace is your evidence. Send your carrier the call time, the called number, the Call-ID from sngrep and the SDP from both sides. A good carrier can check its media path quickly when you give it that detail.

Connectivity King SIP trunks run on Tier-1 US routes with 99.99% uptime, and quotes usually come back the same day. Our support team is available Monday to Friday, 9am ET to 9pm PT, and can look at a trace with you. See our SIP trunking for call centers page, or our Vicidial SIP trunk setup guide if you are adding a new carrier. An extra gateway — common when the far side is still a PRI — is another place media can go missing. See our SIP trunk vs PRI comparison.

One more reason to fix audio fast: silent, short calls hurt more than your agents. Customers hang up, and calls that end in seconds can count against your caller ID's reputation. Check your outbound numbers with our free spam number checker.

Vicidial One-Way Audio FAQ

Why can the customer hear my agent but my agent can't hear the customer?

Audio coming back to your server is being blocked or sent to the wrong place. Check that your public IP is set (externip or external_media_address), that the RTP range is open for your carrier's media IPs, and that SIP ALG is off.

What ports does Vicidial need open for audio?

SIP signaling usually uses UDP 5060, and audio uses the RTP range in rtp.conf, which is 10000 to 20000 UDP by default. Open the full range on every firewall between your server and your carrier.

Why does audio drop after about 30 seconds?

Calls that drop around 30 seconds often mean the ACK for the 200 OK never arrived, usually because of NAT or SIP ALG. Set your external address, keep NAT keep-alives on, turn off SIP ALG and check the trace for repeated 200 OK messages.

Is dead air the same as one-way audio?

No. One-way audio is a network or config problem where media flows in one direction only. Dead air on answer is usually a dialer setting, such as answering machine detection timing or a dial level set higher than your agents can handle.

Can a hosted Vicidial dialer fix one-way audio?

A hosted dialer removes server-side NAT and firewall setup from your list, because the provider runs the server and carrier connection. Agent-side issues like browser mic permissions and home routers still need checking.

Helpful tools: check your caller IDs with our free spam number checker, and estimate your monthly US minutes from your agents, hours and days with our free VoIP cost calculator.

Skip the Troubleshooting

If you'd rather spend your time on campaigns than on NAT rules, our hosted Vicidial dialer is usually live in about 24 hours, with the server, firewall and SIP trunk set up for you. Still deciding? Read our comparison of hosted Vicidial vs self-hosting. When you're ready, request a quote and we usually reply the same day.

Put the King to work

Enjoyed the read? Tell us about your call center and we’ll put together a quote.

Request a quote
Connectivity King mascot, a crowned VoIP phone answering a call