Tip: type a SIP code like 488, or a problem like one-way audio. Use ↑ ↓ and Enter.

404 4xx Client error RFC 3261

SIP 404 Not Found

The server has definitive information that the user does not exist in the domain in the Request-URI.

Class4xx Client error
TypeFinal response
Defined inRFC 3261
Typical Q.850 cause1: Unallocated (unassigned) number

404 Not Found means the server responsible for the destination looked it up and found nothing. On a carrier trunk that usually means the dialled number is not in service, not allocated, or not in a format the carrier recognises. On a PBX it means no extension, inbound route or dialplan entry matches the number that arrived. Unlike 480, it suggests the target does not exist at all rather than being away.

Carriers often play an announcement such as "the number you have dialled does not exist" through early media before sending 404, so the caller hears a message rather than a tone. Internal callers usually just see the call fail.

In practice many 404s are format problems, not missing numbers. The same subscriber can be written as +27215550123, 0027215550123, 27215550123 or 0215550123, and each system along the path expects one particular form. When a number works from a mobile but returns 404 through your PBX, compare the exact digits in the Request-URI with what the next hop expects.

What it looks like in a SIP trace

Carrier -> PBX     : INVITE sip:27215550123@198.51.100.20:5060 SIP/2.0
PBX     -> Carrier : SIP/2.0 404 Not Found
   Via: SIP/2.0/UDP 203.0.113.50:5060;branch=z9hG4bK2f7e8d
   From: <sip:+27825550147@sip.example.net>;tag=88c1
   To: <sip:27215550123@198.51.100.20>;tag=5d0a2b6e-1c44
   Call-ID: 7e91c4a0@203.0.113.50
   CSeq: 1 INVITE
   Content-Length: 0
Carrier -> PBX     : ACK sip:27215550123@198.51.100.20:5060 SIP/2.0
# The inbound route on the PBX is set up for +27215550123,
# but the carrier sent the DID without the plus, so nothing matched.

Example values only. Your headers, addresses and numbers will differ.

Common causes

  • The dialled number or extension does not exist.
  • Wrong number format (missing country code or leading zero).
  • No matching route in the dialplan or routing table.
  • The extension is not registered and the server returns 404 instead of 480.

How to diagnose it

  1. Find out who sent the 404 from the Via and Server or User-Agent headers. A 404 from your own PBX is a dialplan or inbound-route problem; one from the carrier is about the number or its format.
  2. Copy the exact user part of the Request-URI and compare it, character by character, with the pattern it should match, including any +, country code or leading zero.
  3. Test the same number in another format. If +27215550123 fails but 0215550123 works (or the reverse), add number normalisation to the outbound route instead of asking users to dial differently.
  4. For inbound calls, check that the DID matches an inbound route exactly. Some carriers put the DID in the Request-URI and others only in the To header, so check which one your PBX reads.
  5. If a carrier on an authenticated trunk sends 404 without first challenging your INVITE with 407, it may not have recognised the call as yours. Check the From user and domain it expects before blaming the number.

How to fix it

  1. Check the number format the carrier expects (for example +27..., 0027... or 0...).
  2. Check inbound routes (DID) and outbound route patterns on your PBX.
  3. Verify the Request-URI domain matches what the server considers local.

Platform notes

Asterisk / FreePBX

PJSIP answers 404 when the dialled extension does not exist in the endpoint's context, and 484 when it only partially matches; confirm the context with pjsip show endpoint <name>. FreePBX normally catches unknown DIDs and plays a "not in service" style message instead, so compare DIDs with Connectivity > Inbound Routes and numbers with the dial patterns in Connectivity > Outbound Routes.

OpenSIPS / Kamailio

In the stock scripts a failed lookup("location") returns 404 even when the subscriber exists but is offline, and many deployments change that reply to 480. Check registrations with opensips-cli -x mi ul_dump or kamcmd ul.dump, and for trunks review the drouting or dialplan rules that should have matched.

SIP 404 FAQ

Does SIP 404 mean the number does not exist?

Often, but not always. It can also mean the number was sent in the wrong format, or that no route matched it on your own PBX, so check the format first.

What is the difference between 404 and 480?

404 says the target is unknown. 480 says the target exists but cannot be reached right now, such as an extension that is not registered.

Why do some valid mobile numbers return 404?

Ported numbers and new number ranges can be missing or out of date in a carrier's routing data. If one number fails while similar ones work, send the provider the Call-ID and time so they can check.

Related guides

← Back to all SIP response codes