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.
คำอธิบาย
The address in the request resolved to several choices, each with its own location. The user or UA can select a preferred communication endpoint.
เมื่อคุณพบเห็น
When a user has multiple registered devices or contact addresses and the server cannot determine which one to use.
วิธีแก้ไข
Select one of the provided Contact addresses and resend the request to that specific URI.
คำอธิบาย
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).
ความแตกต่างหลัก
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.
ควรใช้อันไหนเมื่อไร
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).