Package javax.servlet.sip

Examples of javax.servlet.sip.SipServletRequest.send()


        preprocessState(session, state);
        ContentHandler handler = getContentHandler(state.getContentType());
        byte[] b = handler.getBytes(state.getContent());
       
        notify.setContent(b, state.getContentType());
        notify.send();
      }
      else
        _log.warn("Could not send notification to {} for event {} as sip session is invalidated",
            subscription, getName());
    }
View Full Code Here


  {
    if (_registerSession != null)
    {
      SipServletRequest register = createRegister(_registerSession);
      register.setExpires(0);
      register.send();
    }
  }
 
  class RegistrationHandler implements MessageHandler
  {
View Full Code Here

   
    SipServletRequest request = _sipFactory.createRequest(session, "INVITE", from, to);
    if (_b2bHelper == null)
      _b2bHelper = request.getB2buaHelper();
    request.getSession().setHandler(getServletName());
    request.send();
  }

  @Override
  protected void doRequest(SipServletRequest request) throws ServletException, IOException
  {
View Full Code Here

        ServletTimer cancelCallTask = _timerService.createTimer(leg1.getApplicationSession(), 15000,
            false, new CancelCallTask(leg1, request));
       
        leg1.setAttribute(CancelCallTask.class.getName(), cancelCallTask);
       
        request.send();
      }
      else if (response.getStatus() >= SipServletResponse.SC_MULTIPLE_CHOICES)
      {
        response.getApplicationSession().invalidate();
      }
View Full Code Here

       
        // ACK to leg2
        SipServletResponse leg2Resp = (SipServletResponse) response.getRequest().getAttribute(RESP_INV);
        SipServletRequest request = leg2Resp.createAck();
        copy(response, request);
        request.send();
       
        // ACK to leg1
        response.createAck().send();
      }
      else if (status >= SipServletResponse.SC_MULTIPLE_CHOICES)
View Full Code Here

          {
            SipServletRequest register = createRegister(_registerSession);
            register.addAuthHeader(response, _user, _passwd);
            try
            {
              register.send();
            }
            catch (Exception e)
            {
              // registration failed
            }
View Full Code Here

  {
    SipTester alice = SipTest.create("alice");
    SipTester bob = SipTest.create("bob");
   
    SipServletRequest request = alice.createRequest("OPTIONS", bob);
    request.send();
   
    SipServletResponse response = alice.getResponse(request);
   
    assertNotNull(response);
    assertEquals(200, response.getStatus());
View Full Code Here

    SipTester alice = SipTest.create("alice");
    SipTester bob = SipTest.create("bob");
   
    Call call = alice.createCall(bob);
    SipServletRequest invite = call.createInvite();
    invite.send();
   
   
  }
 
}
View Full Code Here

                    if (disableByeOnNoAckReceived) {
                        if (m_Log.isLoggable(Level.FINE)) {
                            m_Log.log(Level.FINE, "BYE is not automatically sent by the container for no ACK recieved.");
                        }
                    } else {
                        byeRequest.send();
                    }
                }
            } catch (IncompleteDialogException e) { // uow.lockdialog can cause this.
                if (m_Log.isLoggable(Level.FINE)) {
                    m_Log.log(Level.FINE, "The dialog was incomplete while handling TimerLong. Skipping send", e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.