兼容Message缺少消息的异常,回复400错误码
parent
dd6beba843
commit
b759bdcccd
|
@ -102,6 +102,11 @@ public class MessageRequestProcessor extends SIPRequestProcessorParent implement
|
|||
sipEvent.getErrorEvent().response(eventResult);
|
||||
}
|
||||
}else {
|
||||
byte[] rawContent = request.getRawContent();
|
||||
if (rawContent == null) {
|
||||
responseAck(request, Response.BAD_REQUEST, "content is null");
|
||||
return;
|
||||
}
|
||||
Element rootElement;
|
||||
try {
|
||||
rootElement = getRootElement(evt);
|
||||
|
|
Loading…
Reference in New Issue