SIP

SIP 204 No Notification vs 301 Moved Permanently

SIP 204 (No Notification) is a 2xx Success response, while 301 (Moved Permanently) is a 3xx Redirection response. 204 indicates that the request was successful but the server has decided not to send a NOTIFY for this SUBSCRIBE request. In contrast, 301 means 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.

Описание

The request was successful but the server has decided not to send a NOTIFY for this SUBSCRIBE request.

Когда вы это видите

When subscribing to event packages that may not generate immediate notifications, such as dialog or presence packages.

Как исправить

No fix needed. The subscription was accepted but there is no state change to notify about yet.

Описание

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 a user has permanently changed their SIP address. All future calls should be directed to the new URI.

Как исправить

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

Ключевые различия

1.

204 is a 2xx Success response, while 301 is a 3xx Redirection response.

2.

SIP 204: The request was successful but the server has decided not to send a NOTIFY for this SUBSCRIBE request.

3.

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.

4.

You encounter 204 when when subscribing to event packages that may not generate immediate notifications, such as dialog or presence packages.

5.

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

Когда что использовать

For 204 (No Notification): No fix needed. The subscription was accepted but there is no state change to notify about yet. For 301 (Moved Permanently): Update your address book or routing tables to use the new Contact URI provided in the response.

Узнать больше