public boolean isValidInternal() { return this.sipApplicationSession.isValidInternal(); }
/** * Does basic check for illegal methods, wrong state, if it finds, it throws * exception * */ private static void validateCreation(String method, SipApplicationSession app) { if (method.equals(Request.ACK)) { throw new IllegalArgumentException( "Wrong method to create request with[" + Request.ACK + "]!"); } if (method.equals(Request.PRACK)) { throw new IllegalArgumentException( "Wrong method to create request with[" + Request.PRACK + "]!"); } if (method.equals(Request.CANCEL)) { throw new IllegalArgumentException( "Wrong method to create request with[" + Request.CANCEL + "]!"); } if (!((MobicentsSipApplicationSession)app).isValidInternal()) { throw new IllegalArgumentException( "Cant associate request with invalidaded sip session application!"); } }
private void checkSessionValidity() { if(this.originalRequest.getSipSession().isValidInternal() && this.originalRequest.getSipSession().getSipApplicationSession().isValidInternal()) return; throw new IllegalStateException("Invalid session."); }
sipContext.enterSipApp(sipApplicationSession, null, false, true); if(logger.isDebugEnabled()) { logger.debug("sip app session " + sipApplicationSession.getKey() + " is valid ? :" + sipApplicationSession.isValidInternal()); if(sipApplicationSession.isValidInternal()) { logger.debug("Sip app session " + sipApplicationSession.getKey() + " is ready to be invalidated ? :" + sipApplicationSession.isReadyToInvalidate()); if(sipApplicationSession.isValidInternal() && sipApplicationSession.isReadyToInvalidate()) { sipApplicationSession.tryToInvalidate();
if(!appSession.isValidInternal()) { if(appSession.isOrphan() || ((SipFactoryExt)sipContext.getSipFactoryFacade()).isRouteOrphanRequests()) { handleOrphanRequest(sipProvider, sipServletRequest, appSession.getId(), sipContext);
if(getSipApplicationSession().isValidInternal()) { getSipApplicationSession().invalidate(true);
if(getSipApplicationSession().isValidInternal()) { getSipApplicationSession().invalidate(true);