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).
主要区别
302 is a 3xx Redirection response, while 513 is a 5xx Server Failure response.
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.
SIP 513: The server was unable to process the request since the entire SIP message (not just the body) exceeded the size limit.
You encounter 302 when when a user is temporarily reachable at a different location, such as when traveling or using a different device.
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).