anchor.diff:  					DesRealm, undefined, UserName, "AAAAccountingUsageSpec"}
   	end;
   dia_req_and_res(#'3gpp_ro_RAR'{'Origin-Realm' = OriginRealm,
  -		'Destination-Realm' = DesRealm, 'User-Name' = [UserName]} = Request,
  -		#'3gpp_ro_RAA'{'Result-Code' = ResultCode})
  +		'Origin-Host' = OriginHost, 'Destination-Realm' = DesRealm,
  +		'User-Name' = UserName}, #'3gpp_ro_RAA'{'Result-Code' = ResultCode})
   		when ResultCode >= 2000, ResultCode < 3000 ->
  -	case Request#'3gpp_ro_RAR'.'Origin-Host' of
  +	case OriginHost of
   		OriginHost1 when is_binary(OriginHost1) ->
   			{"success", "ro", OriginHost1, OriginHost1, undefined, OriginRealm,
   					DesRealm, undefined, UserName, "AAAAccountingUsageSpec"};
  
positive.code: 
  %% @hidden
  dia_req_and_res(#'3gpp_ro_CCR'{'Origin-Realm' = OriginRealm,
  		'Destination-Realm' = DesRealm, 'User-Name' = [UserName],
  		'Subscription-Id' = [#'3gpp_ro_Subscription-Id'{
  				'Subscription-Id-Data' = Subscriber} | _]} = Request,
  		#'3gpp_ro_CCA'{'Result-Code' = undefined}) ->
  	case Request#'3gpp_ro_CCR'.'Origin-Host' of
  		OriginHost1 when is_binary(OriginHost1) ->
  			{"unknown", "ro", OriginHost1, OriginHost1, undefined, OriginRealm,
  					DesRealm, Subscriber, UserName, "AAAAccountingUsageSpec"};
  
negative.code: 			{"address", ClientAddress},
  			{"domain", ClientDomain},
  			{"subdomain", OriginDomain}]},
  	SourceObj = case UserName of
  		[] ->
  			case Subscriber of
  				undefined ->
  					[];
  				Sub when is_binary(Sub) ->
  					[{"source", {struct, [{"user", {struct, [{"id", Sub}]}}]}}]
  			end;
  		[U] ->
  			case Subscriber of
  				undefined ->
  					[{"source", {struct, [{"user", {struct, [{"name", U}]}}]}}];
  				Sub when is_binary(Sub) ->
  					[{"source", {struct, [{"user", {struct,
  							[{"id", Sub}, {"name", U}]}}]}}]
  			end
  	end,
  	{struct, [{"@timestamp", ocs_log:iso8601(TS)},
  			{"event", EventObj},
  