Package org.cipango.server.session

Examples of org.cipango.server.session.AppSession$ExpiryTimeout


    SipURI rrUri = (SipURI) connector.getSipUri().clone();
    rrUri.setParameter("lr", "");
   
    if (applicationId)
    {
      AppSession appSession = _tx.getRequest().appSession();
      rrUri.setParameter(ID.APP_SESSION_ID_PARAMETER, appSession.getAppId());
    }

    return rrUri;
  }
View Full Code Here


         
          if (request.isInitial() && status < 300)
          {
            if (!session.isSameDialog(response))
            {
              AppSession appSession = session.appSession();
              Session derived = appSession.getSession(response);
              if (derived == null)
                derived = appSession.createDerivedSession(session);
              session = derived;
           
          }
     
          response.setSession(session);
View Full Code Here

      NameAddr remote = (NameAddr) srcRequest.to().clone();
      remote.removeParameter(SipParams.TAG);
     
      String callId = ID.newCallId(srcRequest.getCallId());
   
    AppSession appSession = srcRequest.appSession();
       
        Session session = appSession.createUacSession(callId, local, remote);
        session.setHandler(appSession.getContext().getSipServletHandler().getDefaultServlet());

        SipRequest request = session.getUA().createRequest(srcRequest);
        request.setRoutingDirective(SipApplicationRoutingDirective.CONTINUE, srcRequest);
        request.setInitial(true);
       
View Full Code Here

            NameAddr remote = (NameAddr) to.clone();
           
            local.setParameter(SipParams.TAG, ID.newTag());
            remote.removeParameter(SipParams.TAG);
           
            AppSession appSession = ((AppSessionIf) sipAppSession).getAppSession();          
           
            String cid = ID.newCallId(appSession.getCallSession().getId());
           
            Session session = appSession.createUacSession(cid, local, remote);
            session.setHandler(getSipServletHandler().getDefaultServlet());
           
            SipRequest request = (SipRequest) session.createRequest(method);
            request.setInitial(true);
            request.setRoutingDirective(SipApplicationRoutingDirective.NEW, null);
View Full Code Here

          if (sameCallId)
            callId = origRequest.getCallId();
          else
            callId = ID.newCallId(origRequest.getCallId());
         
            AppSession appSession = ((SipRequest) srcRequest).appSession();
           
            Session session = appSession.createUacSession(callId, local, remote);
            session.setHandler(getSipServletHandler().getDefaultServlet());

            SipRequest request = session.getUA().createRequest((SipRequest) srcRequest);
            request.setRoutingDirective(SipApplicationRoutingDirective.CONTINUE, srcRequest);
            request.setInitial(true);
View Full Code Here

          Server server = getServer();
         
          SessionScope scope = server.getSessionManager().openScope(ID.newCallId());
          try
          {
            AppSession session = scope.getCallSession().createAppSession(SipAppContext.this, ID.newAppSessionId());
            return new ScopedAppSession(session);
          }
          finally
          {
            scope.close();
View Full Code Here

     
      CallSession callSession = getServer().getSessionManager().get(id);
      if (callSession == null)
        return null;
     
      AppSession appSession = callSession.getAppSession(applicationSessionId.substring(i+1));
      if (appSession == null)
        return null;
      else
        return new ScopedAppSession(appSession);
    }
View Full Code Here

      String id = ID.getIdFromKey(getName(), key);

      SessionScope tx = getServer().getSessionManager().openScope(id);
      try
      {
        AppSession appSession = tx.getCallSession().getAppSession(id);
        if (appSession == null)
        {
          if (create)
            appSession = tx.getCallSession().createAppSession(SipAppContext.this, id);
          else
View Full Code Here

TOP

Related Classes of org.cipango.server.session.AppSession$ExpiryTimeout

Copyright © 2018 www.massapicom. 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.