Package com.ericsson.ssa.sip

Examples of com.ericsson.ssa.sip.OutboundInterface


   

        private TargetTuple selectBindInterface(TargetTuple tt,
                SipServletMessageImpl sipServletMessage) {           
            TargetTuple bindTT = null;
            OutboundInterface oi = sipServletMessage.getOutboundInterface();
            if (oi != null){
                bindTT = oi.getTargetTuple();
            }
            if (bindTT != null) {
                /*
                 * Resolve the external address to the corresponding
                 * bind address, note that the external address could be a
View Full Code Here


    private TargetTuple selectTTToUse(SipServletRequestImpl msg) {
        // check for the JSR 289 outbound interface in the message
        // 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;
            }
        }
        if (oi == null) {
            return outtt;
        } else {
            int port = oi.getPort() == 0 ? outtt.getPort() : oi.getPort();
            return new TargetTuple(outtt.getProtocol(), oi.getHost(), port);
        }
    }
View Full Code Here

TOP

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

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.