SIP

SIP 302 Moved Temporarily vs 305 Use Proxy

Both SIP 302 (Moved Temporarily) and 305 (Use Proxy) belong to the 3xx Redirection category. 302 indicates that the callee has temporarily moved to a different address. The client should retry the request at the Contact address but continue using the original URI for future requests. Meanwhile, 305 means that the requested resource must be accessed through the proxy given by the Contact header field.

Descrição

The callee has temporarily moved to a different address. The client should retry the request at the Contact address but continue using the original URI for future requests.

Quando você o vê

When a user is temporarily reachable at a different location, such as when traveling or using a different device.

Como corrigir

Redirect the current call to the Contact URI provided, but keep the original URI for future requests.

Descrição

The requested resource must be accessed through the proxy given by the Contact header field.

Quando você o vê

When the request must be routed through a specific outbound proxy server.

Como corrigir

Resend the request through the proxy specified in the Contact header of this response.

Diferenças principais

1.

SIP 302: The callee has temporarily moved to a different address. The client should retry the request at the Contact address but continue using the original URI for future requests.

2.

SIP 305: The requested resource must be accessed through the proxy given by the Contact header field.

3.

You encounter 302 when when a user is temporarily reachable at a different location, such as when traveling or using a different device.

4.

You encounter 305 when when the request must be routed through a specific outbound proxy server.

Quando usar qual

For 302 (Moved Temporarily): Redirect the current call to the Contact URI provided, but keep the original URI for future requests. For 305 (Use Proxy): Resend the request through the proxy specified in the Contact header of this response.

Saiba mais