public void processInvite(RequestEvent requestEvent,ServerTransaction serverTransaction){
  SipProvider sipProvider=(SipProvider)requestEvent.getSource();
  Request request=requestEvent.getRequest();
  if (counter == 99)   new Ttask();
  this.counter++;
  try {
    Response response=messageFactory.createResponse(Response.BUSY_HERE,request);
    ToHeader toHeader=(ToHeader)response.getHeader(ToHeader.NAME);
    toHeader.setTag("4321");
    Address address=addressFactory.createAddress("Shootme <sip:" + myAddress + ":"+ myPort+ ">");
    ContactHeader contactHeader=headerFactory.createContactHeader(address);
    response.addHeader(contactHeader);
    if (serverTransaction == null) {
      serverTransaction=sipProvider.getNewServerTransaction(request);
    }
    serverTransaction.sendResponse(response);
  }
 catch (  Exception ex) {
    ex.printStackTrace();
    System.exit(0);
  }
}

public void processInvite ( RequestEvent requestEvent , ServerTransaction serverTransaction ) { SipProvider sipProvider = ( SipProvider ) requestEvent . getSource ( ) ; Request request = requestEvent . getRequest ( ) ; if ( counter == 99 ) new Ttask ( ) ; this . counter ++ ; try { Response response = messageFactory . createResponse ( Response . BUSY_HERE , request ) ; ToHeader toHeader = ( ToHeader ) response . getHeader ( ToHeader . NAME ) ; toHeader . setTag ( "4321" ) ; Address address = addressFactory . createAddress ( "Shootme <sip:" + myAddress + ":" + myPort + ">" ) ; ContactHeader contactHeader = headerFactory . createContactHeader ( address ) ; response . addHeader ( contactHeader ) ; if ( serverTransaction == null ) { serverTransaction = sipProvider . getNewServerTransaction ( request ) ; } serverTransaction . sendResponse ( response ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; System . exit ( 0 ) ; } }
process the invite request .
