SIP

SIP 200 OK vs 380 Alternative Service

SIP 200 (OK) is a 2xx Success response, while 380 (Alternative Service) is a 3xx Redirection response. 200 indicates that the request has succeeded. For INVITE, the call has been answered. For other methods, the action has been completed successfully. In contrast, 380 means that the call was not successful but alternative services are possible. The response body contains a description of alternative services.

Описание

The request has succeeded. For INVITE, the call has been answered. For other methods, the action has been completed successfully.

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

When a call is answered (INVITE 200 OK), a registration succeeds (REGISTER 200 OK), or a subscription is accepted (SUBSCRIBE 200 OK).

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

No fix needed — this is a success response. The caller should send an ACK to complete the three-way handshake for INVITE transactions.

Описание

The call was not successful but alternative services are possible. The response body contains a description of alternative services.

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

Rarely seen in practice. Indicates that the request cannot be fulfilled as-is but the user may be reached via an alternative method.

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

Check the response body for alternative service descriptions and attempt to reach the user through those channels.

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

1.

200 is a 2xx Success response, while 380 is a 3xx Redirection response.

2.

SIP 200: The request has succeeded. For INVITE, the call has been answered. For other methods, the action has been completed successfully.

3.

SIP 380: The call was not successful but alternative services are possible. The response body contains a description of alternative services.

4.

You encounter 200 when when a call is answered (INVITE 200 OK), a registration succeeds (REGISTER 200 OK), or a subscription is accepted (SUBSCRIBE 200 OK).

5.

You encounter 380 when rarely seen in practice. Indicates that the request cannot be fulfilled as-is but the user may be reached via an alternative method.

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

For 200 (OK): No fix needed — this is a success response. The caller should send an ACK to complete the three-way handshake for INVITE transactions. For 380 (Alternative Service): Check the response body for alternative service descriptions and attempt to reach the user through those channels.

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