anchor.diff:  		Reply :: #'3gpp_ro_CCA'{}.
   %% @doc Send CCA to DIAMETER client indicating an operation failure.
   %% @hidden
  -generate_diameter_error(SId, ResultCode, OHost, ORealm, RequestType, RequestNum) ->
  -	Reply = #'3gpp_ro_CCA'{'Session-Id' = SId, 'Result-Code' = ResultCode,
  +diameter_error(SId, ResultCode, OHost, ORealm, RequestType, RequestNum) ->
  +	#'3gpp_ro_CCA'{'Session-Id' = SId, 'Result-Code' = ResultCode,
   			'Origin-Host' = OHost, 'Origin-Realm' = ORealm,
   			'Auth-Application-Id' = ?RO_APPLICATION_ID, 'CC-Request-Type' = RequestType,
  -			'CC-Request-Number' = RequestNum},
  -	Reply.
  +			'CC-Request-Number' = RequestNum}.
   
   -spec accounting_event_type(RequestType) -> EventType
   	when
  
positive.code: 						{type, interim}, {subscriber, Subscriber},
  						{destination, Destination}, {reservation, ReserveAmount},
  						{used, DebitAmount}]),
  				Reply = generate_diameter_error(SId, ?'IETF_RESULT-CODE_RATING_FAILED',
  						OHost, ORealm, RequestType, RequestNum),
  				ok = ocs_log:acct_log(diameter, Server,
  						accounting_event_type(RequestType), Request, Reply, undefined),
  
negative.code: 						{origin_host, OHost}, {origin_realm, ORealm},
  						{type, final}, {subscriber, Subscriber},
  						{destination, Destination}, {used, DebitAmount}]),
  				Reply = diameter_error(SId, ?'IETF_RESULT-CODE_RATING_FAILED',
  						OHost, ORealm, RequestType, RequestNum),
  				ok = ocs_log:acct_log(diameter, Server,
  						accounting_event_type(RequestType), Request, Reply, undefined),
  