Пример #1
0
 /**
  * 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;
  }
Пример #3
0
 @Override
 public void roomLeave(IClient client, IScope scope) {
   log.debug("***** " + APP + " [ " + " roomLeave [ " + scope.getName() + "] *********");
 }
Пример #4
0
 @Override
 public boolean roomJoin(IClient client, IScope scope) {
   log.debug("***** " + APP + " [ " + " roomJoin [ " + scope.getName() + "] *********");
   return true;
 }
Пример #5
0
 @Override
 public void appStop(IScope scope) {
   log.debug("***** " + APP + " [ " + " appStop [ " + scope.getName() + "] *********");
 }
Пример #6
0
 @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();
 }