anchor.diff:      end.
   
   
  -%% Function: get_users_for_address_of_record/1
  -%% Description: Get all usernames of users matching an address. Used
  -%%              to find out to which users we should send a request.
  -%% Returns: ListOfUsers |
  -%%          error
  +%%--------------------------------------------------------------------
  +%% Function: get_users_for_address_of_record(Address)
  +%%           Address = string(), an address in string format.
  +%% Descrip.: Get all usernames of users matching an address. Used to
  +%%           find out to which users we should send a request.
  +%% Returns : Users |
  +%%           error
  +%%           Users = list() of string() 
   %%--------------------------------------------------------------------
   get_users_for_address_of_record(Address) ->
       case get_users_using_address(Address) of
  -	L when list(L) ->
  +	L when is_list(L) ->
   	    L;
   	Unknown ->
   	    logger:log(error, "userdb-file: Unexpected result from get_users_using_address(), address ~p result : ~p",
  
positive.code: 	    E = "sipuserdb_file module activated, but sipuserdb_file_filename not set - module disabled",
  	    logger:log(error, E),
  	    ignore;
  	Fn when list(Fn) ->
  	    case sipserver:get_env(sipuserdb_file_refresh_interval, 60) of
  		X when X == 0; X == none ->
  		    ok;
  		Interval when integer(Interval) ->
  		    {ok, T} = timer:send_interval(Interval * 1000, sipuserdb_file, {check_file})
  	    end,
  	    case get_mtime(Fn) of
  		{ok, MTime} ->
  		    case read_userdb(#state{fn=Fn}, MTime, init) of
  			NewState when record(NewState, state) ->
  			    {ok, NewState};
  			{error, Reason} ->
  			    logger:log(error, Reason, []),
  
negative.code: collect_usernames2([], Res) ->
      %% Make list sorted and remove duplicates
      lists:usort(Res);
  collect_usernames2([H | T], Res) when is_record(H, user) ->
      collect_usernames2(T, lists:append(Res, [H#user.name]));
  collect_usernames2([H | T], Res) when is_record(H, address) ->
      collect_usernames2(T, lists:append(Res, [H#address.user]));
  collect_usernames2([H | T], Res) ->
      logger:log(error, "userdb-file: Input to collect_usernames2 is neither address nor user record : ~p",
  