SIP

SIP 200 OK vs 415 Unsupported Media Type

SIP 200 (OK) is a 2xx Success response, while 415 (Unsupported Media Type) is a 4xx Client Failure 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, 415 means that the server is refusing the request because the message body is in a format not supported by the server for the requested method.

説明

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 server is refusing the request because the message body is in a format not supported by the server for the requested method.

このコードが表示される場合

When the Content-Type of the request body is not supported. For INVITE, this often means an unsupported SDP format.

解決方法

Check the Accept header in the response to see supported media types. Use a compatible Content-Type in your request.

主な違い

1.

200 is a 2xx Success response, while 415 is a 4xx Client Failure 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 415: The server is refusing the request because the message body is in a format not supported by the server for the requested method.

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 415 when when the Content-Type of the request body is not supported. For INVITE, this often means an unsupported SDP format.

どちらをいつ使うか

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 415 (Unsupported Media Type): Check the Accept header in the response to see supported media types. Use a compatible Content-Type in your request.

詳しく見る