@Override
  public void appLeave(IClient client, IScope scope) {
    IConnection conn = Red5.getConnectionLocal();
    loginfo("Red5SIP Client leaving app " + client.getId());

    if (userNames.containsKey(client.getId())) {
      loginfo("Red5SIP Client closing client " + userNames.get(client.getId()));
      //            sipManager.closeSIPUser( userNames.get( client.getId() ) );
      userNames.remove(client.getId());
    }
  }
  @Override
  public boolean appJoin(IClient client, IScope scope) {
    loginfo("Red5SIP Client joined app " + client.getId());
    IConnection conn = Red5.getConnectionLocal();
    IServiceCapableConnection service = (IServiceCapableConnection) conn;

    return true;
  }