SIP

SIP 302 Moved Temporarily vs 513 Message Too Large

SIP 302 (Moved Temporarily) is a 3xx Redirection response, while 513 (Message Too Large) is a 5xx Server Failure response. 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. In contrast, 513 means that the server was unable to process the request since the entire SIP message (not just the body) exceeded the size limit.

説明

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.

このコードが表示される場合

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

解決方法

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

説明

The server was unable to process the request since the entire SIP message (not just the body) exceeded the size limit.

このコードが表示される場合

When the total SIP message (headers + body) is too large. Different from 413 which refers only to the body.

解決方法

Reduce the message size by removing unnecessary headers or reducing the SDP size. Consider using UDP-compatible message sizes (< 1300 bytes).

主な違い

1.

302 is a 3xx Redirection response, while 513 is a 5xx Server Failure response.

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.

SIP 513: The server was unable to process the request since the entire SIP message (not just the body) exceeded the size limit.

4.

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

5.

You encounter 513 when when the total SIP message (headers + body) is too large. Different from 413 which refers only to the body.

どちらをいつ使うか

For 302 (Moved Temporarily): Redirect the current call to the Contact URI provided, but keep the original URI for future requests. For 513 (Message Too Large): Reduce the message size by removing unnecessary headers or reducing the SDP size. Consider using UDP-compatible message sizes (< 1300 bytes).

詳しく見る