anchor.diff:  		{aborted, Reason} ->
   			error_logger:error_report(["Failed user lookup",
   					{pgw_host, PgwHost}, {pgw_realm, PgwRealm},
  -					{imsi, IMSI}, {identity, Identity},
  +					{imsi, IMSI}, {identity, Identity}, {apn, APN},
   					{session, SessionId}, {error, Reason}]),
   			ResultCode = ?'DIAMETER_BASE_RESULT-CODE_UNABLE_TO_COMPLY',
   			Reply = response(ResultCode, NewStateData),
  
positive.code: 			case lists:keyfind(APN,
  					#'3gpp_swx_APN-Configuration'.'Service-Selection',
  					UserProfile#'3gpp_swx_Non-3GPP-User-Data'.'APN-Configuration') of
  				#'3gpp_swx_APN-Configuration'{} ->
  					send_register(NextStateData),
  					{next_state, profile, NextStateData, ?TIMEOUT};
  				_Other ->
  					ResultCode = ?'DIAMETER_BASE_RESULT-CODE_AUTHORIZATION_REJECTED',
  					Reply = response(ResultCode, NextStateData),
  
negative.code: 	NewStateData = StateData#statedata{from = From, request = Request,
  			identity = Identity, imsi = IMSI,
  			pgw_host = PgwHost, pgw_realm = PgwRealm,
  			pgw_id = PGW, pgw_plmn = VPLMN, apn_name = APN},
  	F = fun() ->
  			mnesia:index_read(session, IMSI, #session.imsi)
  	end,
  