SIP

SIP 301 Moved Permanently vs 302 Moved Temporarily

Both SIP 301 (Moved Permanently) and 302 (Moved Temporarily) belong to the 3xx Redirection category. 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. Meanwhile, 302 means 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.

Mô tả

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.

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

When a user has permanently changed their SIP address. All future calls should be directed to the new URI.

Cách khắc phục

Update your address book or routing tables to use the new Contact URI provided in the response.

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.

Sự khác biệt chính

1.

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.

2.

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.

3.

You encounter 301 when when a user has permanently changed their SIP address. All future calls should be directed to the new URI.

4.

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

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

For 301 (Moved Permanently): Update your address book or routing tables to use the new Contact URI provided in the response. For 302 (Moved Temporarily): Redirect the current call to the Contact URI provided, but keep the original URI for future requests.

Tìm hiểu thêm