anchor.diff:  %% Don't know this AVP: see if it can be packed in an 'AVP' field
   %% undecoded. Note that the type field is 'undefined' in this case.
   
  -decode_AVP(Name, Avp, {Avps, Acc}) ->
  -    {[trim(Avp) | Avps], pack_AVP(Name, Avp, Acc)}.
  +decode_AVP(Name, Avp, Acc) ->
  +    {trim(Avp), pack_AVP(Name, Avp, Acc)}.
   
   %% rc/1
   
  
positive.code: %% g/4
  
  g({RC, ErrorData}, Avp, Acc, ComponentAvps) ->
      {Avps, {Rec, Errors}} = Acc,
      E = Avp#diameter_avp{data = [ErrorData]},
      {[[Avp | trim(ComponentAvps)] | Avps], {Rec, [{RC, E} | Errors]}}.
  
  %% d/5
  
  
negative.code: 
      try Mod:avp(decode, Data, AvpName) of
          V ->
              {H, A} = ungroup(V, Avp),
              {H, pack_avp(Name, A, Acc)}
      catch
          throw: {?TAG, {grouped, Error, ComponentAvps}} ->
              g(is_failed(), Error, Name, trim(Avp), Acc, ComponentAvps);
  