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.
Description
The address in the request resolved to several choices, each with its own location. The user or UA can select a preferred communication endpoint.
Quand vous le voyez
When a user has multiple registered devices or contact addresses and the server cannot determine which one to use.
Comment résoudre
Select one of the provided Contact addresses and resend the request to that specific URI.
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
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.
Quand utiliser lequel
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).