SIP Response Codes for Voice AI: What Each One Means and What to Check First
SIP Response Codes for Voice AI: What Each One Means and What to Check First
The problem
An AI phone agent fails in one of a few ways: the call never connects, it connects with no audio, it drops after half a minute, or the other side rejects it. On the wire, almost every one of these failures leaves a three-digit number behind: a SIP response code. Your provider's dashboard shows it, your logs show it, and frameworks such as LiveKit turn it into an error string.
The trouble is that the code tells you what the far end said, not what you did wrong. A 403 from a SIP trunk can mean your server's IP is not on the allow-list, the caller ID is not yours, or calls to that country are switched off. A 200 OK on an outbound call might be a person or a voicemail box. This page is the reference the rest of this series links to: every code you are likely to see, what the standard says it means, what usually causes it when a SIP trunk meets an AI agent, and the first thing worth checking.
The chart below shows the codes you will meet most often. The tables underneath cover more of them, with the full reasoning.

This is part 2 of the Voice AI over SIP series. If a term is new to you, the glossary defines it in plain language and links to the part that covers it.
How to read a SIP response
SIP (Session Initiation Protocol, RFC 3261) sets up, changes and ends calls. One side sends a request such as INVITE ("I want to start a call"), and the other side answers with one or more responses. Each response has a three-digit code and a short reason phrase, for example SIP/2.0 486 Busy Here. The reason phrase is for humans; software must act on the number. RFC 3261 also says that a client which sees a code it does not know should treat it like the x00 code of the same class, so an unknown 4xx code is handled as 400.
The first digit is the class:
| Class | Name | What it tells you |
|---|---|---|
| 1xx | Provisional | The request is in progress. Not a final answer. |
| 2xx | Success | The request worked. For INVITE, the call is answered. |
| 3xx | Redirection | Try a different address, given in the Contact header. |
| 4xx | Client failure | This server refuses this request as sent. Change something before retrying. |
| 5xx | Server failure | The server failed on a request that may have been fine. Retry later or elsewhere. |
| 6xx | Global failure | Nobody will accept this. Do not try other servers. |
The difference between 4xx, 5xx and 6xx matters for retry logic. RFC 3261 says a client should not retry a 4xx request unchanged (for example, add credentials after a 401). A 5xx means the server itself had trouble, and a 503 explicitly invites you to try another server. A 6xx is final for every location, so a well-behaved system does not keep hunting for another route.
Where codes come from in a voice AI call
A typical call to an AI agent crosses several SIP hops: the mobile network, the carrier, your SIP trunk provider, sometimes your own PBX or session border controller (Asterisk, FreeSWITCH, a cloud SBC), and finally the media bridge that feeds audio to the agent (LiveKit SIP, Pipecat with a telephony transport, or your own code). Any hop can generate a response. So the first question for every failure is not "what does 486 mean" but "who sent the 486".
The answer is in the response itself. Look at the Via, Server or User-Agent headers, compare the source IP with your provider's documented signalling addresses, and check whether your own logs show the request leaving. A 486 generated by your own agent platform (LiveKit's troubleshooting guide notes that an inbound 486 can mean the agent or room declined the call) needs a different fix from a 486 that came back from a busy mobile phone.
Two more general rules help:
- Provisional responses can be missing and still be fine, except 100. If you never see 100 Trying, the INVITE most likely never reached the next hop. That points to the network: firewall rules, the wrong port or transport, or DNS.
- Media problems do not produce SIP codes. One-way audio, silence and static happen after 200 OK. SIP says the call is up; RTP (the audio stream) is the part that broke. For those, see the media section of the Asterisk reference chart and the reliability part of this series.
The full reference table
"Defined in" names the RFC that registers the code in the IANA SIP Parameters registry. "Usual cause" is the most common reason in SIP trunk and voice AI setups, not the only one.
1xx Provisional: call is in progress
| Code | Name | Defined in | What it means | Usual cause in voice AI and trunk setups | First thing to check |
|---|---|---|---|---|---|
| 100 | Trying | RFC 3261 | The next hop received the request and is working on it. It stops INVITE retransmissions. | Seen on almost every call. Its absence is the clue. | No 100 at all usually means the INVITE never arrived: check firewall, DNS, port and transport (UDP, TCP, TLS). |
| 180 | Ringing | RFC 3261 | The callee's device is alerting. The caller may play local ringback. | Outbound call is ringing a real phone. | Long ringing followed by 408 or 480 means no answer: check your ring timeout. |
| 181 | Call Is Being Forwarded | RFC 3261 | The call is being forwarded to another destination. | Callee has call forwarding on. | Informational. No action unless the forwarded leg fails. |
| 182 | Queued | RFC 3261 | The callee is unavailable and the call has been queued. | Rare on trunks. | Informational. |
| 183 | Session Progress | RFC 3261 | Call progress not otherwise classified. Often carries SDP for early media. | Carrier ringback or recorded announcements (number unreachable, switched off) played before answer. | Check whether the 183 carries SDP. Do not start the agent or answering-machine logic on early media. |
| 199 | Early Dialog Terminated | RFC 6228 | One forked early dialog ended before a final response. | Forking setups only. | Informational. |
2xx Success: request worked
| Code | Name | Defined in | What it means | Usual cause in voice AI and trunk setups | First thing to check |
|---|---|---|---|---|---|
| 200 | OK | RFC 3261 | Success. For INVITE, the call is answered and the caller must send ACK. | Answered call. A voicemail box also answers with 200 OK, so 200 does not mean a human picked up. | If the call drops about 32 s after 200 OK, the ACK never arrived (RFC 3261 gives up after 64 x T1). Check NAT and Record-Route. |
| 202 | Accepted | RFC 6665 (deprecated) | Request accepted for processing. Deprecated by RFC 6665; older stacks still send it for REFER. | Reply to a REFER (call transfer) from older equipment. | The transfer result comes later in NOTIFY with a sipfrag body. Read that, not the 202. |
| 204 | No Notification | RFC 5839 | Subscription accepted but no NOTIFY will follow. | Presence and subscription traffic, not calls. | Informational. |
3xx Redirection: try somewhere else
| Code | Name | Defined in | What it means | Usual cause in voice AI and trunk setups | First thing to check |
|---|---|---|---|---|---|
| 300 | Multiple Choices | RFC 3261 | Several possible locations, listed in Contact. | Rare on trunks. | Check whether your stack follows redirects or treats them as failure. |
| 301 | Moved Permanently | RFC 3261 | The user is no longer at this address; use the Contact. | Number ported or re-homed at a PBX. | Check redirect handling (Asterisk: redirect_method on the endpoint). |
| 302 | Moved Temporarily | RFC 3261 | Retry at the address in Contact. | Call forwarding done by redirect instead of by the network. | Check redirect handling and that the new target is reachable through your trunk. |
| 305 | Use Proxy | RFC 3261 | The resource must be reached through the proxy in Contact. | Rare. | Check outbound proxy settings. |
| 380 | Alternative Service | RFC 3261 | The call failed but alternatives are possible. | Rare. | Read the message body for the alternative. |
4xx Client failure: fix the request, then retry
| Code | Name | Defined in | What it means | Usual cause in voice AI and trunk setups | First thing to check |
|---|---|---|---|---|---|
| 400 | Bad Request | RFC 3261 | Malformed syntax. | Headers your code adds: custom X- headers, bad From or To, numbers with spaces or dashes. | Diff the INVITE against a working one. Check E.164 formatting and custom headers. |
| 401 | Unauthorized | RFC 3261 | Digest authentication challenge from a user agent or registrar. | Normal first reply on a credential-based trunk. The client should resend with credentials. | A second 401 after credentials means wrong username, password or realm. |
| 402 | Payment Required | RFC 3261 | Reserved for future use in RFC 3261. | If a provider sends it, read that provider's docs. | Check account balance and provider documentation. |
| 403 | Forbidden | RFC 3261 | Understood but refused. Authorization will not help; do not repeat. | IP not on the trunk allow-list, caller ID not owned or not allowed, destination country disabled, or a region rule on the provider. | Check source IP allow-list, caller ID ownership, enabled destinations and trunk region. |
| 404 | Not Found | RFC 3261 | The user does not exist at this domain, or the domain is not handled. | Wrong number format, DID not routed to your trunk or agent, or a wrong trunk ID in your API call. | Check E.164 format and the DID's routing on the provider and in your dispatch rules. |
| 405 | Method Not Allowed | RFC 3261 | The method is known but not allowed here. Allow header lists what is. | REFER, INFO or UPDATE disabled on the far end. | Read the Allow header. Use a method the far end supports. |
| 406 | Not Acceptable | RFC 3261 | Response content would not match the Accept header. | Rare. | Check Accept headers. |
| 407 | Proxy Authentication Required | RFC 3261 | Like 401 but from a proxy, answered with Proxy-Authorization. | Normal first reply from many trunk proxies and gateways. | A repeated 407 means wrong credentials. In Asterisk check outbound_auth on the endpoint. |
| 408 | Request Timeout | RFC 3261 | No final response in time. May retry later. | Outbound no answer before the ring timeout, an unreachable next hop, or a transfer target that never answered. | Check ring timeout, reachability of the next hop, and whether the request left your box. |
| 410 | Gone | RFC 3261 | The user existed but is no longer available here. | Disconnected number. | Remove the number from your call list. |
| 413 | Request Entity Too Large | RFC 3261 | The request body is larger than the server will accept. | Large SDP with many codecs or candidates. | Trim the codec list. Consider TCP for big messages. |
| 414 | Request-URI Too Long | RFC 3261 | The Request-URI is too long. | Rare. | Check generated URIs. |
| 415 | Unsupported Media Type | RFC 3261 | The body type is not supported. | SIP INFO with a body type the far end does not accept, or no SDP support. | Check Content-Type. For DTMF prefer RFC 4733 events over SIP INFO. |
| 416 | Unsupported URI Scheme | RFC 3261 | The URI scheme (for example tel: or sips:) is not supported. | Sending sips: or tel: to a trunk that wants sip:. | Check the scheme in the Request-URI. |
| 420 | Bad Extension | RFC 3261 | A Require header lists an extension the server does not support. | Your side requires 100rel or session timers and the far end does not. | Read the Unsupported header. Relax the Require (Asterisk: 100rel, timers). |
| 421 | Extension Required | RFC 3261 | The server needs an extension that the request did not list. | Far end wants 100rel or timers support. | Read the Require header in the response and enable that extension. |
| 422 | Session Interval Too Small | RFC 4028 | Session-Expires is below the server's minimum (Min-SE). | Session timer mismatch with the trunk. | Raise Session-Expires to at least the Min-SE value in the response. |
| 423 | Interval Too Brief | RFC 3261 | The expiry requested (for example in REGISTER) is too short. | REGISTER with too short an expires value. | Use at least the Min-Expires value in the response. |
| 428 | Use Identity Header | RFC 8224 | An Identity header (signed caller ID) is required. | Calling networks that enforce signed caller ID (STIR/SHAKEN in the US). | Ask the provider to sign your calls or use one that does. |
| 433 | Anonymity Disallowed | RFC 5079 | The callee rejects anonymous calls. | Outbound call with caller ID withheld. | Send a valid, allowed caller ID. |
| 436 | Bad Identity Info | RFC 8224 | The Identity header's info could not be used. | Signed caller ID problem. | Escalate to the provider. |
| 438 | Invalid Identity Header | RFC 8224 | The Identity signature did not verify. | Signed caller ID problem. | Escalate to the provider. |
| 480 | Temporarily Unavailable | RFC 3261 | Callee reached but unavailable (not registered, do not disturb). May carry Retry-After. | Phone off or out of coverage on outbound; on inbound, your endpoint or agent is not registered or not running. | Outbound: retry later within your calling rules. Inbound: check registration and that the agent worker is up. |
| 481 | Call/Transaction Does Not Exist | RFC 3261 | The request matches no existing dialog or transaction. | BYE or re-INVITE after the other side already ended the call, or a Contact rewritten wrongly by NAT. | Compare Call-ID and tags with the original dialog. Check Contact and Record-Route through NAT. |
| 482 | Loop Detected | RFC 3261 | The request came back to a server that already handled it. | Dialplan or trunk routing that sends the call back to itself. | Trace the route. Fix the dialplan context or trunk that forwards back. |
| 483 | Too Many Hops | RFC 3261 | Max-Forwards reached zero. | Same as a loop, or a very long proxy chain. | Trace the route for loops. |
| 484 | Address Incomplete | RFC 3261 | The Request-URI is incomplete. | Missing country code or digits. | Check number length and prefix. Send full E.164. |
| 485 | Ambiguous | RFC 3261 | The Request-URI matched several users. | Rare. | Send a more specific address. |
| 486 | Busy Here | RFC 3261 | Callee is not willing or able to take the call at this end system. May carry Retry-After. | Outbound: line busy. Inbound on some voice AI platforms: the agent or room declined the call. | Outbound: retry policy. Inbound: check the agent worker is running and the dispatch rule matches. |
| 487 | Request Terminated | RFC 3261 | The INVITE was ended by CANCEL or BYE before a final answer. | Caller hung up while ringing, or your own code cancelled at the ring timeout. | Usually normal. Check which side sent CANCEL. |
| 488 | Not Acceptable Here | RFC 3261 | The session description is not acceptable at this resource. May include SDP of capabilities. | No common codec, or SRTP required on one side and off on the other. | Compare codec lists (Asterisk allow=) and encryption settings. Read the m= and a= lines. |
| 489 | Bad Event | RFC 6665 | The event package in SUBSCRIBE or NOTIFY is not understood. | Subscriptions used around transfers or presence. | Check the Event header. |
| 491 | Request Pending | RFC 3261 | Another request is pending in the same dialog (glare). | Two re-INVITEs at once: hold, session refresh or media changes. | Retry after a random delay as RFC 3261 section 14.1 describes. |
| 493 | Undecipherable | RFC 3261 | The body was encrypted with a key the server does not have. | Rare. | Check S/MIME settings. |
| 494 | Security Agreement Required | RFC 3329 | A security mechanism agreement is required. | Rare on trunks. | Check Security-Client headers. |
5xx Server failure: far end failed, retry or fail over
| Code | Name | Defined in | What it means | Usual cause in voice AI and trunk setups | First thing to check |
|---|---|---|---|---|---|
| 500 | Server Internal Error | RFC 3261 | Generic server error. The client may retry after several seconds. | Bug or crash on the far end, sometimes triggered by an unusual request. | Check the provider status page and retry later. Test with a minimal INVITE. |
| 501 | Not Implemented | RFC 3261 | The server does not support the method. | REFER or UPDATE not supported by the trunk. | Check the provider supports the method. For transfers, ask if REFER must be enabled. |
| 502 | Bad Gateway | RFC 3261 | A gateway or proxy got an invalid response downstream. | Problem on the carrier route past your provider. | Retry on another route or trunk. Report the Call-ID to the provider. |
| 503 | Service Unavailable | RFC 3261 | Temporary overload or maintenance. Without Retry-After treat as 500. Try another server. | Provider overload or maintenance, or limits on your account. | Check channel and calls-per-second limits on your plan and the Retry-After header. Fail over to a second trunk. |
| 504 | Server Time-out | RFC 3261 | No timely response from an external server (another proxy or DNS). | DNS or upstream timeout inside the provider. | Check the provider status. Retry on another server. |
| 505 | Version Not Supported | RFC 3261 | SIP version not supported. | Malformed traffic. | Check the request line. |
| 513 | Message Too Large | RFC 3261 | The message is larger than the server can process. | Oversized INVITE, often a sign of UDP fragmentation. | Trim headers and codecs, or move signalling to TCP or TLS. |
| 555 | Push Notification Service Not Supported | RFC 8599 | The push service named is not supported. | Mobile SIP clients only. | Not relevant to trunks. |
| 580 | Precondition Failure | RFC 3312 | A required precondition (for example QoS) could not be met. | Rare on trunks. | Check precondition headers. |
6xx Global failure: do not try anywhere else
| Code | Name | Defined in | What it means | Usual cause in voice AI and trunk setups | First thing to check |
|---|---|---|---|---|---|
| 600 | Busy Everywhere | RFC 3261 | Busy, and no other end system will answer. | Callee busy on all devices. | Retry later within your calling rules. |
| 603 | Decline | RFC 3261 | The callee explicitly declined. | Person pressed reject, or a network element refused the call. | Read any Reason header. Do not redial at once. |
| 604 | Does Not Exist Anywhere | RFC 3261 | The user does not exist anywhere. | Invalid number. | Remove it from the call list. |
| 606 | Not Acceptable | RFC 3261 | The session description is not acceptable anywhere. May carry a Warning header. | No codec or media setup the callee can accept. | Read the Warning header. Compare codec and media settings. |
| 607 | Unwanted | RFC 8197 | The called party marked the call as unwanted. | A person flagged your outbound call as unwanted. | Stop calling that number. Review consent and calling patterns. |
| 608 | Rejected | RFC 8688 | An intermediary (often a call analytics engine) rejected the call. Call-Info may give a contact for redress. | Network-level blocking of your number, for example by spam analytics. | Read the Call-Info header for the redress contact. Check your number's reputation. |
The codes that cause most voice AI trouble
401 and 407: normal, until they repeat
Credential-based trunks challenge the first INVITE or REGISTER. A user agent or registrar sends 401 Unauthorized with a WWW-Authenticate header; a proxy sends 407 Proxy Authentication Required with a Proxy-Authenticate header. RFC 3261 uses HTTP Digest authentication for both and forbids Basic authentication. Your side should resend the request with an Authorization or Proxy-Authorization header. One challenge per call is expected. A second 401 or 407 after credentials were sent means the username, password or realm is wrong. Trunks that use IP authentication skip this step entirely and decide based on the source IP, which is why a wrong IP shows up as 403 instead.
403: the far end knows who you are and still says no
RFC 3261 says that for 403, authorization will not help and the request should not be repeated. On SIP trunks, 403 is a policy answer. The usual reasons are a source IP that is not on the trunk's allow-list, a caller ID (the From or P-Asserted-Identity number) that the account is not allowed to present, a destination country that is disabled on the account, or a regional rule. LiveKit's troubleshooting guide lists a provider message, "403 Domestic Anchored Terms Not Met", and fixes it by pinning the SIP region, for example by setting destination_country on the outbound trunk.
404 and 484: the number is wrong, or wrongly written
A 404 means the user does not exist at that domain. On a trunk this is usually a formatting issue: a missing country code, a leading zero, spaces, or a DID (the phone number you rent) that is not routed to your endpoint. LiveKit distinguishes two flavours of 404 in its guide: "object cannot be found" points at a wrong trunk ID in your API call, and "destination doesn't exist" points at the number. A 484 Address Incomplete is the same family: too few digits. Sending numbers in E.164 form (plus sign, country code, number) avoids most of these.
408, 480 and 487: nobody picked up, in three dialects
These three show up at the end of unanswered outbound calls and are easy to confuse:
- 408 Request Timeout: no final response arrived in time. On outbound calls this often means the ring timeout ran out. In LiveKit transfers, 408 means the
ringing_timeoutexpired. - 480 Temporarily Unavailable: the network reached the subscriber's system, but they are not available: phone switched off, out of coverage, or do not disturb. It may carry Retry-After.
- 487 Request Terminated: the INVITE was cancelled before an answer. If your own code sent CANCEL at your ring timeout, 487 is the expected final response, not an error.
LiveKit's outbound call documentation maps these outcomes like this:
| Outcome | SIP codes | LiveKit disconnect reason |
|---|---|---|
| Answered | 200 | call becomes active (sip.callStatus is active) |
| Rejected | 486, 603 | USER_REJECTED |
| No answer | 408, 480 | USER_UNAVAILABLE |
| Trunk failure | 5xx | SIP_TRUNK_FAILURE |
| Voicemail | 200 | none, needs answering machine detection |
The last row is the important one: a voicemail box answers with 200 OK just like a person. SIP cannot tell you who answered.
486 and 603: busy, or a refusal
486 Busy Here means the callee is busy at this end system and may carry Retry-After. 600 Busy Everywhere means no other device will take the call either. 603 Decline means the callee explicitly declined: on mobile networks that is often the person pressing reject. For an AI agent placing outbound calls, these should end the attempt and feed your retry policy, not trigger an immediate redial.
488 and 606: no shared way to carry audio
When the two sides cannot agree on media, the call fails with 488 Not Acceptable Here (only this resource refuses) or 606 Not Acceptable (refused everywhere). The two common causes are no codec in common, for example your side offers only Opus while the trunk accepts only G.711 (PCMU or PCMA), and an encryption mismatch, where one side requires SRTP and the other does not offer it. RFC 3261 allows a 488 to carry an SDP body listing what the far end does support, and 606 may carry a Warning header that explains the problem. Read those before you change anything.
503: overload, maintenance, or your own limits
RFC 3261 defines 503 Service Unavailable as temporary overload or maintenance. If the response has a Retry-After header, the client should not send to that server until the time passes; if it has none, it is treated like 500. The RFC also tells clients to try an alternate server. On a SIP trunk, a 503 can come from the provider's own trouble or from limits on your account, such as the number of simultaneous channels or calls per second. This is where a second trunk earns its cost.
481 and the 32-second drop
Two symptoms point at NAT and routing rather than at the far end:
- 481 Call/Transaction Does Not Exist on a BYE or re-INVITE means the far end has no record of that dialog. Either the call already ended on their side, or your request went to the wrong place because a Contact or Record-Route address was rewritten badly by NAT.
- Calls that drop about 32 seconds after answer usually mean the ACK never arrived. RFC 3261 has the answering side retransmit its 200 OK until it receives ACK, and give up after 64 times T1. With the default T1 of 500 ms, that is 32 seconds, after which the answering side ends the call.
607 and 608: your number is being blocked
Two newer codes deal with unwanted calls, and they matter for anyone running outbound AI calling:
- 607 Unwanted (RFC 8197, 2017): the called party marked the call as unwanted. The RFC expects future calls from the same caller to be more likely to be rejected.
- 608 Rejected (RFC 8688, 2019): an intermediary, typically a call analytics engine rather than the person, rejected the call. RFC 8688 lets the 608 carry a Call-Info header with contact details (a jCard) so that a legitimate caller can dispute a block.
If these start appearing, stop retrying those numbers and look at consent, calling patterns and the reputation of the caller ID. The India-specific rules on consent and calling are covered in India's rules for AI phone calls.
A short debugging order
When a call fails, I would check things in this order:
- Did the request leave your system? Look at your own SIP log or packet capture. If not, it is configuration on your side.
- Was there a 100 Trying? If not, it is the network path to the next hop.
- Who sent the final response? Read the headers and the source IP.
- What class is it? 4xx means change the request, 5xx means retry or fail over, 6xx means stop.
- If the call connected but sounds wrong, stop reading SIP codes and look at RTP: addresses in the SDP, open ports, codecs.
For Asterisk-specific commands to capture the SIP traffic (pjsip set logger on) and the RTP stream (rtp set debug on), see the Asterisk reference chart.
Sources
- RFC 3261: SIP, Session Initiation Protocol (sections 17, 21 and 22 on timers, response codes and authentication)
- IANA Session Initiation Protocol (SIP) Parameters registry: response codes
- RFC 8197: A SIP Response Code for Unwanted Calls (607)
- RFC 8688: A SIP Response Code for Rejected Calls (608)
- LiveKit docs: SIP troubleshooting
- LiveKit docs: Making outbound calls
