Package com.ericsson.ssa.sip

Examples of com.ericsson.ssa.sip.SipServletResponseImpl.popDispatcher()


    public void next(SipServletRequestImpl req) {
        SipServletResponseImpl resp = validateAndModifyIncomingVia(req);
      if (resp != null) {
        // VIA validation failed, send the error response back
        resp.popDispatcher().dispatch(resp);
        return;
      }
     
      req.pushTransactionDispatcher(this);
        req.pushApplicationDispatcher(this);
View Full Code Here


        // incoming req (with via) --> send 408 to client
        if (logger.isLoggable(Level.FINE)) {
            logger.log(Level.FINE, "failed to resolve req, send 408 response");
        }

        failureResp.popDispatcher().dispatch(failureResp);
    }

    private SipServletResponseImpl getRequestTimeout(SipServletRequestImpl in) {
        SipServletResponseImpl resp = in.createTerminatingResponse(408);
View Full Code Here

                if (logger.isLoggable(Level.FINE)) {
                    logger.log(Level.FINE,
                        "failed to parse top route , send 400 response");
                }

                failureResp.popDispatcher().dispatch(failureResp);

                return;
            }

            Address a = it_a.next();
View Full Code Here

                SipServletResponseImpl resp = req.createTerminatingResponse(400,
                        phraze);

                // TR HH52078
                if (resp != null) {
                    while (resp.popDispatcher() != null) {
                    } // After this layer it shouldn't go anywhere

                    TargetResolver tr = TargetResolver.getInstance();
                    TargetTuple tt = tr.resolveResponse(resp);
View Full Code Here

        }
        incrEasOverloadRejectedSipRequests(TrafficType.SIP_INITIAL, req
            .getMethod());

        if (resp != null) {
          resp.popDispatcher().dispatch(resp);
        }

        return;
      }
    } else {
View Full Code Here

        }
        incrEasOverloadRejectedSipRequests(TrafficType.SIP_SUBSEQUENT,
            req.getMethod());

        if (resp != null) {
          resp.popDispatcher().dispatch(resp);
        }

        return;
      }
    }
View Full Code Here

                e.printStackTrace();
                // Fallback if resolve failed, possibly because of Via missing or not parsable.
                resp.setRemote(req.getRemote());
            }

            resp.popDispatcher().dispatch(resp);
        }
    }
}
View Full Code Here

                    SipServletRequestImpl newCancel = getRequest().createCancelImpl();

                    // lets answer incoming cancel with 200 OK
                    SipServletResponseImpl resp = cancel.createTerminatingResponse(200);
                    resp.setRemote(cancel.getRemote());
                    resp.popDispatcher().dispatch(resp);

                    // forward the Cancel
                    // assign via from saved top via of provisional response
                    // (i.e. the cancelTrigger)
                    // resolve it and send it out on the network
View Full Code Here

        SipServletRequestImpl cancel = st.getRequest();

        if (_state != PROCEEDING) {
            SipServletResponseImpl resp = cancel.createTerminatingResponse(481);
            resp.setRemote(cancel.getRemote());
            resp.popDispatcher().dispatch(resp);

            return;
        }
       
        // is this a cancel on a re-invite?
View Full Code Here

        }

        // invoke outside synchronization block...
        if (resp != null) {
            // orginal transaction to cancel is gone, lets reply...
            resp.popDispatcher().dispatch(resp);
        } else if (stCancel != null) {
            // lets inform the original transaction
            // that a cancel request is pending...
            if (isTransactionCreated) {
                st.handleCancel(stCancel);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.