public String getId() { return this.sipApplicationSession.getId(); }
public void writeExternal(ObjectOutput arg0) throws IOException { arg0.writeUTF(sipApplicationSession.getId()); }
MobicentsSipApplicationSession appSession = appSessions.next(); result += "[APPLICATION SESSION] ID = " + appSession.getId() + ", Handler = " + appSession.getCurrentRequestHandler() + "\n"+ "([APPLICATION SESSION])\n"; Iterator<String> attribNames = appSession.getAttributeNames(); while(attribNames.hasNext()) {
@SuppressWarnings("unchecked") public void run() { try { if(logger.isDebugEnabled()) { logger.debug("initial kick off of SipApplicationSessionTimerTask running for sip application session " + sipApplicationSession.getId()); } long sleep = getDelay(); if(sleep > 0) { // if the session has been accessed since we started it, put it to sleep if(logger.isDebugEnabled()) { logger.debug("expirationTime is " + sipApplicationSession.getExpirationTimeInternal() + ", now is " + System.currentTimeMillis() + " sleeping for " + sleep / 1000L + " seconds"); } final SipContext sipContext = sipApplicationSession.getSipContext(); final SipApplicationSessionTimerTask expirationTimerTask = sipContext.getSipApplicationSessionTimerService().createSipApplicationSessionTimerTask(sipApplicationSession); sipApplicationSession.setExpirationTimerTask(expirationTimerTask); sipContext.getSipApplicationSessionTimerService().schedule(expirationTimerTask, sleep, TimeUnit.MILLISECONDS); } else { tryToExpire(); } } catch (Throwable t) { logger.error("Timer problem", t); } }
@SuppressWarnings("unchecked") public void run() { try { if(logger.isDebugEnabled()) { logger.debug("initial kick off of SipApplicationSessionTimerTask running for sip application session " + sipApplicationSession.getId()); } long sleep = getDelay(); if(sleep > 0) { // if the session has been accessed since we started it, put it to sleep if(logger.isDebugEnabled()) { logger.debug("expirationTime is " + sipApplicationSession.getExpirationTimeInternal() + ", now is " + System.currentTimeMillis() + " sleeping for " + sleep / 1000L + " seconds"); } final SipContext sipContext = sipApplicationSession.getSipContext(); final SipApplicationSessionTimerTask expirationTimerTask = sipContext.getSipApplicationSessionTimerService().createSipApplicationSessionTimerTask(sipApplicationSession); sipApplicationSession.setExpirationTimerTask(expirationTimerTask); sipContext.getSipApplicationSessionTimerService().schedule(expirationTimerTask, sleep, TimeUnit.MILLISECONDS); } else { tryToExpire(); } } catch (Throwable t) { logger.error("Timer problem", t); } }
handleOrphanRequest(sipProvider, sipServletRequest, appSession.getId(), sipContext); } else { throw new DispatcherException(Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST, "The corresponding sip application session to this subsequent request " + request +
logger.debug("Reusing the application session from the Join/Replaces " + sipApplicationSession.getId());