Package javax.servlet.sip

Examples of javax.servlet.sip.SipSession.createRequest()


    try
    {
      SipSession session = subscription.getSession();
      if (session.isValid())
      {
        SipServletRequest notify = session.createRequest(Constants.NOTIFY);
        notify.addHeader(Constants.EVENT, getName());
       
        String s = subscription.getState().getName();
        if (subscription.getState() == Subscription.State.ACTIVE
            || subscription.getState() == Subscription.State.PENDING)
View Full Code Here


        // ACK to leg1
        response.createAck().send();
      }
      else if (status >= SipServletResponse.SC_MULTIPLE_CHOICES)
      {
        leg2.createRequest("BYE").send();
        leg1.getApplicationSession().invalidate();
     
    }
  }
 
View Full Code Here

                            uow.lockDialog(dialog);
                        }
                        // issue 1085 :: create byeRequest before invoking the listeners.
                        // issue 1350 :: check that session is still valid. If app is undeployed it will not be
                        if(session.isValid()){
                          byeRequest = session.createRequest("BYE");
                        }
                        else {
                          if (m_Log.isLoggable(Level.FINE)) {
                                m_Log.log(Level.FINE,
                                        "Skipping to send BYE since SipSession is no longer valid");
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.