Lines Matching refs:TRANSACTION
71 import javax.sip.Transaction;
168 public void handleEvent(EventObject sipEvent, SIPTransaction transaction) {
172 + transaction + "this.sipListener = "
185 EventWrapper eventWrapper = new EventWrapper(sipEvent, transaction);
284 "Transaction already assigned to request");
286 throw new TransactionUnavailableException ("Cannot create client transaction for " + Request.ACK);
312 "Transaction already exists!");
338 "could not find existing transaction for "
349 "Cannot resolve next hop -- transaction unavailable");
352 "Cannot resolve next hop -- transaction unavailable", ex);
370 // client transaction.
407 // create a new dialog to contain this transaction
457 SIPServerTransaction transaction = null;
467 sipStack.getStackLogger().logError("Creating server transaction for ACK -- makes no sense!");
468 throw new TransactionUnavailableException("Cannot create Server transaction for ACK ");
487 "Transaction not available -- could not acquire stack lock");
493 "server transaction already exists!");
495 transaction = (SIPServerTransaction) ((SIPRequest) request)
497 if (transaction == null)
499 "Transaction not available");
500 if (transaction.getOriginalRequest() == null)
501 transaction.setOriginalRequest(sipRequest);
503 sipStack.addTransaction(transaction);
509 transaction.addEventListener(this);
516 dialog = sipStack.createDialog(transaction);
519 transaction.setDialog(dialog, sipRequest.getDialogId(true));
521 sipStack.putInMergeTable(transaction, sipRequest);
533 * Under automatic dialog support, dialog is tied into a transaction. You cannot
537 transaction = (SIPServerTransaction) sipStack.findTransaction(
539 if (transaction != null)
541 "Transaction exists! ");
542 transaction = (SIPServerTransaction) ((SIPRequest) request)
544 if (transaction == null)
546 "Transaction not available!");
547 if (transaction.getOriginalRequest() == null)
548 transaction.setOriginalRequest(sipRequest);
549 // Map the transaction.
551 sipStack.addTransaction(transaction);
562 dialog.addTransaction(transaction);
564 transaction.setDialog(dialog, sipRequest.getDialogId(true));
568 transaction = (SIPServerTransaction) sipStack.findTransaction(
570 if (transaction != null)
572 "Transaction exists! ");
573 transaction = (SIPServerTransaction) ((SIPRequest) request)
575 if (transaction != null) {
576 if (transaction.getOriginalRequest() == null)
577 transaction.setOriginalRequest(sipRequest);
578 // Map the transaction.
579 sipStack.mapTransaction(transaction);
582 // assign the dialog to the transaction.
586 dialog.addTransaction(transaction);
588 transaction.setDialog(dialog, sipRequest
592 return transaction;
598 transaction = sipStack.createServerTransaction(mc);
599 if (transaction == null)
601 "Transaction unavailable -- too many servrer transactions");
603 transaction.setOriginalRequest(sipRequest);
604 sipStack.mapTransaction(transaction);
607 // assign the dialog to the transaction.
611 dialog.addTransaction(transaction);
613 transaction.setDialog(dialog, sipRequest
617 return transaction;
622 return transaction;
749 throw new SipException("Transaction exists -- cannot send response statelessly");
819 * @see javax.sip.SipProvider#getNewDialog(javax.sip.Transaction)
822 public Dialog getNewDialog(Transaction transaction) throws SipException {
823 if (transaction == null)
824 throw new NullPointerException("Null transaction!");
832 if (!sipStack.isDialogCreated(transaction.getRequest().getMethod()))
834 + transaction.getRequest().getMethod());
837 SIPTransaction sipTransaction = (SIPTransaction) transaction;
839 if (transaction instanceof ServerTransaction) {
840 SIPServerTransaction st = (SIPServerTransaction) transaction;
847 SIPRequest sipRequest = (SIPRequest) transaction.getRequest();
851 dialog = sipStack.createDialog((SIPTransaction) transaction);
865 SIPClientTransaction sipClientTx = (SIPClientTransaction) transaction;
894 * Invoked when an error has ocurred with a transaction. Propagate up to the
902 SIPTransaction transaction = (SIPTransaction) transactionErrorEvent
909 "TransportError occured on " + transaction);
913 Timeout timeout = Timeout.TRANSACTION;
933 Timeout timeout = Timeout.TRANSACTION;
957 Transaction tx = (Transaction) errorObject;