Package javax.servlet.sip

Examples of javax.servlet.sip.TooManyHopsException


    _tx = (ServerTransaction) request.getTransaction();
        _tx.setListener(this);
                       
        int maxForwards = request.getMaxForwards();
        if (maxForwards == 0)
            throw new TooManyHopsException();
        else if (maxForwards == -1)
            request.setMaxForwards(70);
       
        if (Log.isDebugEnabled())
          Log.debug("Created proxy for tx {}", _tx, null);
View Full Code Here


    if (!origRequest.isInitial())
      throw new IllegalArgumentException("Original request is not initial");
   
    int mf = origRequest.getMaxForwards();
    if (mf == 0)
      throw new TooManyHopsException("Max-Forwards of original request is equal to 0");
   
    SipRequest request = (SipRequest) createRequest(origRequest);
    addHeaders(request, headerMap);
   
    if (linked)
View Full Code Here

        if (_b2buahelper != null) {
            throw new IllegalStateException("Only allowed to be B2bua");
        }

        if (headerMap.get(Header.MAX_FORWARDS).getValue().equals("0")) {
            throw new TooManyHopsException();
        }

        Proxy proxy = null;

        if (getProxyContext() == null) {
View Full Code Here

TOP

Related Classes of javax.servlet.sip.TooManyHopsException

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.