The desk phone shows a red icon, or the softphone says it is offline, and the device's status page offers nothing more than sip registration failed. Calls do not come in. Rebooting the phone changes nothing, or fixes it for an hour. Before changing anything, find the SIP response the server sent back to the phone's REGISTER request. That one three-digit code narrows the problem to credentials, policy, the account address, the network path or a timer.

If the phone keeps a SIP log or shows the last response on its status page, start there; otherwise a packet capture on the phone's switch port shows it plainly. The codes below are defined in RFC 3261, the core SIP specification, and the checks for each follow from what that specification says the registrar does.

What is the phone actually doing when it registers?

Registration is how the phone tells its provider where to send calls. RFC 3261 describes registration as one way a server learns the current location of a user. The phone sends a REGISTER with its contact address and a requested lifetime, either in an Expires header or an expires parameter on the Contact. Under section 10.2.1.1, the registrar selects the actual time interval based on its local policy, may choose a shorter interval than requested, and must return the chosen value in an expires parameter on each Contact in the 200 OK.

Section 10.2.4 puts the burden on the phone: each user agent is responsible for refreshing the bindings it has. If refreshes stop arriving, the binding lapses and inbound calls stop, even though the phone may still look fine until it next tries.

Is a 401 Unauthorized a problem?

One 401 is not. It is how SIP authentication starts. RFC 3261 defines 401 as the request requires user authentication, and section 22.2 says that when a client receives a 401, it should re-originate the request with the proper credentials, incrementing the CSeq. A healthy trace shows REGISTER, 401 with a challenge, REGISTER again with an Authorization header, then 200 OK. Twilio's support article on regional SIP domains describes a fixed domain as one that returns a 401 authentication challenge, which is exactly the expected first answer.

A 401 to the second REGISTER, the one carrying credentials, is the problem. RFC 3261 section 22.1 says that when credentials are rejected, a server may repeat its challenge, or it may respond with a 403 Forbidden, and that a client must not re-attempt requests with the credentials that have just been rejected. A phone stuck in a 401 loop is sending the wrong username, password or realm.

What to check:

  • The authentication username, not just the extension. Many devices separate the SIP user ID from the auth ID. On a Grandstream HT80x, Authenticate ID identifies the account for authentication and can match or differ from the SIP User ID. If the provider issues a separate auth username, it goes there.
  • Exact match. Twilio's registration documentation states that the username configured in the endpoint must exactly match a username in a credential list. Case, trailing spaces and pasted characters all count.
  • The realm. Section 22.1 says the realm string alone defines the protection domain. Credentials from one provider or tenant are not valid in another's realm.

What does 403 Forbidden mean for a REGISTER?

RFC 3261 defines 403 as a request the server understood but is refusing to fulfill, adding that authorization will not help and the request should not be repeated. For a registrar, section 10.3 says it must return a 403 when the authenticated user is not authorized to modify the registrations for that address of record. As above, a server may also answer rejected credentials with 403 instead of a second 401.

So a 403 is policy, not a typo you can retry through. Check, in this order:

  • Source IP restrictions. Many providers allow traffic only from listed addresses. Twilio's SIP security page says that once endpoint IPs are added to an access control list mapped to a domain, only those IPs can connect, and all other traffic is blocked. A new office, a failover WAN link or a changed public IP falls outside the list.
  • The account or domain itself. Twilio documents a case where REGISTER requests to regional SIP domains were blocked with 403 before authentication because the domain's inbound processing region was not set to match. The fix was a provider-side setting, not a phone setting.
  • The credentials, if the 403 follows a challenge. Treat it like a repeated 401.

404 Not Found: is the account address wrong?

RFC 3261 defines 404 as the server having definitive information that the user does not exist at the domain in the Request-URI. Section 10.3 has the registrar send a 404 when the address of record is not valid for its domain. The usual causes are a mistyped user ID, a SIP domain field filled with an IP address where the provider expects its domain name, or an account deprovisioned during a migration.

408 Request Timeout and 503 Service Unavailable: is it the path?

These two often never come from the server. Section 8.1.3.1 of RFC 3261 says that when a client transaction times out, it must be treated as if a 408 had been received, and that a transport error must be treated as a 503. A phone that shows 408 may simply have heard nothing back. For a non-INVITE request such as REGISTER, section 17.1.2.2 sets Timer F to 64*T1, and the default T1 is 500 ms, so the phone gives up after 32 seconds of silence.

A real 503 from the server means temporary overload or maintenance. RFC 3261 says the server may indicate when to retry in a Retry-After header. Read it before changing anything.

For a timeout or a locally generated 503, check the path the REGISTER takes:

  • DNS. RFC 3263 says a client with no transport or port in the URI should do a NAPTR query, then SRV queries, and only if no SRV records exist fall back to an A or AAAA lookup. If a port is specified, the client skips NAPTR and SRV and goes straight to A or AAAA. A phone set to look up a plain A record for a provider that publishes only SRV records, or the reverse, can send its REGISTER nowhere. On the HT80x, DNS Mode offers A Record (the default), SRV and NAPTR/SRV; match the provider's instructions.
  • Transport and port. RFC 3261 sets 5060 as the default for SIP over UDP or TCP and 5061 for TLS. A phone on UDP 5060 pointed at a provider that expects TLS on 5061 can time out. The HT80x SIP Transport setting defaults to UDP.
  • Outbound proxy. If the provider requires one, a blank Outbound Proxy field sends the REGISTER to the wrong place.
  • Message size. RFC 3261 section 18.1.1 says a request too large for the path must be sent over a congestion-controlled transport such as TCP. A REGISTER that grows after the challenge can fail on UDP where a smaller one succeeded.

423 Interval Too Brief: what is wrong with the timer?

RFC 3261 defines 423 as the expiration time of the resource refreshed by the request being too short. Section 10.3 says the response must contain a Min-Expires header, and section 10.2.8 says the phone may retry with an expiration at least that long.

Providers set their own floor. Twilio states that the smallest registration expiration an endpoint can use is 600 seconds and the largest it allows is 3600 seconds, and that a REGISTER below 600 fails with 423 Interval too brief. It suggests refreshing at about half the expiration, for example every 300 seconds on a 600-second registration. The HT80x default Register Expiration is 60 minutes, which is inside that range. Someone who shortened it to fix a NAT problem may have created a 423.

Why does a phone register, then drop?

This is the NAT case. RFC 5626, published in October 2009, notes that many NATs have UDP timeouts as low as 30 seconds. If the NAT mapping for the phone's flow closes between refreshes, the provider's later requests cannot reach the phone, and when the mapping changes, RFC 5626 says the user agent needs to re-register.

The answer is keepalives on the same flow. RFC 5626 describes a double-CRLF ping and single-CRLF pong for TCP and TLS, with a recommended interval between 95 and 120 seconds, and STUN keepalives for UDP at a random interval between 24 and 29 seconds. Devices often have their own version: the HT80x NAT Traversal setting defaults to No, offers Keep-alive among its options, and its Keep-alive Interval defaults to 20 seconds.

Worked example: a softphone that gets 423, then goes quiet

A 60-person firm moves remote staff to softphones on a cloud SIP platform with Twilio-style limits. The admin copies settings from an old guide that set registration expiry to 120 seconds to beat a home router's NAT timeout. Every softphone shows registration failed.

The trace shows REGISTER, 401, REGISTER with credentials, then 423 Interval Too Brief with Min-Expires: 600. Credentials are fine; the timer is not. The admin sets expiry to 600 seconds and registrations succeed.

Two days later, home users report missed inbound calls while outbound calls work. Their registrations show as current in the provider's portal. With a 600-second registration refreshed around every 300 seconds, a NAT that closes an idle UDP mapping after 30 seconds leaves the phone unreachable most of the time. The admin turns on keepalives at about 25 seconds, inside RFC 5626's UDP range, so the mapping never sits idle long enough to close. Inbound calls return, and the registration timer stays at a value the provider accepts.

Where this goes wrong

  • Treating the first 401 as the fault. It is the challenge. Look at the response to the second REGISTER.
  • Retrying a 403 harder. The specification says it should not be repeated. Something on the account or the allow list has to change.
  • Reading 408 as a server message. It usually means nothing came back. Look at DNS, transport, port and the firewall first.
  • Fixing NAT with a short expiry. It trades a NAT problem for a 423. Use keepalives instead.
  • Too many devices on one account. Twilio allows 10 active registrations per address of record and rejects the eleventh. A desk phone, softphone and mobile client per user add up.
  • Two devices refreshing each other's bindings. RFC 3261 says a user agent should not refresh bindings set up by other user agents. Cloned configurations can step on one another.

The decision rule

Get the response to the second REGISTER before touching settings. A repeated 401 means fix the auth username, password or realm. A 403 means fix policy: the source IP list or the account. A 404 means fix the user or domain. A 408 or local 503 means fix the path: DNS mode, transport, port and proxy. A 423 means raise the expiry to the Min-Expires value. And a phone that registers then goes deaf needs keepalives, not a shorter timer.