Lines Matching refs:dialog

176                 Dialog dialog = ((RequestEvent) sipEvent).getDialog();
177 if ( sipStack.isLoggingEnabled()) sipStack.getStackLogger().logDebug("Dialog = " + dialog);
179 Dialog dialog = ((ResponseEvent) sipEvent).getDialog();
180 if (sipStack.isLoggingEnabled() ) sipStack.getStackLogger().logDebug("Dialog = " + dialog);
342 // Could not find a dialog or the route is not set in dialog.
359 SIPDialog dialog = sipStack.getDialog(dialogId);
360 if (dialog != null && dialog.getState() == DialogState.TERMINATED) {
363 // ("Found a terminated dialog -- possible re-use of old tag
365 sipStack.removeDialog(dialog);
369 // An out of dialog route was found. Assign this to the
407 // create a new dialog to contain this transaction
410 // in which case the dialog is re-used.
412 if (dialog != null)
413 ct.setDialog(dialog, sipRequest.getDialogId(false));
419 if (dialog != null) {
420 ct.setDialog(dialog, sipRequest.getDialogId(false));
511 // If automatic dialog support is enabled then
512 // this tx gets his own dialog.
514 SIPDialog dialog = sipStack.getDialog(dialogId);
515 if (dialog == null) {
516 dialog = sipStack.createDialog(transaction);
519 transaction.setDialog(dialog, sipRequest.getDialogId(true));
523 dialog.addRoute(sipRequest);
524 if (dialog.getRemoteTag() != null
525 && dialog.getLocalTag() != null) {
526 this.sipStack.putDialog(dialog);
533 * Under automatic dialog support, dialog is tied into a transaction. You cannot
534 * create a server tx except for dialog creating transactions. After that, all
557 // If there is a dialog already assigned then just update the
558 // dialog state.
560 SIPDialog dialog = sipStack.getDialog(dialogId);
561 if (dialog != null) {
562 dialog.addTransaction(transaction);
563 dialog.addRoute(sipRequest);
564 transaction.setDialog(dialog, sipRequest.getDialogId(true));
581 // If there is a dialog already assigned then just
582 // assign the dialog to the transaction.
584 SIPDialog dialog = sipStack.getDialog(dialogId);
585 if (dialog != null) {
586 dialog.addTransaction(transaction);
587 dialog.addRoute(sipRequest);
588 transaction.setDialog(dialog, sipRequest
606 // If there is a dialog already assigned then just
607 // assign the dialog to the transaction.
609 SIPDialog dialog = sipStack.getDialog(dialogId);
610 if (dialog != null) {
611 dialog.addTransaction(transaction);
612 dialog.addRoute(sipRequest);
613 transaction.setDialog(dialog, sipRequest
673 Dialog dialog = sipStack.getDialog(((SIPRequest) request)
675 if (dialog != null && dialog.getState() != null) {
679 + dialog.getState());
836 SIPDialog dialog = null;
845 "Cannot set dialog after response has been sent");
849 dialog = sipStack.getDialog(dialogId);
850 if (dialog == null) {
851 dialog = sipStack.createDialog((SIPTransaction) transaction);
852 // create and register the dialog and add the inital route set.
853 dialog.addTransaction(sipTransaction);
854 dialog.addRoute(sipRequest);
855 sipTransaction.setDialog(dialog, null);
858 sipTransaction.setDialog(dialog, sipRequest.getDialogId(true));
871 // default dialog.
875 dialog = sipStack.getDialog(dialogId);
876 if (dialog != null) {
879 dialog = sipStack.createDialog(sipTransaction);
881 sipClientTx.setDialog(dialog, null);
888 dialog.addEventListener(this);
889 return dialog;