修复ServerTransaction空指针异常

pull/457/head
quangz 2022-04-27 18:51:47 +08:00
parent 102aad1f5d
commit effe71640d
1 changed files with 4 additions and 0 deletions

View File

@ -190,6 +190,10 @@ public class RegisterRequestProcessor extends SIPRequestProcessorParent implemen
private void sendResponse(RequestEvent evt, Response response) throws InvalidArgumentException, SipException {
ServerTransaction serverTransaction = getServerTransaction(evt);
if (serverTransaction == null) {
logger.warn("回复失败:{}", response);
return;
}
serverTransaction.sendResponse(response);
if (serverTransaction.getDialog() != null) serverTransaction.getDialog().delete();
}