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.
Descrição
The request has succeeded. For INVITE, the call has been answered. For other methods, the action has been completed successfully.
Quando você o vê
When a call is answered (INVITE 200 OK), a registration succeeds (REGISTER 200 OK), or a subscription is accepted (SUBSCRIBE 200 OK).
Como corrigir
No fix needed — this is a success response. The caller should send an ACK to complete the three-way handshake for INVITE transactions.
Descrição
The server is refusing the request because the message body is in a format not supported by the server for the requested method.
Quando você o vê
When the Content-Type of the request body is not supported. For INVITE, this often means an unsupported SDP format.
Como corrigir
Check the Accept header in the response to see supported media types. Use a compatible Content-Type in your request.
Diferenças principais
200 is a 2xx Success response, while 415 is a 4xx Client Failure response.
SIP 200: The request has succeeded. For INVITE, the call has been answered. For other methods, the action has been completed successfully.
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.
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).
You encounter 415 when when the Content-Type of the request body is not supported. For INVITE, this often means an unsupported SDP format.
Quando usar qual
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.