anchor.diff:  %% service types for diameter
   -define(DIAMETERDATA, <<"32251@3gpp.org">>).
   -define(DIAMETERVOICE, <<"32260@3gpp.org">>).
  +
   
   -spec rate(Protocol, ServiceType, SubscriberID, Destination,
   		Flag, DebitAmounts, ReserveAmounts, SessionAttributes) -> Result
  
positive.code: rate7(Subscriber, interim, _Charge, _Charged, _Reserve, Reserved, _SessionAttributes) ->
  	ok = mnesia:write(Subscriber),
  	{grant, Subscriber, Reserved}.
  
  %%----------------------------------------------------------------------
  %%  internal functions
  
negative.code: -copyright('Copyright (c) 2016 - 2017 SigScale Global Inc.').
  
  -export([rate/8]).
  -export([authorize/6]).
  
  -include("ocs.hrl").
  -include_lib("radius/include/radius.hrl").
  