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.
描述
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.
何时出现
During call setup when the callee's phone is ringing. You should hear a ringback tone after receiving this response.
如何修复
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.
描述
The request requires user authentication. The response includes a WWW-Authenticate header with a challenge for the realm.
何时出现
When making a request that requires Digest authentication. Common for REGISTER and INVITE requests to authenticated SIP trunks.
如何修复
Resend the request with proper Authorization header containing valid credentials (Digest authentication).
主要区别
180 is a 1xx Provisional response, while 401 is a 4xx Client Failure response.
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.
SIP 401: The request requires user authentication. The response includes a WWW-Authenticate header with a challenge for the realm.
You encounter 180 when during call setup when the callee's phone is ringing. You should hear a ringback tone after receiving this response.
You encounter 401 when when making a request that requires Digest authentication. Common for REGISTER and INVITE requests to authenticated SIP trunks.
何时使用哪个
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).