AI disclosure: this article was written with the help of AI and checked by a human before publishing.

If your app places phone calls, sooner or later a call fails and your logs show a three-digit number. SIP response codes look like HTTP status codes, and many of them mean nearly the same thing, but a few are easy to misread. These are the ones developers actually meet, and what to do about each.

How to read them

  • 1xx is progress. 100 Trying, 180 Ringing and 183 Session Progress (early media, such as a ringback tone or an announcement).
  • 2xx is success. 200 OK means the call was answered.
  • 4xx is a problem with this request: the number, the caller ID, the account.
  • 5xx is a problem on a server along the way.
  • 6xx is a global failure: the callee does not want this call anywhere.

Always log the code, the reason phrase and the Call-ID. When you open a ticket with a carrier, the Call-ID and the time in UTC are what they ask for first.

The codes you will meet

403 Forbidden. The far end refused you. On outbound calls this is usually your caller ID (a number you are not allowed to present), a destination your account is not enabled for, or an IP that is not on the trunk's allow-list. Check the caller ID first.

404 Not Found. The number does not exist as dialled. Nine times out of ten it is a formatting problem: a missing country code, a kept trunk zero, or a plus sign your trunk does not expect.

408 Request Timeout. Nobody answered at the signalling level. Often a firewall or NAT problem on your side, or a route that is down.

480 Temporarily Unavailable. The phone is off, out of coverage or not registered. Retry later, not now.

486 Busy Here. The line is busy. A real outcome, not an error. Do not retry in a tight loop.

487 Request Terminated. You (or your app) cancelled the call before it was answered. Normal when a user hangs up while it rings.

488 Not Acceptable Here. No codec in common. Offer G.711 (PCMU or PCMA) as a fallback and the call usually connects.

503 Service Unavailable. A server on the route is overloaded or the route is down. This one is worth a retry on a different route, if you have one.

603 Decline. The callee rejected the call, or a spam filter did it for them. Do not retry. Look at your caller ID reputation instead.

A retry policy that will not get you blocked

  • Retry 503 and 408 once, after a short pause, ideally on another route.
  • Retry 480 and 486 later, minutes not seconds, and cap the attempts.
  • Never retry 403, 404, 488 or 603 without changing something first.
  • Count failures per destination prefix. A sudden rise in one country is a route problem, not your code.

Try it yourself

To watch real call outcomes, sign up and run the make-call example. It prints the outcome, the duration and the cost of each call.

The code is open on GitHub:

Which SIP code has cost you the most debugging time?