Home | History | Annotate | Download | only in stack

Lines Matching refs:dialog

48 import javax.sip.Dialog;
185 private SIPDialog dialog;
675 // JvB: Removed the condition 'dialog!=null'. Trying should also
831 SIPDialog thisDialog = (SIPDialog) this.dialog;
960 // transports. Note that the dialog layer
979 if (this.dialog != null)
980 this.dialog.setRetransmissionTicks();
1020 if (this.dialog != null)
1021 this.dialog.setRetransmissionTicks();
1172 SIPDialog dialog = (SIPDialog) this.dialog;
1177 dialog.setState(SIPDialog.TERMINATED_STATE);
1179 if (dialog != null && dialog.isTerminatedOnBye())
1180 dialog.setState(SIPDialog.TERMINATED_STATE);
1207 if (dialog != null)
1208 dialog.setState(SIPDialog.TERMINATED_STATE);
1236 SIPDialog dialog = this.dialog;
1287 // Fix up the response if the dialog has already been established.
1322 // Dialog checks. These make sure that the response
1324 if (dialog != null) {
1327 if (dialog.getLocalTag() == null && sipResponse.getTo().getTag() == null) {
1333 } else if (dialog.getLocalTag() != null && sipResponse.getToTag() == null) {
1334 sipResponse.setToTag(dialog.getLocalTag());
1335 } else if (dialog.getLocalTag() != null && sipResponse.getToTag() != null
1336 && !dialog.getLocalTag().equals(sipResponse.getToTag())) {
1338 + dialog.getLocalTag() + " responseTag is "
1343 if (!sipResponse.getCallId().getCallId().equals(dialog.getCallId().getCallId())) {
1344 throw new SipException("Dialog mismatch!");
1366 // See if the dialog needs to be inserted into the dialog table
1367 // or if the state of the dialog needs to be changed.
1368 if (dialog != null && response.getStatusCode() != 100) {
1369 dialog.setResponseTags(sipResponse);
1370 DialogState oldState = dialog.getState();
1371 dialog.setLastResponse(this, (SIPResponse) response);
1372 if (oldState == null && dialog.getState() == DialogState.TERMINATED) {
1373 DialogTerminatedEvent event = new DialogTerminatedEvent(dialog
1374 .getSipProvider(), dialog);
1376 // Provide notification to the listener that the dialog has
1378 dialog.getSipProvider().handleEvent(event, this);
1382 } else if (dialog == null && this.getMethod().equals(Request.INVITE)
1395 // Send message after possibly inserting the Dialog
1396 // into the dialog table to avoid a possible race condition.
1400 if ( dialog != null ) {
1401 dialog.startRetransmitTimer(this, (SIPResponse)response);
1486 public Dialog getDialog() {
1488 return this.dialog;
1499 sipStack.getStackLogger().logDebug("setDialog " + this + " dialog = " + sipDialog);
1500 this.dialog = sipDialog;
1502 this.dialog.setAssigned();
1612 throw new SipException("Dialog associated with tx");