{
SipServletResponse response = subscribe.createResponse(SipServletResponse.SC_BAD_EVENT);
response.addHeader(Constants.ALLOW_EVENTS, RegEventPackage.NAME);
response.addHeader(Constants.ALLOW_EVENTS, PresenceEventPackage.NAME);
response.addHeader(Constants.ALLOW_EVENTS, WatcherInfoEventPackage.NAME);
response.send();
response.getApplicationSession().invalidate();
}
}
protected void doInvite(SipServletRequest invite) throws ServletException, IOException