SIP 204 No Notification vs 415 Unsupported Media Type
SIP 204 (No Notification) is a 2xx Success response, while 415 (Unsupported Media Type) is a 4xx Client Failure response. 204 indicates that the request was successful but the server has decided not to send a NOTIFY for this SUBSCRIBE request. 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 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 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.
Ключевые различия
204 is a 2xx Success response, while 415 is a 4xx Client Failure response.
SIP 204: The request was successful but the server has decided not to send a NOTIFY for this SUBSCRIBE request.
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 204 when when subscribing to event packages that may not generate immediate notifications, such as dialog or presence packages.
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 204 (No Notification): No fix needed. The subscription was accepted but there is no state change to notify about yet. 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.