SIP

SIP 180 Ringing vs 401 Unauthorized

SIP 180 (Ringing) is a 1xx Provisional response, while 401 (Unauthorized) is a 4xx Client Failure response. 180 indicates that the UA receiving the INVITE is trying to alert the user. This response is used to initiate local ringback tone at the caller's end. In contrast, 401 means that the request requires user authentication. The response includes a WWW-Authenticate header with a challenge for the realm.

Description

The UA receiving the INVITE is trying to alert the user. This response is used to initiate local ringback tone at the caller's end.

Quand vous le voyez

During call setup when the callee's phone is ringing. You should hear a ringback tone after receiving this response.

Comment résoudre

No fix needed — the callee's device is ringing. If the call never connects after ringing, check the callee's device or call forwarding settings.

Description

The request requires user authentication. The response includes a WWW-Authenticate header with a challenge for the realm.

Quand vous le voyez

When making a request that requires Digest authentication. Common for REGISTER and INVITE requests to authenticated SIP trunks.

Comment résoudre

Resend the request with proper Authorization header containing valid credentials (Digest authentication).

Différences clés

1.

180 is a 1xx Provisional response, while 401 is a 4xx Client Failure response.

2.

SIP 180: The UA receiving the INVITE is trying to alert the user. This response is used to initiate local ringback tone at the caller's end.

3.

SIP 401: The request requires user authentication. The response includes a WWW-Authenticate header with a challenge for the realm.

4.

You encounter 180 when during call setup when the callee's phone is ringing. You should hear a ringback tone after receiving this response.

5.

You encounter 401 when when making a request that requires Digest authentication. Common for REGISTER and INVITE requests to authenticated SIP trunks.

Quand utiliser lequel

For 180 (Ringing): No fix needed — the callee's device is ringing. If the call never connects after ringing, check the callee's device or call forwarding settings. For 401 (Unauthorized): Resend the request with proper Authorization header containing valid credentials (Digest authentication).

En savoir plus