code: @Override
  	protected void doBye(SipServletRequest request) throws ServletException,
  			IOException {
  
  		logger.info("MediaPlaybackServlet: Got BYE request:\n" + request);
  		isBye = true;
  		MediaSession mediaSession = (MediaSession) request.getSession()
  				.getAttribute("MEDIA_SESSION");
  		mediaSession.release();
  		request.getSession().removeAttribute("MEDIA_SESSION");
  
  		SipServletResponse sipServletResponse = request.createResponse(200);
  		sipServletResponse.send();
  		// releasing the media connection
  
  	}
docs: {@inheritDoc}