public MobicentsSipSessionFacade(MobicentsSipSession sipSession) { this.sipSession = sipSession; this.sipSessionKey = sipSession.getKey(); this.sipAppSessionKey = sipSession.getSipApplicationSession().getKey(); }
public SipApplicationSession getApplicationSession() { MobicentsSipApplicationSession sipApplicationSession = getSipApplicationSession(); if(sipApplicationSession == null) { return null; } else { return sipApplicationSession.getFacade(); } }
/** * {@inheritDoc} */ public MobicentsSipSession removeSipSession(final MobicentsSipSessionKey key) { return sipManagerDelegate.removeSipSession(key); }
/** * */ public void dumpSipSessions() { sipManagerDelegate.dumpSipSessions(); }
/** * Gets the longest time (in seconds) that an expired session had been * alive. * * @return Longest time (in seconds) that an expired session had been alive. */ public int getSipSessionMaxAliveTime() { return sipManagerDelegate.getSipSessionMaxAliveTime(); }
/** * Sets the longest time (in seconds) that an expired session had been * alive. * * @param sessionMaxAliveTime * Longest time (in seconds) that an expired session had been * alive. */ public void setSipSessionMaxAliveTime(int sipSessionMaxAliveTime) { this.sipManagerDelegate.setSipSessionMaxAliveTime(sipSessionMaxAliveTime); }
/** * Gets the average time (in seconds) that expired sessions had been alive. * * @return Average time (in seconds) that expired sessions had been alive. */ public int getSipSessionAverageAliveTime() { return sipManagerDelegate.getSipSessionAverageAliveTime(); }
/** * Sets the average time (in seconds) that expired sessions had been alive. * * @param sessionAverageAliveTime * Average time (in seconds) that expired sessions had been * alive. */ public void setSipSessionAverageAliveTime(int sipSessionAverageAliveTime) { this.sipManagerDelegate.setSipSessionAverageAliveTime(sipSessionAverageAliveTime); }
/** * Sets the number of sessions that have expired. * * @param expiredSessions * Number of sessions that have expired */ public void setExpiredSipApplicationSessions( int expiredSipApplicationSessions) { this.sipManagerDelegate.setExpiredSipApplicationSessions(expiredSipApplicationSessions); }
/** * */ public void dumpSipApplicationSessions() { sipManagerDelegate.dumpSipApplicationSessions(); }
/** * {@inheritDoc} */ public void removeAllSessions() { sipManagerDelegate.removeAllSessions(); }
/** * Return the maximum number of active Sessions allowed, or -1 for no limit. */ public int getMaxActiveSipSessions() { return (this.sipManagerDelegate.getMaxActiveSipSessions()); }
/** * Gets the number of sessions that have expired. * * @return Number of sessions that have expired */ public int getExpiredSipSessions() { return sipManagerDelegate.getExpiredSipSessions(); }
/** * {@inheritDoc} */ public Iterator<MobicentsSipApplicationSession> getAllSipApplicationSessions() { return sipManagerDelegate.getAllSipApplicationSessions(); }
@Override public SipSessionKey removeSipSession( MobicentsSipSession mobicentsSipSession) { SipSessionKey sessionKey = super.removeSipSession(mobicentsSipSession); if(sessionKey != null) { sipSessionsMapModified = true; } return sessionKey; }
/** * @return the sipSessionSecurity */ public MobicentsSipSessionSecurity getSipSessionSecurity() { if(sipSessionSecurity == null) { sipSessionSecurity = new SipSessionSecurity(); } return sipSessionSecurity; }
/** * @return the container */ public Container getContainer() { return (CatalinaSipContext) sipManagerDelegate.getContainer(); }