SIP

SIP 301 Moved Permanently vs 405 Method Not Allowed

SIP 301 (Moved Permanently) is a 3xx Redirection response, while 405 (Method Not Allowed) is a 4xx Client 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, 405 means that the method specified in the Request-Line is not allowed for the address identified by the Request-URI.

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 method specified in the Request-Line is not allowed for the address identified by the Request-URI.

When You See It

When sending a SIP method (e.g., MESSAGE, PUBLISH) that the server does not support for the target URI.

How to Fix

Check the Allow header in the response to see which methods are supported. Use a supported method instead.

Key Differences

1.

301 is a 3xx Redirection response, while 405 is a 4xx Client Failure response.

2.

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.

3.

SIP 405: The method specified in the Request-Line is not allowed for the address identified by the Request-URI.

4.

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

5.

You encounter 405 when when sending a SIP method (e.g., MESSAGE, PUBLISH) that the server does not support for the target URI.

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 405 (Method Not Allowed): Check the Allow header in the response to see which methods are supported. Use a supported method instead.

Learn More