We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc704ac commit 5c4c4abCopy full SHA for 5c4c4ab
sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/B2buaHelperImpl.java
@@ -700,7 +700,7 @@ public SipServletResponse createResponseToOriginalRequest(
700
//do this before creating response so proper toTag is selected
701
SIPTransaction tx = (SIPTransaction) sipServletRequestImpl.getTransaction();
702
SIPDialog newDialog = (SIPDialog)sipSession.getSessionCreatingDialog();
703
- if (newDialog != null) {
+ if (newDialog != null && tx != null) {
704
logger.debug("recovering dialog on transaction before send:" + System.identityHashCode(newDialog));
705
tx.setDialog(newDialog, newDialog.getDialogId());
706
}
0 commit comments