SIP 301 Moved Permanently vs 504 Server Time-out
SIP 301 (Moved Permanently) is a 3xx Redirection response, while 504 (Server Time-out) is a 5xx Server Failure response. 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. In contrast, 504 means that the server did not receive a timely response from an external server it accessed while attempting to process the request. Different from 408 (client timeout).
Description
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.
When You See It
When a user has permanently changed their SIP address. All future calls should be directed to the new URI.
How to Fix
Update your address book or routing tables to use the new Contact URI provided in the response.
Description
The server did not receive a timely response from an external server it accessed while attempting to process the request. Different from 408 (client timeout).
When You See It
When a proxy's request to a downstream server times out. The proxy itself is working, but the next hop is unresponsive.
How to Fix
Check the downstream server's availability. Verify DNS resolution for the next-hop domain. Consider adjusting transaction timeout values.
Key Differences
301 is a 3xx Redirection response, while 504 is a 5xx Server Failure response.
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.
SIP 504: The server did not receive a timely response from an external server it accessed while attempting to process the request. Different from 408 (client timeout).
You encounter 301 when when a user has permanently changed their SIP address. All future calls should be directed to the new URI.
You encounter 504 when when a proxy's request to a downstream server times out. The proxy itself is working, but the next hop is unresponsive.
When to Use Which
For 301 (Moved Permanently): Update your address book or routing tables to use the new Contact URI provided in the response. For 504 (Server Time-out): Check the downstream server's availability. Verify DNS resolution for the next-hop domain. Consider adjusting transaction timeout values.