code: public void doPost (HttpServletRequest request, HttpServletResponse response)
      		throws ServletException, IOException {
          String alertId = request.getParameter("alertId");
          String tel = request.getParameter("tel");
          String alertText = request.getParameter("alertText");        
          if(alertText == null || alertText.length() < 1) {
  	        // Get the content of the request as the text to parse
  	        byte[] content = new byte[request.getContentLength()];
  	        request.getInputStream().read(content,0, request.getContentLength());        
  	        alertText = new String(content); 	        
          }
          if(logger.isInfoEnabled()) {
          	logger.info("Got an alert : \n alertID : " + alertId + " \n tel : " + tel + " \n text : " +alertText);
          }
          // 
          try {
          	Properties jndiProps = new Properties();			
  			Context initCtx = new InitialContext(jndiProps);
  			// Commented out since the preferred way is through SMS Servlets
  //        	SleeConnectionFactory factory = (SleeConnectionFactory) initCtx.lookup("java:/MobicentsConnectionFactory");
  //        	
  //			SleeConnection conn1 = factory.getConnection();
  //			ExternalActivityHandle handle = conn1.createActivityHandle();
  //
  //			EventTypeID requestType = conn1.getEventTypeID(
  //					EVENT_TYPE,
  //					"org.mobicents", "1.0");
  //			SmsAlertingCustomEvent smsAlertingCustomEvent = new SmsAlertingCustomEvent(alertId, tel, alertText);
  //			
  //			conn1.fireEvent(smsAlertingCustomEvent, requestType, handle, null);
  //			conn1.close();
  		} catch (Exception e) {
  			logger.error("unexpected exception while firing the event " + EVENT_TYPE + " into jslee", e);
  		}	
          
          sendHttpResponse(response, OK_BODY);
      }
docs: Handle the HTTP POST method on which alert can be sent so that the app sends an sms based on that