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

503 5xx Server error RFC 3261

SIP 503 Service Unavailable

The server is temporarily overloaded or under maintenance. It may include Retry-After. Many PBXs also send 503 when no outbound route or trunk is available.

Class5xx Server error
TypeFinal response
Defined inRFC 3261
Typical Q.850 cause41: Temporary failure

503 Service Unavailable says the server is up and answering but cannot handle the request right now. In RFC terms that means overload or maintenance, optionally with a Retry-After header saying when to come back. In real networks it has a broader meaning: PBXs and proxies send it when no trunk or gateway is available, carriers send it when capacity or a route is down, and SBCs send it when a rate or call limit is reached.

That makes 503 one of the most useful codes for routing. A client or proxy that receives 503 is expected to try another server, such as the next DNS SRV target or the next gateway in a list, so a well-designed setup fails over and the caller never notices.

When there is nowhere left to try, the caller hears a fast busy or an "all circuits are busy" style announcement. For phones, a 503 to REGISTER means the registrar is refusing work, often during a restart or overload.

What it looks like in a SIP trace

PBX       -> Carrier A : INVITE sip:+27215550123@sip.example.net SIP/2.0
Carrier A -> PBX       : SIP/2.0 503 Service Unavailable
   Via: SIP/2.0/UDP 198.51.100.20:5060;branch=z9hG4bK0c7d3e
   Call-ID: 5e0b7d21@198.51.100.20
   CSeq: 101 INVITE
   Retry-After: 120
   Reason: Q.850;cause=34;text="No circuit/channel available"
PBX       -> Carrier A : ACK sip:+27215550123@sip.example.net SIP/2.0
PBX       -> Carrier B : INVITE sip:+27215550123@sip2.example.net SIP/2.0  (next trunk in route)
Carrier B -> PBX       : SIP/2.0 100 Trying
Carrier B -> PBX       : SIP/2.0 180 Ringing

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

Common causes

  • No working outbound trunk or route (Asterisk: dial failed / congestion).
  • Trunk channel limit reached, or carrier overloaded.
  • Proxy has no healthy destination (dispatcher or drouting all down).

How to diagnose it

  1. Find the hop that generated the 503. A 503 from your own PBX means it had no usable trunk or route; one from the carrier or an upstream proxy means their side refused the call.
  2. Read Retry-After and any Reason header. Q.850 cause 34 (no circuit available) points at capacity, while the reason phrase may mention maintenance, rate limits or account status.
  3. Check trunk health on your PBX: is it registered, does it answer OPTIONS, and how many calls are active compared with the channel limit?
  4. Check call rate as well as concurrent calls. Many carriers and SBCs limit calls per second, so bursts from diallers or failover storms can trigger 503 while concurrency is low.
  5. Test failover. Confirm that your PBX or proxy tries the next trunk or SRV target on 503 instead of failing the call, and that a dead gateway is skipped for a while rather than tried on every call.

How to fix it

  1. Check trunk registration and status on your PBX.
  2. Check carrier capacity, channel limits and account status.
  3. In OpenSIPS or Kamailio, check the dispatcher or gateway probing state.

Platform notes

Asterisk / FreePBX

Asterisk typically answers the caller with 503 when Dial ends in congestion or an unavailable channel, for example when every trunk in an outbound route failed. Check pjsip show registrations and pjsip show contacts, the trunk order in Connectivity > Outbound Routes, and each trunk's Maximum Channels. Recent versions may also reject new requests with 503 while internal task queues are overloaded, logged as task processor warnings.

OpenSIPS / Kamailio

Proxies send 503 when the script finds no usable destination or a limit is hit, so search the config for the reason phrase. Check gateway state with opensips-cli -x mi ds_list, opensips-cli -x mi dr_gw_status or kamcmd dispatcher.list, and make sure OPTIONS probing marks dead gateways inactive. Ratelimit rules are a common source of 503 under load.

SIP 503 FAQ

What does 503 Service Unavailable mean on a SIP trunk?

Usually the trunk has no capacity or route for the call right now: channel limit reached, carrier gateway down, an account problem or maintenance. From your own PBX it means none of your trunks could take the call.

Should my PBX retry after a 503?

It should try a different trunk or server straight away, and return to the same one only after any Retry-After period. Immediate retries add load to a system that is already refusing work.

What is the difference between 503 and 408?

A 503 is an answer: the server is reachable but refusing. 408 means no answer came at all, which points to network or reachability problems.

Related guides

← Back to all SIP response codes