Package com.ericsson.ssa.container

Examples of com.ericsson.ssa.container.SipBindingCtx


        if (logger.isLoggable(Level.FINER)) {
            logger.log(Level.FINER,
                "Get first suitable local SipBindingCtx for TCP.");
        }

        SipBindingCtx ctx = SipBindingResolver.instance().
                getActiveInternalContext(transport);
                                             

        if (ctx != null) {
            TargetTuple tt = ctx.getTargetTupleForProtocol(transport);

            if (tt != null) {
                localSAddr = tt.getSocketAddress();

                if (logger.isLoggable(Level.FINER)) {
View Full Code Here


        // if not found use the external address in sip-container
        TargetTuple outtt = null;
       
        OutboundInterface oi = msg.getOutboundInterface();
       
        SipBindingCtx sipBindingCtx = SipBindingResolver.instance().
                getActiveExternalContext();
        for (TargetTuple tt : sipBindingCtx.getTargetTuples()) {
            if (msg.getTransport().equalsIgnoreCase(tt.getProtocol().name())) {
                outtt = tt;
                break;
            }
        }
View Full Code Here

                SipURI sipUri = (SipURI) uri;
                String host = sipUri.getHost();
                int port = sipUri.getPort();
                for (String publiccontext : SipBindingResolver.instance().
                        getPublicContexts()) {
                    SipBindingCtx sipBindingCtx = SipBindingResolver.instance().
                            getPublicContext(publiccontext);
                    found = isAddressPresent(sipBindingCtx, host, port);
                }
            }
        }
View Full Code Here

                    // Fetch port from request (use 5060 if port is missing)
                    int port = sipUri.getPort();

                    if (port != -1) {
                        // Fetch valid ports
                        SipBindingCtx sipBindingCtx = SipBindingResolver.instance()
                        .getActiveExternalContext();

                        TargetTuple[] tt = sipBindingCtx.getTargetTuples();

                        // Check if port in request is one of the valid ones
                        for (int i = 0; i < tt.length; i++) {
                            if (port == tt[i].getPort()) {
                                local = true;
View Full Code Here

TOP

Related Classes of com.ericsson.ssa.container.SipBindingCtx

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.