/** * Iterate through the scopes and their attributes. Used by JMX * * @return list of scope attributes */ public List<String> iterateScopeNameList() { log.debug("iterateScopeNameList called"); Collection<IScope> scopes = getScopes(); log.debug("Scopes: {}", scopes.size()); List<String> scopeNames = new ArrayList<String>(scopes.size()); for (IScope scope : scopes) { log.debug("Client scope: {}", scope); scopeNames.add(scope.getName()); if (log.isDebugEnabled()) { for (Map.Entry<String, Object> entry : scope.getAttributes().entrySet()) { log.debug("Client scope attr: {} = {}", entry.getKey(), entry.getValue()); } } } return scopeNames; }
@Override public boolean appStart(IScope scope) { loginfo("Red5SIP starting in scope " + scope.getName() + " " + System.getProperty("user.dir")); loginfo( "Red5SIP using RTP port range " + startRTPPort + "-" + stopRTPPort + ", using SIP port range " + startSIPPort + "-" + stopSIPPort); sipPort = startSIPPort; rtpPort = startRTPPort; return true; }
@Override public void roomLeave(IClient client, IScope scope) { log.debug("***** " + APP + " [ " + " roomLeave [ " + scope.getName() + "] *********"); }
@Override public boolean roomJoin(IClient client, IScope scope) { log.debug("***** " + APP + " [ " + " roomJoin [ " + scope.getName() + "] *********"); return true; }
@Override public void appStop(IScope scope) { log.debug("***** " + APP + " [ " + " appStop [ " + scope.getName() + "] *********"); }
@Override public boolean appStart(IScope scope) { log.debug("***** " + APP + " [ " + " appStart [ " + scope.getName() + "] *********"); return true; }
@Override public void appStop(IScope scope) { loginfo("Red5SIP stopping in scope " + scope.getName()); sipManager.destroyAllSessions(); }