anchor.diff:  		DebitAmount = [{UsedType, UsedUsage}],
   		case ocs_rating:rate(Subscriber, interim, DebitAmount, ReserveAmount) of
   			{ok, _, GrantedAmount} ->
  +				GrantedUnits = case ReqUsageType of
  +					seconds ->
  +						#'3gpp_ro_Granted-Service-Unit'{'CC-Time' = [GrantedAmount]};
  +					octets ->
  +						#'3gpp_ro_Granted-Service-Unit'{'CC-Total-Octets' = [GrantedAmount]}
  +				end,
   				{Reply, NewState} = generate_diameter_answer(Request, SId, Subscriber,
  -						GrantedAmount, ?'DIAMETER_BASE_RESULT-CODE_SUCCESS', OHost, ORealm,
  +						GrantedUnits, ?'DIAMETER_BASE_RESULT-CODE_SUCCESS', OHost, ORealm,
   						?RO_APPLICATION_ID, RequestType, RequestNum, State),
   				{reply, Reply, NewState};
   			{out_of_credit, SL} ->
  
positive.code: 			{reply, Reply1, NewState0}
  	end.
  
  -spec generate_diameter_answer(Request, SessionId, Subscriber, Balance,
  		ResultCode, OriginHost, OriginRealm, AuthAppId, RequestType, RequestNum,
  		State) -> Result
  			when
  				Request :: #'3gpp_ro_CCR'{},
  				SessionId :: string(),
  				Subscriber :: string() | binary(),
  				Balance :: non_neg_integer(),
  				ResultCode :: integer(),
  				OriginHost :: string(),
  				OriginRealm :: string(),
  
negative.code: 				Reply :: #'3gpp_ro_CCA'{}.
  %% @doc Send CCA to DIAMETER client indicating a successful operation.
  %% @hidden
  generate_diameter_answer(Request, SId, _Subscriber, GrantedUnits, ResultCode, OHost,
  		ORealm, AuthAppId, RequestType, RequestNum, #state{address = Address,
  		port = Port} = State) ->
  	MultiServices_CC = #'3gpp_ro_Multiple-Services-Credit-Control'{
  			'Granted-Service-Unit' = [GrantedUnits]},
  	Reply = #'3gpp_ro_CCA'{'Session-Id' = SId, 'Result-Code' = ResultCode,
  