SIP response codes: a reference for call recovery

An engineer studies a request-and-response signal trace with a rejected message.
An engineer studies a request-and-response signal trace with a rejected message.

Session Initiation Protocol (SIP) response codes are three-digit replies that describe a request's progress or result. They can signal ringing, success, authentication, redirection, or failure. For developers operating voice calls, the useful distinction is what happens next: continue, correct the request, retry within limits, or stop. Read the code alongside its request method and call leg before turning it into a recovery rule.

What the six SIP response classes mean

Session Initiation Protocol (SIP) manages communication sessions. A response belongs to a particular request, such as INVITE to establish a session or BYE to end one. The first digit gives its class.

ClassMeaningOperational interpretation
1xxProvisionalProcessing continues. Progress is not an answer.
2xxSuccessfulThe particular request succeeded.
3xxRedirectionAnother location or service may satisfy the request.
4xxRequest failureThe request failed at this destination. Authentication challenges and busy outcomes also live here.
5xxServer failureA server could not fulfill the request. Some causes permit recovery; others require a change.
6xxGlobal failureThe response conveys failure beyond one destination, so ordinary alternate-location hunting should stop.

Only 1xx responses are provisional. Responses in classes 2xx through 6xx are final. A final response resolves a request; it does not necessarily end the call. For example, an unsuccessful session-change request can occur during an established conversation.

“SIP error codes” usually means the failure classes, while “SIP response codes” includes progress and success. Neither label makes every 4xx an infrastructure incident.

Common SIP codes and the next action

Use the numeric code for classification. The text after it, called the reason phrase, can vary between implementations. A carrier's diagnostic detail adds context without changing the standardized code's meaning. The SIP response specification defines that distinction.

CodeMeaningApplication response
100 TryingA next-hop server is processing the request.Keep the attempt pending. This does not prove the destination is ringing.
180 RingingThe receiving endpoint is trying to alert the user.Continue the attempt within its ringing deadline.
183 Session ProgressAdditional setup progress.Process any session description and early media. Do not mark the call answered.
200 OKThe request succeeded.Read the request method. Success for INVITE, CANCEL, and BYE means different things.
301 / 302Permanent or temporary redirection.Apply routing policy to the Contact destination. Prevent loops and unapproved destinations.
401 / 407User-agent or proxy authentication challenge.Let the SIP stack perform the authenticated request. Repeated challenges need an authentication fix.
403 ForbiddenThe server understood and refused the request.Stop unchanged retries. Investigate authorization, source-address policy, caller identity, or destination restrictions.
404 Not Found / 410 GoneUnknown user/domain, or a resource known to be permanently unavailable.Correct the target or routing data. Repeated dialing does not repair it.
408 Request TimeoutProcessing did not produce a response in time.Diagnose the path and attempt state before scheduling another call.
480 Temporarily UnavailableThe destination is currently unavailable.Record an availability outcome. A later attempt needs its own permitted schedule.
486 Busy HereThis endpoint cannot or will not accept another call now.Record busy. An already-authorized alternate destination may still be available.
487 Request TerminatedThe request was terminated, often after CANCEL.Identify who canceled and why. Do not automatically label it a carrier fault.
488 Not Acceptable HereThe proposed session is unacceptable at this destination.Inspect the session description and media requirements before repeating the offer.
500 / 502 / 504Internal server error, invalid downstream response, or downstream timeout.Preserve the failing leg and diagnostic context. Any retry needs a bounded policy.
503 Service UnavailableTemporary overload or maintenance.Respect the affected server's Retry-After, when present, and use only approved alternate routing.
600 / 603Busy everywhere or declined globally.Stop alternate-location attempts for this request. Treat later contact as a separate policy decision.
607 / 608Unwanted by the recipient, or rejected by an intermediary.Stop automatic redial. Preserve rejection information and route any remediation through the responsible owner.

For an initial INVITE, 200 OK means the session was accepted, and the SIP stack sends ACK. It does not establish that a person answered: voicemail or another automated system can accept a call. It also does not prove that two-way audio works.

Early media is media exchanged before acceptance. In voice calls, that includes audio such as announcements or ringback. It can accompany a provisional exchange without a completed call. The early media model explains this boundary. If reliable provisional responses are negotiated with 100rel, the SIP stack uses PRACK, the provisional-response acknowledgment method. This is separate from the ACK used for final INVITE responses, as defined by the provisional reliability extension.

Full SIP response code list

The Internet Assigned Numbers Authority (IANA) maintains the authoritative response code registry. These tables retain its registered names. Many extension codes apply to features other than ordinary call setup.

1xx: provisional responses

CodeRegistered name
100Trying
180Ringing
181Call Is Being Forwarded
182Queued
183Session Progress
199Early Dialog Terminated

2xx: successful responses

CodeRegistered name
200OK
202Accepted (Deprecated)
204No Notification

202 is deprecated. 204 belongs to a subscription-specific exchange; it is not a substitute for answering a phone call.

3xx: redirection responses

CodeRegistered name
300Multiple Choices
301Moved Permanently
302Moved Temporarily
305Use Proxy
380Alternative Service

4xx: request failure responses

CodeRegistered name
400Bad Request
401Unauthorized
402Payment Required
403Forbidden
404Not Found
405Method Not Allowed
406Not Acceptable
407Proxy Authentication Required
408Request Timeout
410Gone
412Conditional Request Failed
413Request Entity Too Large
414Request-URI Too Long
415Unsupported Media Type
416Unsupported URI Scheme
417Unknown Resource-Priority
420Bad Extension
421Extension Required
422Session Interval Too Small
423Interval Too Brief
424Bad Location Information
425Bad Alert Message
428Use Identity Header
429Provide Referrer Identity
430Flow Failed
433Anonymity Disallowed
436Bad Identity Info
437Unsupported Credential
438Invalid Identity Header
439First Hop Lacks Outbound Support
440Max-Breadth Exceeded
469Bad Info Package
470Consent Needed
480Temporarily Unavailable
481Call/Transaction Does Not Exist
482Loop Detected
483Too Many Hops
484Address Incomplete
485Ambiguous
486Busy Here
487Request Terminated
488Not Acceptable Here
489Bad Event
491Request Pending
493Undecipherable
494Security Agreement Required

SIP 429 means a valid referrer-identity token is required. It does not mean HTTP's “Too Many Requests.” The referrer identity mechanism defines it. 402 is reserved for future use in the base specification. The older 409 Conflict and 411 Length Required are absent from the current registry.

5xx: server failure responses

CodeRegistered name
500Server Internal Error
501Not Implemented
502Bad Gateway
503Service Unavailable
504Server Time-out
505Version Not Supported
513Message Too Large
555Push Notification Service Not Supported
580Precondition Failure

6xx: global failure responses

CodeRegistered name
600Busy Everywhere
603Decline
604Does Not Exist Anywhere
606Not Acceptable
607Unwanted
608Rejected

607 carries the recipient's unwanted-call signal. 608 identifies rejection by an intermediary, such as a call-analytics service, and provides a mechanism for reporting erroneous blocking. The rejected-call specification distinguishes them. Switching routes to evade either response is the wrong recovery policy.

Diagnose the exchange before assigning a cause

A response code is an observation at a signaling boundary. It is rarely a complete root-cause report.

Match the response to its method and leg

Record the application call identifier, SIP Call-ID, From and To tags, CSeq number and method, top Via branch, timestamp, direction, and sending endpoint.

Call-ID alone cannot distinguish every dialog created by a forked request. A SIP dialog identifier combines that value with the local and remote tags. CSeq and transaction context then separate setup, cancellation, and later session changes. A session border controller can also terminate and originate separate call legs, so an application-side code may differ from the downstream response.

Keep a compact incident record:

EvidenceQuestion it answers
Request method and sequenceWhich operation failed?
Call leg, tags, and branchWhich destination or fork produced it?
Sender and message orderWhere did the failure first become visible?
Retry-AfterDid this response specify a delay?
ContactWas an alternate destination supplied?
Warning, Reason, and response bodyIs there a more specific media or termination explanation?
Application cancellation eventDid the caller, scheduler, or another branch end the attempt?

A Reason header can contain a SIP cause or a Q.850 telephony cause. Preserve the protocol label with the number: a Q.850 cause is not a SIP status code. The Reason header definition defines that separation. The Q.850 response rules allow those telephony causes in SIP responses other than 100 Trying.

Shared traces also need redacted credentials, phone numbers, and sensitive session data.

Read cancellation as a sequence

This simplified exchange shows successful cancellation before answer:

Caller -> Peer: INVITE CSeq: 7 INVITE Peer -> Caller: 180 Ringing CSeq: 7 INVITE Caller -> Peer: CANCEL CSeq: 7 CANCEL Peer -> Caller: 200 OK CSeq: 7 CANCEL Peer -> Caller: 487 Request Terminated CSeq: 7 INVITE Caller -> Peer: ACK CSeq: 7 ACK

The 200 acknowledges CANCEL; it does not say the call was answered. The 487 resolves the original INVITE. Cancellation can also result from another fork winning or an application deadline, so a rise in 487 needs attribution rather than blanket removal from incident analysis.

There is a race: an INVITE can receive 200 OK while cancellation is in flight. The SIP stack must acknowledge that answer and terminate the unwanted established dialog with BYE. A successful CANCEL response alone does not establish that the original attempt was canceled. The cancellation race example shows why a scheduler must not launch a replacement call on that assumption.

Separate session rejection from broken audio

With 488, inspect Session Description Protocol (SDP) content: offered codecs, media profiles, encryption requirements, and any returned capability or warning detail. A codec mismatch is one possible cause; the code does not identify a codec by itself.

After a successful setup, silent or one-way audio requires media-path evidence. Repeating an answered call based only on its audio symptom can create a second live call. Real-time Transport Protocol (RTP) carries the media; our RTP packet guide explains that delivery boundary.

Turn failures into bounded recovery decisions

Keep SIP transaction retransmissions, authentication exchanges, and application-level redial separate. A SIP stack retransmission is part of the same transaction. A scheduler creating another outbound call is a new attempt with new cost and duplicate-contact risk.

A conservative application policy has four outcomes:

  1. Continue protocol processing. Provisional responses and expected authentication challenges stay with the SIP stack. They do not create new scheduled calls.
  2. Stop and correct. Malformed requests, wrong targets, policy refusals, and incompatible session offers need changed input or configuration.
  3. Retry within a budget. Eligible transient failures get a maximum attempt count, an overall deadline, paced backoff, and a permitted destination window. One logical call job owns the budget across every route.
  4. Use an approved alternate route. Redirects and server failures may justify another configured path. Route changes retain identity, destination restrictions, rejection handling, and the same attempt budget.

503 needs server-level handling. When Retry-After is present, place that server on cooldown for the specified interval rather than letting other workers immediately refill it. An approved alternate server may remain usable. When the header is absent, the server failure rules specify 500 handling; they do not supply a universal retry delay.

Add randomized backoff and shared admission limits so queued attempts do not all restart together. Excess retransmission traffic can worsen overload, a failure mode described in the SIP overload specification. Calls per second and concurrent calls are separate constraints: pacing starts does not cap the number already active.

For timeouts, distinguish an actual received 408 from a local timeout recorded by an application. A missing response does not establish what the far side did. Reconcile the prior attempt and serialize any replacement decision before redialing. Busy, declined, canceled, unwanted, and infrastructure-failed outcomes should remain separate in reporting.

Use SIP evidence in a production voice AI workflow

We help technical teams build and run production voice AI agents through a managed runtime, APIs, and a web application. SIP traces connect an application call record to its signaling exchange; they do not establish that the audio path or agent behavior was healthy.

Our SIP trace API retrieves traces using the Dasha application call ID:

GET /api/v1/calls/{callId}/sip-traces

The result contains trace groups with SIP Call-ID values and ordered messages, including timestamps, methods, status codes, source and destination addresses, transport, and raw content. Keep the application identifier and SIP identifiers distinct when correlating a failed attempt.

For outbound pacing, cpsLimit sets a trunk's calls-per-second limit, and cpsKey shares a limit across multiple credentials. These controls address call-start pressure. They do not establish a code-based retry or failover policy.

For a managed voice AI integration with your telephony setup, start with our SIP configuration guide.

Share

Subscribe

Sign up to our e-mail list to get the best of the Dasha blog sent directly to your inbox.

We use cookies for functional and analytical purposes. Please refer to our Privacy Policy for details.