anchor.diff:  capx(_, #diameter_caps{origin_host = {OH,DH}}) ->
       io:format("connection: ~p -> ~p~n", [DH,OH]),
       ok.
  -
  -osi(Id) ->
  -    [$c,N] = atom_to_list(Id),
  -    {'Origin-State-Id', N - $0}.
   
   %% ===========================================================================
   
  
positive.code:     Req = ['ACR', {'Accounting-Record-Type', ?EVENT_RECORD},
                    {'Accounting-Record-Number', 0}],
  
      #'diameter_base_answer-message'{'Result-Code' = ?INVALID_AVP_BITS}
          = call(Config, Req).
  
  %% Send an ACR and expect success.
  
negative.code: -include("diameter.hrl").
  -include("diameter_gen_base_rfc3588.hrl").
  -include("diameter_gen_base_accounting.hrl").
  %% The listening transports use RFC 3588 dictionaries, the client
  %% transports use either 3588 or 6733. (So can't use the record
  %% definitions in the latter case.)
  
  %% ===========================================================================
  
  -define(util, diameter_util).
  
  -define(A, list_to_atom).
  -define(L, atom_to_list).
  
  %% Don't use is_record/2 since dictionary hrl's aren't included.
  %% (Since they define conflicting reqcords with the same names.)
  -define(is_record(Rec, Name), (Name == element(1, Rec))).
  
  -define(ADDR, {127,0,0,1}).
  
  