anchor.diff:  			'CC-Request-Number' = RequestNum,
   			'Multiple-Services-Credit-Control' = [MultiServices_CC]}.
   
  --spec generate_diameter_error(SessionId, ResultCode, OriginHost,
  +-spec diameter_error(SessionId, ResultCode, OriginHost,
   		OriginRealm, RequestType, RequestNum) -> Reply
   	when
   		SessionId :: string(),
  
positive.code: 					[{messages, _}] ->
  						#'3gpp_ro_Granted-Service-Unit'{'CC-Service-Specific-Units' = [GrantedAmount]}
  				end,
  				Reply = generate_diameter_answer(SId, ServiceIdentifier, RatingGroup,
  						GrantedUnits, ?'DIAMETER_BASE_RESULT-CODE_SUCCESS', OHost, ORealm,
  						RequestType, RequestNum),
  				ok = ocs_log:acct_log(diameter, Server,
  						accounting_event_type(RequestType), Request, Reply, undefined),
  				Reply;
  			{out_of_credit, _SessionList} ->
  				Reply = generate_diameter_answer(SId, ServiceIdentifier, RatingGroup,
  						undefined, ?'IETF_RESULT-CODE_CREDIT_LIMIT_REACHED', OHost,
  						ORealm, RequestType, RequestNum),
  				ok = ocs_log:acct_log(diameter, Server,
  						accounting_event_type(RequestType), Request, Reply, undefined),
  				Reply;
  			{disabled, _SessionList} ->
  				Reply = generate_diameter_answer(SId, ServiceIdentifier, RatingGroup,
  						undefined, ?'IETF_RESULT-CODE_END_USER_SERVICE_DENIED', OHost,
  						ORealm, RequestType, RequestNum),
  				ok = ocs_log:acct_log(diameter, Server,
  						accounting_event_type(RequestType), Request, Reply, undefined),
  				Reply;
  			{error, subscriber_not_found} ->
  				Reply = generate_diameter_error(SId, ?'IETF_RESULT-CODE_USER_UNKNOWN',
  						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),
  