/** * This method is called immediately when the conditions for read to invalidate * session are met */ public void onReadyToInvalidate() { this.setReadyToInvalidate(true); if(logger.isDebugEnabled()) { logger.debug("invalidateWhenReady flag is set to " + invalidateWhenReady); } if(isValid() && this.invalidateWhenReady) { this.notifySipSessionListeners(SipSessionEventType.READYTOINVALIDATE); //If the application does not explicitly invalidate the session in the callback or has not defined a listener, //the container will invalidate the session. if(isValid()) { invalidate(true); } } }
notifySipSessionListeners(SipSessionEventType.DELETION);