anchor.diff:  		secret :: binary(),
   		session_id:: {NAS :: inet:ip_address() | string(),
   				Port :: string(), Peer :: string()},
  -		socket :: term()}).
  +		socket :: term(),
  +		subscriber :: binary()}).
   
   -define(TIMEOUT, 30000).
   
  
positive.code: -export([]).
  
  %% export the ocs_simple_auth_fsm state callbacks
  -export([idle/2]).
  
  %% export the call backs needed for gen_fsm behaviour
  -export([init/1, handle_event/3, handle_sync_event/4, handle_info/3,
  
negative.code: %% @@see //stdlib/gen_fsm:StateName/2
  %% @private
  %%
  send_response(timeout, StateData)->
  	{stop, shutdown, StateData};
  send_response({#radius{code = ?AccessRequest, id = RadiusID,
  		authenticator =  RequestAuthenticator,
  		attributes = Attributes}, RadiusFsm},
  		#statedata{session_id = SessionID, secret = Secret} = StateData) ->
  	Subscriber = radius_attributes:fetch(?UserName, Attributes),
  	Password = radius_attributes:fetch(?UserPassword, Attributes),
  	NewStateData = StateData#statedata{subscriber = Subscriber},
  	case ocs:find_subscriber(Subscriber) of
  		{ok, Password, _, _} ->
  			send_response(?AccessAccept, RadiusID, Attributes, RequestAuthenticator,
  						Secret, RadiusFsm),
  			{stop, {shutdown, SessionID}, NewStateData };
  		{error, not_found} ->
  			case ocs:add_guest_subscriber(Subscriber, Password, Attributes) of
  				ok ->
  					send_response(?AccessAccept, RadiusID, Attributes, RequestAuthenticator,
  							Secret, RadiusFsm),
  					{stop, {shutdown, SessionID}, NewStateData };
  				{error, _} ->
  					send_response(?AccessReject, RadiusID, Attributes, RequestAuthenticator,
  							Secret, RadiusFsm),
  					{stop, {shutdown, SessionID}, NewStateData }
  			end
  	end.
  
  -spec handle_event(Event :: term(), StateName :: atom(),
  		StateData :: #statedata{}) ->
  