Package com.ericsson.ssa.sip

Examples of com.ericsson.ssa.sip.Dispatcher


    }
   
    protected void handleIOException(ByteBuffer bb, SipServletResponseImpl resp) {
        _bbPool.releaseBuffer(bb);

        Dispatcher d = resp.popDispatcher();

        if (d != null) {
            d.dispatch(resp);
        }
    }
View Full Code Here


        SipSessionBase session = request.getSessionImpl();
        if (session != null){
            session.access(); // modify the access times
        }

        Dispatcher dispatcher = request.popDispatcher();
        dispatcher.dispatch(request);
    }
View Full Code Here

        _nextLayer = layer;
    }

    public void dispatch(SipServletRequestImpl req) {
        // First version always uses local NetworkManager
        Dispatcher d = req.popDispatcher();

        while (d != null)
            d = req.popDispatcher();

        NetworkManager.getInstance().dispatch(req);
View Full Code Here

        NetworkManager.getInstance().dispatch(req);
    }

    public void dispatch(SipServletResponseImpl resp) {
        // First version always uses local NetworkManager
        Dispatcher d = resp.popDispatcher();

        while (d != null)
            d = resp.popDispatcher();

        NetworkManager.getInstance().dispatch(resp);
View Full Code Here

    public abstract void write(InetSocketAddress remote, ByteBuffer buffer)
        throws IOException;

    public void dispatch(SipServletRequestImpl req) {
        Dispatcher nextDispatcher = req.popDispatcher();

        if (nextDispatcher != null) {
            nextDispatcher.dispatch(req);

            return;
        }

        putTask(new WriteRequestTask(req));
View Full Code Here

            LayerHelper.next(resp, _nextLayer, _nextLayer);
        }
    }

    public void dispatch(SipServletResponseImpl resp) {
        Dispatcher nextDispatcher = resp.popDispatcher();

        if (nextDispatcher != null) {
            nextDispatcher.dispatch(resp);

            return;
        }

        putTask(new WriteResponseTask(resp));
View Full Code Here

                    _log.log(Level.FINE, "IllegalState in ICT = " + _state);
                }
            }
        }

        Dispatcher d = resp.popDispatcher();

        try {
            if (d != null) {
                d.dispatch(resp);
            }
        } // Transport Error
        catch (Exception e) {
          if (_state != TERMINATED) {
            terminate();
View Full Code Here

                    // schedule new timer
                    _timerG = _timerService.createTimer(this, delay, TimerG);
                    // resend the response
                    _response.restoreRetransmissionTransactionStack();

                    Dispatcher d = _response.popDispatcher();

                    // it's acceptable to block the transaction
                    // during the response transmission
                    if (d != null) {
                        d.dispatch(_response);
                    }

                    if (SipMonitoring.isEnabled(
                                SipMonitoring.TRANSACTION_MANAGER)) {
                        updateLastAccessTimestamp();
View Full Code Here

        // 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

TOP

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

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.