public String getOutboundInterface() { return getSipSession().getOutboundInterface(); }
public ProxyImpl(SipServletRequestImpl request, SipFactoryImpl sipFactoryImpl) { this.proxyTimerService = ((MobicentsSipApplicationSession)request.getSipApplicationSession(false)).getSipContext().getProxyTimerService(); this.originalRequest = request; this.sipFactoryImpl = sipFactoryImpl; this.proxyBranches = new LinkedHashMap<URI, ProxyBranchImpl> (); this.proxyTimeout = 180; // 180 secs default this.proxy1xxTimeout = -1; // not activated by default String outboundInterfaceStringified = ((MobicentsSipSession)request.getSession()).getOutboundInterface(); if(outboundInterfaceStringified != null) { try { outboundInterface = (SipURI) sipFactoryImpl.createURI(outboundInterfaceStringified); } catch (ServletParseException e) { throw new IllegalArgumentException("couldn't parse the outbound interface " + outboundInterface, e); } } this.callerFromTag = ((MessageExt)request.getMessage()).getFromHeader().getTag(); this.previousNode = extractPreviousNodeFromRequest(request); putTransaction(originalRequest); } // https://code.google.com/p/sipservlets/issues/detail?id=238
if(session.getOutboundInterface() != null) { javax.sip.address.SipURI outboundInterfaceURI = (javax.sip.address.SipURI) SipFactoryImpl.addressFactory.createURI(session.getOutboundInterface()); lp = sipNetworkInterfaceManager.findMatchingListeningPoint(outboundInterfaceURI, false); } else {
sipNetworkInterfaceManager, request, null, session.getOutboundInterface()); message.addHeader(viaHeader); if(logger.isDebugEnabled()) {
String outboundInterface = null; if(session != null) { outboundInterface = session.getOutboundInterface();
String outboundInterface = session.getOutboundInterface(); if(outboundInterface != null) { if(logger.isDebugEnabled()) {
String outboundInterface = this.getSipSession().getOutboundInterface(); if(outboundInterface != null){ javax.sip.address.SipURI outboundInterfaceURI = (javax.sip.address.SipURI) SipFactoryImpl.addressFactory.createURI(outboundInterface);
final String branch = JainSipUtils.createBranch(session.getSipApplicationSession().getKey().getId(), sipApplicationDispatcher.getHashFromApplicationName(session.getSipApplicationSession().getKey().getApplicationName())); ViaHeader viaHeader = JainSipUtils.createViaHeader( sipFactoryImpl.getSipNetworkInterfaceManager(), prackRequest, branch, session.getOutboundInterface()); prackRequest.addHeader(viaHeader);
final String branch = JainSipUtils.createBranch(appSession.getKey().getId(), sipApplicationDispatcher.getHashFromApplicationName(appSession.getKey().getApplicationName())); ViaHeader viaHeader = JainSipUtils.createViaHeader( sipFactoryImpl.getSipNetworkInterfaceManager(), newRequest, branch, session.getOutboundInterface()); newRequest.addHeader(viaHeader); MobicentsExtendedListeningPoint listeningPoint = JainSipUtils.findListeningPoint(sipFactoryImpl.getSipNetworkInterfaceManager(), newRequest, session.getOutboundInterface()); if(listeningPoint != null && listeningPoint.isUseLoadBalancer()) { logger.debug("Not Using load balancer as it is not enabled for listeningPoint " + listeningPoint); contactHeader = JainSipUtils.createContactHeader(sipFactoryImpl.getSipNetworkInterfaceManager(), newRequest, diaplayName, fromName, session.getOutboundInterface()); contactHeader = JainSipUtils.createContactHeader(sipFactoryImpl.getSipNetworkInterfaceManager(), newRequest, diaplayName, fromName, session.getOutboundInterface());
JainSipUtils.createContactHeader(sipNetworkInterfaceManager, request, displayName, fromName, session.getOutboundInterface()); request.addHeader(contactHeader); String outboundInterface = this.getSipSession().getOutboundInterface(); if(outboundInterface != null){ javax.sip.address.SipURI outboundInterfaceURI = (javax.sip.address.SipURI) SipFactoryImpl.addressFactory.createURI(outboundInterface);
String outboundInterface = null; if(session != null) { outboundInterface = session.getOutboundInterface();
final String branch = JainSipUtils.createBranch(sipApplicationSessionKey.getId(), sipApplicationDispatcher.getHashFromApplicationName(sipApplicationSessionKey.getApplicationName())); ViaHeader viaHeader = JainSipUtils.createViaHeader( getSipNetworkInterfaceManager(), requestToWrap, branch, session.getOutboundInterface()); requestToWrap.addHeader(viaHeader);