code: public void doGet (HttpServletRequest request,
  			HttpServletResponse response)
  	throws ServletException, IOException
  	{
  		String toAddr = request.getParameter("to");
  		String fromAddr = request.getParameter("from");
  		
  		String bye = request.getParameter("bye");
  		
  
  
  		URI to = toAddr==null? null : sipFactory.createAddress(toAddr).getURI();
  		URI from = fromAddr==null? null : sipFactory.createAddress(fromAddr).getURI();  
  		
  		
  		SipApplicationSession appSession = 
          	((ConvergedHttpSession)request.getSession()).getApplicationSession();
  		
  		if(bye != null) {
  			Iterator i = appSession.getSessions();
  			while(i.hasNext()) {
  				SipSession s = (SipSession) i.next();
  				s.createRequest("BYE").send();
  			}
  			
  		}
  		
  		appSession.setAttribute("setFromHttpServlet", appSession.getId());
  		
  		if(to != null && from != null)
  		{
  
  			SipServletRequest req = sipFactory.createRequest(appSession, "INVITE", from, to);
  
  			// Set some attribute
  			req.getSession().setAttribute("SecondPartyAddress", sipFactory.createAddress(fromAddr));
  
  			logger.info("Sending request" + req);
  			// Send the INVITE request            
  			req.send();
  		}
  
  		// Write the output html
  		PrintWriter	out;
  		response.setContentType("text/html");
  		out = response.getWriter();
  
  		// Just redirect to the index
  		out.println("<HTML><META HTTP-EQUIV=\"Refresh\"CONTENT=\"0; URL=index.jsp\"><HEAD><TITLE></HTML>");
  		out.close();
  	}
docs: Handle the HTTP GET method by building a simple web page.