Back to Insights
VoIP Engineering

SIP Response Codes Explained: Troubleshooting 403, 408, and 503 Errors

Telephony Engineering Team
8 min read
SIP Response Codes Explained: Troubleshooting 403, 408, and 503 Errors

Every SIP request gets a response, and the response code is the single most useful clue you have when a call fails. SIP borrows its numbering from HTTP, so if you have read web server logs, the families will feel familiar. Reading them accurately saves hours of guessing.

The Response Code Families

RangeMeaningExample
1xxProvisional: still working on it100 Trying, 180 Ringing, 183 Session Progress
2xxSuccess200 OK
3xxRedirection302 Moved Temporarily
4xxClient error: the request cannot be fulfilled as sent401, 403, 404, 408, 486
5xxServer error: the server failed to fulfill a valid request500, 503
6xxGlobal failure: the call will not succeed anywhere603 Decline

The distinction between 4xx and 5xx matters for troubleshooting. A 4xx usually means look at the request, the credentials, or the dial plan. A 5xx usually means look at the server or the next hop.

403 Forbidden

What it means: the server understood the request and refuses to fulfill it. Unlike 401, authenticating again will not help.

Common causes:

  • The source IP is not on the carrier's or SBC's allow-list
  • The account is disabled, out of balance, or blocked for the destination (for example international calls)
  • The caller ID or number format is not permitted
  • A fraud-prevention or rate-limit rule fired
  • Registration succeeded, but the account lacks permission for that route

How to troubleshoot:

  1. Confirm the public IP your traffic is coming from. NAT or a changed ISP address is a frequent culprit.
  2. Check the carrier or platform account for balance, status, and destination permissions.
  3. Compare the From, P-Asserted-Identity, and dialed number formats against what the provider requires.
  4. Review the server logs for the reason string, which is often included in the response.

408 Request Timeout

What it means: no final response arrived in time, so a transaction timed out.

Common causes:

  • The request never reached the destination: firewall, routing, or wrong port
  • The response never came back: asymmetric routing or NAT issues, which is a classic SIP ALG symptom (see SIP ALG: what it is and how to disable it)
  • The far-end server is overloaded or down
  • Transport mismatch, such as sending UDP to a TLS-only endpoint
  • MTU problems that fragment large SIP messages over UDP

How to troubleshoot:

  1. Capture on both sides and check whether the request arrived at all.
  2. Verify the transport (UDP, TCP, TLS) and port both ends expect.
  3. Look for retransmissions in the trace. Repeated identical requests indicate a lost response or a silent far end.
  4. Check NAT, firewall rules, and keep-alive settings. See NAT traversal with STUN, TURN, and ICE.
  5. Switch large messages to TCP or TLS if fragmentation is suspected.

503 Service Unavailable

What it means: the server is temporarily unable to handle the request, due to overload or maintenance. It may include a Retry-After header.

Common causes:

  • All trunks or gateways are busy or down, so the dispatcher has nowhere to send the call
  • Capacity limits reached, such as concurrent call caps or CPS (calls per second) limits
  • A downstream dependency such as a database or billing check failed
  • Health checks have marked a backend as down
  • A carrier is rejecting traffic because of congestion

How to troubleshoot:

  1. Find out which hop generated the 503, since a 503 can be passed along from further downstream. The Server and Via headers help.
  2. Check capacity: concurrent calls and calls per second against configured limits.
  3. Check dispatcher or load balancer health status and the state of each backend.
  4. Review upstream carrier status, and confirm that failover to a secondary route is configured and working.
  5. Run a load test to confirm the real limit. See SIP trunking load testing and concurrency.

Other Codes Worth Knowing

  • 401 / 407: authentication required. Normal during registration challenge, a problem only if it repeats after valid credentials.
  • 404 Not Found: the dialed number or user does not exist at that destination.
  • 486 Busy Here: the callee is busy.
  • 480 Temporarily Unavailable: the user is not currently reachable, often because they are not registered.
  • 488 Not Acceptable Here: codec or media negotiation failed. Check the SDP offered against what the far end supports.
  • 603 Decline: the callee rejected the call outright.

A General Troubleshooting Method

  1. Get a trace of the failing call. Without one you are guessing.
  2. Identify who sent the final response. The code means different things from a phone, a proxy, a carrier, or a PBX.
  3. Follow the dialog from INVITE to final response, noting timing and retransmissions.
  4. Change one variable at a time and retest.
  5. Add monitoring. Capturing SIP traces continuously, for example with HEP, makes the next failure a five-minute investigation instead of a five-hour one. See VoIP quality testing.

Chasing intermittent call failures in a production platform? Our FreeSWITCH engineering team debugs and hardens media and signaling stacks, and our Kamailio load balancing team builds routing and failover that fails over cleanly instead of returning 503s.

Discussion

0

Join the conversation

Sign in with your preferred account to comment, reply, and keep the discussion useful for other engineers.

Takes a few seconds. No separate password required.

C

Controva LLC

Engineering Team

We build digital empires that scale. Specializing in high-performance web architecture, AI automation, and headless commerce.

Work with us

Share this article