anchor.diff:                                 'Origin-Realm' = OR,
                                  'AVP' = Avps}};
   
  +%% send_noreply
   request(#diameter_base_STR{'Termination-Cause' = T},
           _Caps)
     when T /= ?LOGOUT ->
       discard;
   
  +%% send_destination_5
   request(#diameter_base_STR{'Destination-Realm'= R},
           #diameter_caps{origin_realm = {OR, _}})
     when R /= undefined, R /= OR ->
       {protocol_error, ?REALM_NOT_SERVED};
   
  +%% send_destination_6
   request(#diameter_base_STR{'Destination-Host'= [H]},
           #diameter_caps{origin_host = {OH, _}})
     when H /= OH ->
  
positive.code:     {reply, #diameter_packet{header = #diameter_header{is_error = true},%% not
                               msg = Ans}};
  
  request(#diameter_base_accounting_ACR{'Session-Id' = SId,
                                        'Accounting-Record-Type' = RT,
                                        'Accounting-Record-Number' = 3 = RN},
  
negative.code:                   {'Accounting-Record-Number', RN}],
      {eval, {reply, Ans}, {erlang, now, []}};
  
  %% send_ok
  request(#diameter_base_accounting_ACR{'Session-Id' = SId,
                                        'Accounting-Record-Type' = RT,
                                        'Accounting-Record-Number' = 1 = RN},
          #diameter_caps{origin_host = {OH, _},
                         origin_realm = {OR, _}}) ->
      {reply, ['ACA', {'Result-Code', ?SUCCESS},
  