Examples of TransactionState


Examples of javax.sip.TransactionState

          if (currentTime - sipTransaction.auditTag >= a_nLeakedTransactionTimer) {
            // Leaked transaction found
            leakedTransactions++;

            // Generate some report
            TransactionState transactionState = sipTransaction
                .getState();
            SIPRequest origRequest = sipTransaction
                .getOriginalRequest();
            String origRequestMethod = (origRequest != null ? origRequest
                .getMethod()
                : null);
            String transactionReport = sipTransaction.getClass()
                .getName()
                + ", state: "
                + (transactionState != null ? transactionState
                    .toString() : "null")
                + ", OR: "
                + (origRequestMethod != null ? origRequestMethod
                    : "null");
            auditReport += "    " + transactionReport + "\n";
View Full Code Here

Examples of javax.sip.TransactionState

            // Resend the last request sent
            if (this.getState() == null || !this.isMapped)
                return;

            boolean inv = isInviteTransaction();
            TransactionState s = this.getState();

            // JvB: INVITE CTs only retransmit in CALLING, non-INVITE in both TRYING and
            // PROCEEDING
            // Bug-fix for non-INVITE transactions not retransmitted when 1xx response received
            if ((inv && TransactionState.CALLING == s)
View Full Code Here

Examples of javax.sip.TransactionState

        }

        protected void runTask() {
            SIPServerTransaction serverTransaction = SIPServerTransaction.this;

            TransactionState realState = serverTransaction.getRealState();

            if (realState == null || TransactionState.TRYING == realState) {
                if (sipStack.isLoggingEnabled(LogWriter.TRACE_DEBUG))
                    sipStack.getStackLogger().logDebug(" sending Trying current state = "
                            + serverTransaction.getRealState());
View Full Code Here

Examples of javax.sip.TransactionState

     * transaction is not known to the stack.
     */
    protected void map() {
        // note that TRYING is a pseudo-state for invite transactions

        TransactionState realState = getRealState();

        if (realState == null || realState == TransactionState.TRYING) {
            // JvB: Removed the condition 'dialog!=null'. Trying should also
            // be
            // sent by intermediate proxies. This fixes some TCK tests
View Full Code Here

Examples of javax.sip.TransactionState

          if (currentTime - sipTransaction.auditTag >= a_nLeakedTransactionTimer) {
            // Leaked transaction found
            leakedTransactions++;

            // Generate some report
            TransactionState transactionState = sipTransaction
                .getState();
            SIPRequest origRequest = sipTransaction
                .getOriginalRequest();
            String origRequestMethod = (origRequest != null ? origRequest
                .getMethod()
                : null);
            String transactionReport = sipTransaction.getClass()
                .getName()
                + ", state: "
                + (transactionState != null ? transactionState
                    .toString() : "null")
                + ", OR: "
                + (origRequestMethod != null ? origRequestMethod
                    : "null");
            auditReport += "    " + transactionReport + "\n";
View Full Code Here

Examples of javax.sip.TransactionState

                    if (currentTime - sipTransaction.auditTag >= a_nLeakedTransactionTimer) {
                        // Leaked transaction found
                        leakedTransactions++;

                        // Generate some report
            TransactionState transactionState = sipTransaction
                .getState();
            SIPRequest origRequest = sipTransaction
                .getOriginalRequest();
            String origRequestMethod = (origRequest != null ? origRequest
                .getMethod()
                                : null);
            String transactionReport = sipTransaction.getClass()
                .getName()
                                + ", state: "
                + (transactionState != null ? transactionState
                    .toString() : "null")
                + ", OR: "
                + (origRequestMethod != null ? origRequestMethod
                    : "null");
                        auditReport += "    " + transactionReport + "\n";
View Full Code Here

Examples of javax.sip.TransactionState

     * transaction is not known to the stack.
     */
    protected void map() {
        // note that TRYING is a pseudo-state for invite transactions

        TransactionState realState = getRealState();

        if (realState == null || realState == TransactionState.TRYING) {
            // JvB: Removed the condition 'dialog!=null'. Trying should also
            // be
            // sent by intermediate proxies. This fixes some TCK tests
View Full Code Here

Examples of javax.sip.TransactionState

        }

        protected void runTask() {
            SIPServerTransaction serverTransaction = SIPServerTransaction.this;

            TransactionState realState = serverTransaction.getRealState();

            if (realState == null || TransactionState.TRYING == realState) {
                if (sipStack.isLoggingEnabled(LogWriter.TRACE_DEBUG))
                    sipStack.getStackLogger().logDebug(" sending Trying current state = "
                            + serverTransaction.getRealState());
View Full Code Here

Examples of javax.sip.TransactionState

            // Resend the last request sent
            if (this.getState() == null || !this.isMapped)
                return;

            boolean inv = isInviteTransaction();
            TransactionState s = this.getState();

            // JvB: INVITE CTs only retransmit in CALLING, non-INVITE in both TRYING and
            // PROCEEDING
            // Bug-fix for non-INVITE transactions not retransmitted when 1xx response received
            if ((inv && TransactionState.CALLING == s)
View Full Code Here

Examples of org.apache.activemq.state.TransactionState

            context = cs.getContext();
        }
        if (cs == null) {
            throw new NullPointerException("Context is null");
        }
        TransactionState transactionState = cs.getTransactionState(info.getTransactionId());
        if (transactionState == null) {
            throw new IllegalStateException("Cannot prepare a transaction that had not been started: "
                                            + info.getTransactionId());
        }
        // Avoid dups.
        if (!transactionState.isPrepared()) {
            transactionState.setPrepared(true);
            int result = broker.prepareTransaction(context, info.getTransactionId());
            transactionState.setPreparedResult(result);
            IntegerResponse response = new IntegerResponse(result);
            return response;
        } else {
            IntegerResponse response = new IntegerResponse(transactionState.getPreparedResult());
            return response;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.