Home | History | Annotate | Download | only in stack

Lines Matching defs:dialog

54 import javax.sip.Dialog;
500 MessageChannel sourceChannel, SIPDialog dialog) {
519 sipStack.getStackLogger().logDebug("dialog = " + dialog);
527 * if (dialog != null && transactionResponse.getStatusCode() != 100 &&
529 * add the route before you process the response. dialog.setLastResponse(this,
530 * transactionResponse); this.setDialog(dialog, transactionResponse.getDialogId(false)); }
535 inviteClientTransaction(transactionResponse, sourceChannel, dialog);
537 nonInviteClientTransaction(transactionResponse, sourceChannel, dialog);
724 MessageChannel sourceChannel, SIPDialog dialog) throws IOException {
729 if (dialog != null && dialog.isAckSeen() && dialog.getLastAckSent() != null) {
730 if (dialog.getLastAckSent().getCSeq().getSeqNumber() == transactionResponse.getCSeq()
733 dialog.getLastAckSent().getFromTag())) {
739 if (dialog!= null && ackAlreadySent
740 && transactionResponse.getCSeq().getMethod().equals(dialog.getMethod())) {
742 // Found the dialog - resend the ACK and
747 dialog.resendAck();
749 // What to do here ?? kill the dialog?
767 respondTo.processResponse(transactionResponse, this, dialog);
778 respondTo.processResponse(transactionResponse, this, dialog);
803 respondTo.processResponse(transactionResponse, this, dialog);
823 respondTo.processResponse(transactionResponse, this, dialog);
830 respondTo.processResponse(transactionResponse, this, dialog);
856 respondTo.processResponse(transactionResponse, this, dialog);
944 SIPDialog dialog = sipStack.getDialog(this.getOriginalRequest()
947 // Dialog
948 if (this.getSipProvider().isAutomaticDialogSupportEnabled() && dialog != null) {
950 "Dialog is present and AutomaticDialogSupport is enabled for "
951 + " the provider -- Send the Request using the Dialog.sendRequest(transaction)");
956 SIPDialog dialog = this.getDefaultDialog();
958 if (dialog != null && dialog.isBackToBackUserAgent()) {
960 if ( ! dialog.takeAckSem() ) {
1047 SIPDialog dialog = (SIPDialog) this.getDialog();
1052 // creation then kill the dialog.
1053 if (dialog != null
1054 && (dialog.getState() == null || dialog.getState() == DialogState.EARLY)) {
1057 // If this is a re-invite we do not delete the dialog even
1060 // terminate the enclosing dialog.
1061 dialog.delete();
1063 } else if (dialog != null) {
1067 && dialog.isTerminatedOnBye()) {
1068 // Terminate the associated dialog on BYE Timeout.
1069 dialog.delete();
1327 * Response with a tag mismatch should be dropped if a Dialog has been created for the
1360 // If a dialog has already been created for this response,
1362 SIPDialog dialog = null;
1366 // JvB for CANCEL: use invite CT in CANCEL request to get dialog
1370 dialog = ict.defaultDialog;
1373 dialog = this.getDialog(dialogId);
1376 // JvB: Check all conditions required for creating a new Dialog
1377 if (dialog == null) {
1385 * Dialog cannot be found for the response. This must be a forked response. no
1386 * dialog assigned to this response but a default dialog has been assigned. Note
1387 * that if automatic dialog support is configured then a default dialog is always
1394 * default dialog simultaneously
1405 // The default dialog has not been claimed yet.
1407 dialog = defaultDialog;
1412 * should then get set in Dialog#sendRequest line 1662
1415 dialog = sipStack.getDialog(dialogId);
1416 if (dialog == null) {
1422 dialog = sipStack.createDialog(this, sipResponse);
1428 if ( dialog != null ) {
1429 this.setDialog(dialog, dialog.getDialogId());
1431 sipStack.getStackLogger().logError("dialog is unexpectedly null",new NullPointerException());
1437 // Need to create a new Dialog, this becomes default
1440 dialog = sipStack.createDialog(this, sipResponse);
1441 this.setDialog(dialog, dialog.getDialogId());
1446 dialog = defaultDialog;
1449 dialog.setLastResponse(this, sipResponse);
1451 this.processResponse(sipResponse, incomingChannel, dialog);
1459 public Dialog getDialog() {
1461 Dialog retval = null;
1466 retval = (Dialog) getDialog(dialogId);
1470 retval = (Dialog) this.defaultDialog;
1475 " sipDialogs = " + sipDialogs + " default dialog " + this.defaultDialog
1507 sipStack.getStackLogger().logError("NULL DIALOG!!");
1508 throw new NullPointerException("bad dialog null");