VoIP.info Protocol reference

SIP authentication: challenges and modern digest support

Understand the difference between a normal challenge, failed credentials and an unsupported algorithm.

Reviewed 2026-10-24Foundational

A challenge is part of the protocol

A SIP server can challenge a request before accepting it. The client responds using its configured identity and secret under the requested authentication scheme. A challenge followed by success is expected behavior; repeated challenges need closer inspection.

401 challenges concern the receiving server, while 407 is associated with proxy authentication. The relevant authorization header and realm must match the challenge. Do not assume the public extension number is always the carrier's authentication username.

Registration: isolate transport from authentication
If REGISTER never reaches the server, check DNS, transport and firewall. If the server challenges, inspect the authenticated retry. A 200 response confirms registration, after which calls need separate testing.

A first 401 challenge can be normal. Read the response to the authenticated retry before changing credentials.

Check algorithm compatibility

RFC 8760 updates SIP digest authentication to support stronger algorithms including SHA-256 and SHA-512/256. Actual support depends on both endpoints and their software versions. A legacy handset may have limitations that a current PBX configuration exposes.

Prefer a compatible modern configuration rather than silently downgrading policy to make an old device register. Consult the exact PBX and handset documentation and plan replacement when secure interoperability cannot be maintained.

Diagnose without exposing secrets

Compare the username, realm, request destination and supported algorithms using sanitized records. Verify the secret locally through the authorized administration path. A digest exchange is not a reason to publish a raw capture; metadata and authentication material remain sensitive.

Separate an account lock or disabled service from a typing mistake. Provider-side policy can reject otherwise correctly formed requests.

Authentication is not call authorization

A registered extension may still be forbidden from particular destinations. Keep route permissions and carrier account limits in the investigation. Successful authentication does not justify allowing unrestricted outbound calling or management access.

Locate the Twilio 403 before changing authentication

A Twilio 403 on the first digest-less INVITE and a 403 on the authenticated retry after 407 point to different policy stages. Follow the termination diagnostic before rotating credentials or widening an ACL.

Keep DIDforSale credentials separate from source authorization

The DIDforSale guide distinguishes SIP-account activation and digest credentials from a portal-approved IP or FQDN record.

Keep Zadarma credentials separate from confirmed-source authorization

The Zadarma guide distinguishes SIP-login credentials from a portal-confirmed static public address.

Use the observed Voxbeam public source as authorization evidence

The Voxbeam diagnostic compares the portal value with the translated source observed on one transaction.

Use the selected GoTrunk endpoint model as the identity boundary

The GoTrunk diagnostic compares the saved source or credential identity with one observed transaction.

Separate DIDWW authentication from Caller ID and destination authorization

The DIDWW guide does not turn an authenticated INVITE into proof that the requested CLI or destination is permitted.

Do not blend Exotel API, SIP digest and registration

The Exotel guide separates API Basic Auth from SIP ACL or digest and records that the current India trunk interface does not use REGISTER.

Keep Voximplant application users and saved registrations distinct

The Voximplant guide assigns separate credential owners and state to endpoint users and platform-to-provider registrations.

Keep registered and IP-authenticated FreeSWITCH gateways distinct

The FreeSWITCH profiles and gateways guide separates REGED, intentional NOREG, OPTIONS reachability and provider acceptance.

Sources & applicability

Primary references for the technical details above. Operational examples and planning checklists are VoIP.info editorial guidance.