Package com.ericsson.ssa.sip

Examples of com.ericsson.ssa.sip.DialogFragment


    private void handleCancel(SipServletRequestImpl cancel,
        SipServletResponseImpl cancelPendingTrigger) {
        // must get next hop for cancel from incoming response...
        if ((cancel != null) && (cancelPendingTrigger != null)) {
            DialogFragment dialog = getRequest().getDialog();

            if (dialog != null) {
                Dispatcher next = dialog.getFirst();

                if (next != null) {
                    // Servlet reporter should not normally be intercepted in transaction layer
                    // but we need to do it for cancel since cancel bypasses the layers and goes straigth into
                    // first pathnode!
View Full Code Here


       
        // is this a cancel on a re-invite?
        if (getRequest().isInitial() == false && getRequest().getDialog() != null) {
            // In case of cancel on re-invite we might immediately act on the
            // cancel without waiting for the provisional response
            DialogFragment dialog = getRequest().getDialog();
            Dispatcher firstPathNode = dialog.getFirst();
            if (firstPathNode == null) {
                throw new IllegalStateException("Dialog reference for cancel on re-invite does not contain a pathnode");
            }

            dispatchInUOW(firstPathNode, cancel, dialog);
View Full Code Here

        _timerC = _timerService.createTimer(this, cTimerDelay, TimerC);
        prolongDialogSet(cTimerDelay);
    }

    private void prolongDialogSet(long delay) {
        DialogFragment d = getDialog();

        if ((d != null) && !d.isConfirmed() && d.isValid()) { // also check for valid dialog
            d.getDialogSet().prolongLifetime(delay + 10000);
        }
    }
View Full Code Here

       
        // The following will be executed after the layers above have executed
        replicateOnResponse(resp, true);
       
        // Try to finish the current UOW
        DialogFragment dialog = resp.getDialog();
        if (dialog != null) {
            dialog.getDialogLifeCycle().trigDelayedFinish();
        }
       
        ReplicationUnitOfWork.clearThreadLocal();
    }
View Full Code Here

    }

    private void replicateOnResponse(SipServletResponseImpl resp, boolean inbound) {
        if (logger.isLoggable(Level.FINEST))
            logger.log(Level.FINEST, "Enter replicateOnResponse");
        DialogFragment df = resp.getDialog();

        if (df != null) {
            if (inbound) {
                if (df.containsUA()) {
                    df.getDialogLifeCycle().save();
                }
            } else {
                df.getDialogLifeCycle().save();
            }
        }
    }
View Full Code Here

        if (logger.isLoggable(Level.FINEST))  {
            logger.log(Level.FINEST, "ENTER replicateOnOutboundRequest, " +
                    "request = " + req.getMethod());
        }
       
        DialogFragment df = req.getDialog();
        if (df != null && df.isConfirmed() && "ACK".equalsIgnoreCase(req.getMethod())) {
            df.getDialogLifeCycle().save();
        }
       
        if (logger.isLoggable(Level.FINEST))  {
            logger.log(Level.FINEST, "EXIT replicateOnOutboundRequest, " +
                    "request = " + req.getMethod());
View Full Code Here

        if (logger.isLoggable(Level.FINEST))  {
            logger.log(Level.FINEST, "ENTER replicateOnInboundRequest, " +
                    "request = " + req.getMethod());
        }
       
        DialogFragment df = req.getDialog();
        if (df != null && df.isConfirmed() && df.containsUA()) {
            df.getDialogLifeCycle().save();
        }
       
        if (logger.isLoggable(Level.FINEST)) {
            logger.log(Level.FINEST, "EXIT replicateOnInboundRequest, " +
                    "request = " + req.getMethod());
View Full Code Here

TOP

Related Classes of com.ericsson.ssa.sip.DialogFragment

Copyright © 2018 www.massapicom. 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.