SIP 300 Multiple Choices vs 401 Unauthorized
SIP 300 (Multiple Choices) is a 3xx Redirection response, while 401 (Unauthorized) is a 4xx Client Failure response. 300 indicates that the address in the request resolved to several choices, each with its own location. The user or UA can select a preferred communication endpoint. In contrast, 401 means that the request requires user authentication. The response includes a WWW-Authenticate header with a challenge for the realm.
Mô tả
The address in the request resolved to several choices, each with its own location. The user or UA can select a preferred communication endpoint.
Khi bạn thấy mã này
When a user has multiple registered devices or contact addresses and the server cannot determine which one to use.
Cách khắc phục
Select one of the provided Contact addresses and resend the request to that specific URI.
Mô tả
The request requires user authentication. The response includes a WWW-Authenticate header with a challenge for the realm.
Khi bạn thấy mã này
When making a request that requires Digest authentication. Common for REGISTER and INVITE requests to authenticated SIP trunks.
Cách khắc phục
Resend the request with proper Authorization header containing valid credentials (Digest authentication).
Sự khác biệt chính
300 is a 3xx Redirection response, while 401 is a 4xx Client Failure response.
SIP 300: The address in the request resolved to several choices, each with its own location. The user or UA can select a preferred communication endpoint.
SIP 401: The request requires user authentication. The response includes a WWW-Authenticate header with a challenge for the realm.
You encounter 300 when when a user has multiple registered devices or contact addresses and the server cannot determine which one to use.
You encounter 401 when when making a request that requires Digest authentication. Common for REGISTER and INVITE requests to authenticated SIP trunks.
Khi nào dùng cái nào
For 300 (Multiple Choices): Select one of the provided Contact addresses and resend the request to that specific URI. For 401 (Unauthorized): Resend the request with proper Authorization header containing valid credentials (Digest authentication).