Vicidial Failed Calls: Reading SIP Codes and Hangup Causes

By , Connectivity King · Last updated

When Vicidial calls fail, the SIP response code tells you why. Your carrier answers every call attempt with a code: 401/407 means it wants authentication, 403 means it refused you (IP not allowed or caller ID not authorized), 404/484 means the number format is wrong, 480/486/603 are usually normal no-answer, busy or decline outcomes, 488 is a codec mismatch, 503 means no capacity or you hit a channel or CPS limit, and 408 means nobody answered the INVITE at all. Find the code in the Asterisk CLI, sngrep or the Vicidial carrier log, then fix the setting behind it.

Where to See Why a Call Failed

Three places tell the story. On a stubborn problem, use all three.

The Asterisk CLI

Connect to the running Asterisk on your dialer server with asterisk -rvvv and place a test call. With chan_sip you'll see lines like these:

-- Got SIP response 403 "Forbidden" back from 203.0.113.10:5060
== Everyone is busy/congested at this time (1:0/0/1)

The first line is the carrier's answer. The second is the Dial application giving up. For the full SIP conversation, turn on sip set debug ip 203.0.113.10 (chan_sip) or pjsip set logger on (PJSIP). Turn it off when you're done: debug gets noisy fast.

sngrep

sngrep draws SIP as a ladder diagram. Run sngrep port 5060, place the call, select it and press Enter. You'll see the INVITE go out and the final response come back. If you only see INVITE retransmissions with no reply, skip to the 408 section.

The Vicidial Carrier Log

Turn on Carrier Logging Active in Admin > System Settings, then use the Carrier Log Report under Reports. It lists dial status, hangup cause and SIP hangup cause per call, so you see patterns across a campaign, not just one call. Turning on Enhanced Disconnect Logging in the same System Settings page lets Vicidial use the carrier's SIP codes to mark disconnected numbers, as long as your carrier sends the right codes.

SIP Codes and Hangup Causes at a Glance

Asterisk turns each SIP code into a Q.850 hangup cause, which is what shows up in logs and CDRs:

SIP response Usual Q.850 cause Normal outcome or something to fix?
200 OK, then BYE 16 Normal clearing Normal: the call connected and ended
486 Busy Here 17 User busy Normal
408 Request Timeout 18 No user responding Fix: network or reachability
480 Temporarily Unavailable 19 No answer Usually normal
403 Forbidden / 603 Decline 21 Call rejected 403: fix. 603: usually normal, watch patterns
404 Not Found / 484 Address Incomplete 1 Unallocated / 28 Invalid number format Fix: number format
503 Service Unavailable 34 No circuit/channel available Fix: capacity or limits
500 Server Internal Error 38 Network out of order Carrier side: send them the details
488 Not Acceptable Here 58 Bearer capability not available Fix: codecs

Mappings vary a little by Asterisk version and channel driver, so read the actual SIP response when you can.

401/407: Authentication Challenges

A 401 Unauthorized or 407 Proxy Authentication Required on the first INVITE isn't an error: the carrier is asking for credentials. Asterisk should answer with a second INVITE carrying an Authorization header, then get a 100 Trying. Trouble starts when the challenge repeats or ends in a 403. Check:

  • The username, secret and fromuser in your carrier's Account Entry match what the carrier gave you.
  • You're using the right method. If the carrier uses IP authentication, it shouldn't challenge at all, and a 401 means it doesn't recognize your server's IP.

403 Forbidden: Your Carrier Is Saying No

A 403 means the carrier understood the call and refused it. On a SIP trunk, the usual reasons are:

  • Your IP isn't allowed. The call left from an IP your carrier hasn't whitelisted. Common after a server move or a cloud IP change.
  • Your caller ID isn't authorized. Many US carriers only accept caller IDs you own or are authorized to use. Send them in the format your carrier wants, usually 10 digits or 11 digits with a leading 1.
  • Account or permission limits. The destination type isn't enabled on your account, or the account is restricted.

Start with the IP: compare the source IP in sngrep with the one on file at your carrier. If you're setting up a new trunk, our Vicidial SIP trunk setup guide walks through Account Entry, globals and dialplan.

404/484: The Number Format Is Wrong

404 Not Found and 484 Address Incomplete almost always mean your dialplan sent the number in a shape the carrier doesn't accept. Vicidial adds the campaign's Dial Prefix (9 by default) in front of the number, and your carrier dialplan strips it off with ${EXTEN:n}:

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(SIP/${EXTEN:1}@mycarrier,,tTo)
exten => _91NXXNXXXXXX,3,Hangup()

${EXTEN:1} drops the 9 and sends 11 digits (1 plus the 10-digit number). ${EXTEN:2} drops 91 and sends 10 digits. If your carrier wants a tech prefix, it goes in front: SIP/1234${EXTEN:2}@mycarrier. Check the INVITE in sngrep: the Request-URI shows exactly what you sent. Match it to your carrier's required format.

480/486/603: Normal Outcomes vs Real Failures

Not every failure is yours to fix. A 486 Busy Here is a busy line. A 480 Temporarily Unavailable usually means the phone is off or out of coverage. A 603 Decline usually means the called party rejected the call. Vicidial records these as normal dial outcomes, like B (busy) and NA (no answer).

Watch for pattern shifts. A sudden wave of 480s or 603s, or any 607 Unwanted or 608 Rejected, can mean calls are being blocked as unwanted. Check your caller IDs with our free spam number checker and read what STIR/SHAKEN does and doesn't do for spam labels. Don't respond by constantly switching to fresh caller IDs: use stable, authorized numbers and fix the cause.

A quick compliance note (general information, not legal advice). A clean SIP response doesn't mean a call is allowed. In the US, the TCPA and the Telemarketing Sales Rule apply to every campaign. Get prior express consent where the law requires it, and prior express written consent for autodialed or prerecorded telemarketing calls to mobile numbers. Scrub lists against the National Do Not Call Registry, your internal do-not-call list and any state lists that apply, honor opt-outs, and respect calling hours. Check with counsel for your specific campaigns.

To see how these outcomes show up in route reports, read ASR and ACD for call centers.

503 and Timeouts: Capacity and Concurrency Limits

503 Service Unavailable

A 503 means the far end can't take the call right now. On a dialer, you usually hit a limit: too many concurrent channels, or too many new calls per second (CPS). Channels and CPS are different limits. Channels count calls up at the same time. CPS counts how many new call attempts you start each second. A predictive campaign with a high dial level can stay under its channel limit and still trip a CPS limit when it launches a burst of calls at once.

The fix is to size both. Work out how many lines your agents and dial level actually need with our free SIP trunk CPS & channel calculator, then compare that with your carrier's limits. On the Vicidial side, Max VICIDIAL Trunks in Admin > Servers caps outbound lines per server, and a lower dial level smooths out bursts. Some carriers send 403 or 486 instead of 503 when you go over a limit, so check their docs.

Asterisk can also fail the call itself: if sip show peers (or pjsip show endpoints) shows your carrier UNREACHABLE, it won't even try.

408 Request Timeout

A 408 or a chan_sip warning like Retransmission timeout reached on transmission means your INVITE got no answer. Check the carrier's IP and port in Account Entry, your firewall rules for UDP 5060 in both directions, and SIP ALG on your router (turn it off). INVITEs leaving with nothing coming back means a network path problem, not a dialplan one.

488 Not Acceptable Here: Codec Mismatch

A 488 means the carrier didn't accept anything in your SDP, usually the codecs. For US calls, offer ulaw first: disallow=all then allow=ulaw in your carrier's Account Entry (or the PJSIP endpoint). If the call connects but audio is missing, that's a different problem: see our Vicidial one-way audio fix guide.

Build a Quick Test Call Routine

When a trunk acts up, run the same five steps every time:

  1. Check the peer: sip show peer mycarrier or pjsip show endpoint mycarrier should show it reachable.
  2. Start sngrep on the dialer server.
  3. Manually dial a phone you own from an agent screen.
  4. Read the final SIP response and the hangup cause in the Carrier Log Report.
  5. If it's on the carrier side, send them the Call-ID, timestamp with time zone, dialed number, caller ID and SIP code. That turns "calls are failing" into a ticket they can fix.

Vicidial Failed Calls FAQ

Why do my Vicidial calls fail with "Everyone is busy/congested"?

That's the Dial application saying the outbound channel failed, not the cause itself. Look at the SIP response just above it in the CLI, or the hangup cause in the Carrier Log Report.

What does SIP 403 Forbidden mean in Vicidial?

The carrier refused the call. Check that your server's public IP is whitelisted with the carrier, that your credentials are right if you register, and that your caller ID is one you own or are authorized to use, in the format the carrier expects.

What causes 503 Service Unavailable on outbound calls?

Usually a capacity limit (too many concurrent channels or calls per second) or a carrier route that's down. Size channels and CPS for your dial level and check the peer is reachable.

Is hangup cause 16 an error?

No. Cause 16 is normal clearing: the call connected and someone hung up. Hunt real failures in causes like 21, 34 and 38.

Helpful tools: check your caller IDs with our free spam number checker, size your trunk with the CPS & channel calculator, and estimate your monthly US minutes with our free VoIP cost calculator.

Skip the SIP Code Detective Work

Prefer campaigns over packet captures? Our hosted Vicidial dialer comes with the server and carrier connection set up for you, running on our SIP trunking for call centers: Tier-1 US routes, US DIDs, 99.99% uptime, STIR/SHAKEN-ready caller ID that helps authenticate your calls, and support Monday to Friday, 9am ET to 9pm PT. Tell us about your campaigns and request a quote. 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