midDialogRequestManager.generateMidDialogRequest(
dialog, RFC3261.METHOD_BYE, null);
guiClosedCallIds.remove(callId);
}
} else {
InviteClientTransaction inviteClientTransaction =
(InviteClientTransaction)transactionManager
.getClientTransaction(inviteWithAuth);
if (inviteClientTransaction == null) {
logger.error("cannot find invite client transaction" +
" for call " + callId);
} else {
SipResponse sipResponse =
inviteClientTransaction.getLastResponse();
if (sipResponse != null) {
int statusCode = sipResponse.getStatusCode();
if (statusCode < RFC3261.CODE_200_OK) {
initialRequestManager.createCancel(inviteWithAuth,
midDialogRequestManager, profileUri);