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).