SIP

SIP 182 Queued vs 401 Unauthorized

SIP 182 (Queued) is a 1xx Provisional response, while 401 (Unauthorized) is a 4xx Client Failure response. 182 indicates that the called party is temporarily unavailable but the server has decided to queue the call rather than reject it. The call will be attempted when the callee becomes available. In contrast, 401 means that the request requires user authentication. The response includes a WWW-Authenticate header with a challenge for the realm.

描述

The called party is temporarily unavailable but the server has decided to queue the call rather than reject it. The call will be attempted when the callee becomes available.

何时出现

In call center or queuing scenarios where the callee is busy but the system holds the call in a queue.

如何修复

Wait for the call to be dequeued. If queuing is not desired, configure the server to reject calls instead of queuing them.

描述

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

主要区别

1.

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

2.

SIP 182: The called party is temporarily unavailable but the server has decided to queue the call rather than reject it. The call will be attempted when the callee becomes available.

3.

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

4.

You encounter 182 when in call center or queuing scenarios where the callee is busy but the system holds the call in a queue.

5.

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

何时使用哪个

For 182 (Queued): Wait for the call to be dequeued. If queuing is not desired, configure the server to reject calls instead of queuing them. For 401 (Unauthorized): Resend the request with proper Authorization header containing valid credentials (Digest authentication).

了解更多