code: public void servletInitialized(SipServletContextEvent ce) {
  		String sendOnInit = ce.getServletContext().getInitParameter("send-on-init");
  		String method = ce.getServletContext().getInitParameter("method");
  		logger.info("Send on Init : "+ sendOnInit);
  		if(sendOnInit == null || "true".equals(sendOnInit)) {
  			SipFactory sipFactory = (SipFactory) getServletContext().getAttribute(SIP_FACTORY);
  			SipApplicationSession sipApplicationSession = sipFactory.createApplicationSession();
  			if(method.equalsIgnoreCase("INVITE")) {								
  				sendMessage(sipFactory.createApplicationSession(), method);				
  			} else {
  				timerService.createTimer(sipApplicationSession, 10000, 20000, true, true, method);
  			}
  		}
  	}
docs: /*
  (non-Javadoc)
  @see javax.servlet.sip.SipServletListener#servletInitialized(javax.servlet.sip.SipServletContextEvent)