SIP 301 Moved Permanently vs 406 Not Acceptable
SIP 301 (Moved Permanently) is a 3xx Redirection response, while 406 (Not Acceptable) is a 4xx Client Failure response. 301 indicates that the user can no longer be found at the address in the Request-URI. The client should direct future requests to the new address in the Contact header. In contrast, 406 means that the resource identified by the request is only capable of generating responses with content characteristics not acceptable according to the Accept header.
Descrição
The user can no longer be found at the address in the Request-URI. The client should direct future requests to the new address in the Contact header.
Quando você o vê
When a user has permanently changed their SIP address. All future calls should be directed to the new URI.
Como corrigir
Update your address book or routing tables to use the new Contact URI provided in the response.
Descrição
The resource identified by the request is only capable of generating responses with content characteristics not acceptable according to the Accept header.
Quando você o vê
When content negotiation fails — the server cannot produce a response matching the Accept header fields in the request.
Como corrigir
Review the Accept headers in your request and broaden the acceptable content types.
Diferenças principais
301 is a 3xx Redirection response, while 406 is a 4xx Client Failure response.
SIP 301: The user can no longer be found at the address in the Request-URI. The client should direct future requests to the new address in the Contact header.
SIP 406: The resource identified by the request is only capable of generating responses with content characteristics not acceptable according to the Accept header.
You encounter 301 when when a user has permanently changed their SIP address. All future calls should be directed to the new URI.
You encounter 406 when when content negotiation fails — the server cannot produce a response matching the Accept header fields in the request.
Quando usar qual
For 301 (Moved Permanently): Update your address book or routing tables to use the new Contact URI provided in the response. For 406 (Not Acceptable): Review the Accept headers in your request and broaden the acceptable content types.