SIP

SIP 302 Moved Temporarily vs 380 Alternative Service

Both SIP 302 (Moved Temporarily) and 380 (Alternative Service) 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, 380 means that the call was not successful but alternative services are possible. The response body contains a description of alternative services.

Mô tả

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.

Khi bạn thấy mã này

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

Cách khắc phục

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

Mô tả

The call was not successful but alternative services are possible. The response body contains a description of alternative services.

Khi bạn thấy mã này

Rarely seen in practice. Indicates that the request cannot be fulfilled as-is but the user may be reached via an alternative method.

Cách khắc phục

Check the response body for alternative service descriptions and attempt to reach the user through those channels.

Sự khác biệt chính

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 380: The call was not successful but alternative services are possible. The response body contains a description of alternative services.

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 380 when rarely seen in practice. Indicates that the request cannot be fulfilled as-is but the user may be reached via an alternative method.

Khi nào dùng cái nào

For 302 (Moved Temporarily): Redirect the current call to the Contact URI provided, but keep the original URI for future requests. For 380 (Alternative Service): Check the response body for alternative service descriptions and attempt to reach the user through those channels.

Tìm hiểu thêm