anchor.diff:  				{ok, Ref} ->
   					StateData = #statedata{transport_ref = Ref, address = Address,
   							port = Port, options = Options},
  -					{ok, wait_for_start, StateData, 0};
  +					init1(StateData);
   				{error, Reason} ->
   					{stop, Reason}
   			end;
   		{error, Reason} ->
   			{stop, Reason}
   	end.
  +%% @hidden
  +init1(StateData) ->
  +	case ocs_log:auth_open() of
  +		ok ->
  +			process_flag(trap_exit, true),
  +			{ok, wait_for_start, StateData, 0};
  +		{error, Reason} ->
  +			{stop, Reason}
  +	end.
   
   -spec wait_for_start(Event, StateData) -> Result
   	when
  
positive.code: 	SvcName = ?DIAMETER_AUTH_SERVICE(Address, Port),
  	case diameter:remove_transport(SvcName, TransRef) of
  		ok ->
  			diameter:stop_service(SvcName);
  		{error, Reason} ->
  			{error, Reason}
  	end.
  
  -spec code_change(OldVsn, StateName, StateData, Extra) -> Result
  
negative.code: %% @see //stdlib/gen_fsm:handle_info/3
  %% @private
  %%
  handle_info(#diameter_event{info = start}, wait_for_start, StateData) ->
  	{next_state, started, StateData};
  handle_info(#diameter_event{info = Event, service = Service},
  		StateName, StateData) when element(1, Event) == up;
  		element(1, Event) == down ->
  	{_PeerRef, #diameter_caps{origin_host = {_, Peer}}} = element(3, Event),
  	error_logger:info_report(["DIAMETER peer connection state changed",
  			{service, Service}, {event, element(1, Event)},
  			{peer, binary_to_list(Peer)}]),
  	{next_state, StateName, StateData};
  handle_info(#diameter_event{info = {watchdog,
  		_Ref, _PeerRef, {_From, _To}, _Config}}, StateName, StateData) ->
  	{next_state, StateName, StateData};
  handle_info(#diameter_event{info = Event, service = Service},
  		StateName, StateData) ->
  	error_logger:info_report(["DIAMETER event",
  			{service, Service}, {event, Event}]),
  	{next_state, StateName, StateData};
  handle_info({'EXIT', _Pid, noconnection}, StateName, StateData) ->
  	{next_state, StateName, StateData}.
  
  -spec terminate(Reason, StateName, StateData) -> any()
  