public void startCharging(String subscriptionId, String serviceContextId) throws Exception {
    // Initialize timers
    sendUpdatetimer =  new Timer();
    sendTerminateTimer =  new Timer();
    callDurationTimer =  new Timer();

    if(logger.isInfoEnabled()) {
      logger.info("(((o))) SERVICE HAS BEEN ESTABLISHED (((o)))");
    }

    // Start call time counter
    setCountCallTime(serviceContextId, 1000);

    // Check whether we should do new charging or terminate on final units.
    if(areFinalUnits) {
      setTerminateTimer(subscriptionId, serviceContextId, reservedUnits * 1000);
    }
    else {
      setUpdateTimer(subscriptionId, serviceContextId, reservedUnits * 1000);
    }
  }
public void startCharging ( String subscriptionId , String serviceContextId ) throws Exception { sendUpdatetimer = new Timer ( ) ; sendTerminateTimer = new Timer ( ) ; callDurationTimer = new Timer ( ) ; if ( logger . isInfoEnabled ( ) ) { logger . info ( "(((o))) SERVICE HAS BEEN ESTABLISHED (((o)))" ) ; } setCountCallTime ( serviceContextId , 1000 ) ; if ( areFinalUnits ) { setTerminateTimer ( subscriptionId , serviceContextId , reservedUnits * 1000 ) ; } else { setUpdateTimer ( subscriptionId , serviceContextId , reservedUnits * 1000 ) ; } }
/* (non-Javadoc)
@see org.mobicents.diameter.simulator.clients.RoClient#startAccounting(java.lang.String)