SIP 401 Unauthorized and 407: Fix Softphone Login Errors

Tom Reed · Updated 1 December 2026
A SIP 401 Unauthorized or 407 Proxy Authentication Required response means the server wants your softphone to prove who it is before it accepts a registration or call. One challenge is normal: the app replies with your credentials and carries on. If the challenge keeps coming back, the username, authentication ID, password or server details don't match.
This guide is for softphone users, IT admins and MSPs who see a 401 or 407 in a log or on a failed login. It explains why one challenge is nothing to worry about, gives an ordered fix list for when it repeats, and shows how to stop login errors happening in the first place.
What do SIP 401 Unauthorized and 407 Proxy Authentication Required mean?
Both are 4xx responses defined by the SIP standard (RFC 3261), and both use digest authentication. A SIP 401 Unauthorized comes from the registrar or the far end of the request. A SIP 407 comes from a proxy in the path. It is the same idea in both cases, and the only difference is which server is asking.
The password is never sent in plain text. The server sends a challenge, and the app answers with a response built from your credentials. That is why a challenge is a normal step in logging in and not a sign that anything is wrong.
Is a 401 or 407 an error?
Usually not. The normal flow is a short exchange:
- The app sends a request.
- The server answers 401 or 407, asking for credentials.
- The app sends the request again, this time with its credentials.
- The server answers 200 OK.
Seeing one 401 before every successful registration in a log is expected. It becomes a fault when the second attempt also gets a 401 or 407, or when the app keeps retrying and never reaches a 200.

Why does a softphone keep getting 401 or 407?
A repeated challenge nearly always means the credentials or the server details don't match. Typing is the usual cause. The table lists the common patterns.
| Symptom | Likely cause | Fix |
|---|---|---|
| Repeated 401 at registration | Wrong password or authentication ID, often the username typed where the authentication ID belongs | Re-enter the details exactly as the provider issued them; see SIP softphone account settings explained |
| Works on one device, fails on another | A typo or a stale saved password on that device | Re-provision the device rather than retyping |
| 407 on calls, but registration works | A proxy in the path needs credentials, or the outbound proxy is set wrongly | Check the outbound proxy field |
| 401 after a password change | The old credential is still saved on a device | Update or remove the old one on every device |
| Challenge does not match the account | The wrong SIP domain was entered, so the realm does not match | Use the exact domain from your provider |
| Credentials look right but still 401 | The device clock is badly wrong, or a stale challenge followed a network change | Restart the app and check the date and time (an admin-level check) |
| A PBX trunk returns 401 | The trunk username, password or authentication type is wrong on the PBX side | See connecting a SIP trunk to a hosted PBX |
| Many failed attempts in a row | The server may block the source after repeated failures | Stop retrying, fix the credentials, then ask the admin to clear the block; see VoIP toll fraud prevention |
How do you fix a 401 or 407 on a softphone?
Work through these in order, so each step rules out a cause before you move on:
- Confirm the username, authentication ID and password exactly as issued. Copy them, don't retype them.
- Confirm the SIP domain or realm. It must match what your provider gave you.
- Check whether an outbound proxy is required, and whether it is entered correctly.
- Check the transport matches what your provider expects.
- Remove old accounts or saved passwords on other devices after any change.
- Check the device date and time are set automatically.
- If many attempts failed, wait or ask the admin to clear any block before you try again.
- Read the SIP log to see which server sent the 401 or 407: the registrar or a proxy.
One line on the main fields, so you know what each one is: the username is your account name, the authentication ID is the name used to answer the challenge, the password is your secret, the domain is the server you register with, and the outbound proxy is an optional extra hop for calls. The full explanation is in SIP softphone account settings explained, so it is not repeated here.
If you use the business softphone apps for iOS, Android, Windows and macOS, the same checks apply, because the challenge comes from the SIP standard and not from the app.

How do you stop login errors happening in the first place?
Provision accounts instead of typing them. SIP credentials can be cloud-provisioned by QR code or API, so users scan once and are ready to call. On a hosted PBX, mobile apps are set up with a QR code and desktop apps with a setup link, so users do not type SIP settings.
After a password change, re-provision the device so it picks up the new credentials, instead of editing the old account by hand. Our guide to QR code provisioning for softphones covers the steps, so this post does not repeat them.
What is the difference between SIP 401, 407 and 403?
These codes sit close together in a log and are easy to mix up.
| Code | Meaning | What to check |
|---|---|---|
| 401 Unauthorized | The registrar or far end asks for credentials | Whether the challenge repeats after the app answers |
| 407 Proxy Authentication Required | A proxy asks for credentials | The outbound proxy and the credentials used for calls |
| 403 Forbidden | The credentials were understood but refused, or the account is not allowed | See fix 403, 404 and 408 registration errors |
| 404 Not Found | The user or domain was not found | Same registration guide as 403 |
For the other codes you may meet next to these, see our guide to SIP response codes. The individual guides cover SIP 486 Busy Here, SIP 487 Request Terminated and SIP 503 Service Unavailable.
Pair it with a hosted PBX
Pair the softphone with a hosted PBX and team members get set up by QR code or a setup link instead of typing SIP details. IP access controls and automated blocking help protect the phone system against repeated login attempts. If you also need to link a provider, read about connecting a SIP trunk to a hosted PBX.
FAQ
Why do I see a 401 before every successful registration?
That is the normal challenge and response. The first request has no credentials, so the server answers 401. The next request carries the credentials built from your password and gets a 200 OK. One 401 followed by a 200 is expected, and it is not a fault.
Is 401 the same as a wrong password?
Only if it repeats after the app has already answered the challenge. A single 401 is just the server asking who you are. If the second attempt also gets a 401, check the password, the authentication ID and the SIP domain, in that order.
What is the difference between username and authentication ID?
The username identifies your account, while the authentication ID is the name used to answer the server's challenge. On some systems they are the same, on others they differ. Our guide to SIP softphone account settings explained covers both.
Why does a 407 appear only on outbound calls?
A proxy or provider may ask for credentials on calls as well as on registration. Check that the outbound proxy is entered correctly and that the same credentials are used for calls. If registration works but calls get a 407, the proxy setting is the first place to look.
What should I send support?
Send the time of the failure, the device, the 401 or 407, which server sent it and whether the password changed recently. Never send the password itself: support does not need it, and nobody should ask for it.
Try a softphone that works with any SIP platform
Fewer login errors start with simple setup. See SessionTalk's softphones for iOS, Android, Windows and macOS. They work with any SIP platform and can be set up by scanning a QR code.