ServerTransaction stx = request.getCallSession().getServerTransaction(txBranch);
if (stx == null)
{
if (Log.isDebugEnabled())
Log.debug("No transaction for cancelled branch {}", txBranch, null);
SipResponse unknown = (SipResponse) request.createResponse(SipServletResponse.SC_CALL_LEG_DONE);
transaction.send(unknown);
}
else
{
SipResponse ok = (SipResponse) request.createResponse(SipServletResponse.SC_OK);
transaction.send(ok);
stx.cancel(request);
}
}