SIP 182 Queued vs 415 Unsupported Media Type
SIP 182 (Queued) is a 1xx Provisional response, while 415 (Unsupported Media Type) is a 4xx Client Failure response. 182 indicates that the called party is temporarily unavailable but the server has decided to queue the call rather than reject it. The call will be attempted when the callee becomes available. 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 called party is temporarily unavailable but the server has decided to queue the call rather than reject it. The call will be attempted when the callee becomes available.
何时出现
In call center or queuing scenarios where the callee is busy but the system holds the call in a queue.
如何修复
Wait for the call to be dequeued. If queuing is not desired, configure the server to reject calls instead of queuing them.
描述
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.
主要区别
182 is a 1xx Provisional response, while 415 is a 4xx Client Failure response.
SIP 182: The called party is temporarily unavailable but the server has decided to queue the call rather than reject it. The call will be attempted when the callee becomes available.
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 182 when in call center or queuing scenarios where the callee is busy but the system holds the call in a queue.
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 182 (Queued): Wait for the call to be dequeued. If queuing is not desired, configure the server to reject calls instead of queuing them. 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.