anchor.diff:      lists:usort(Res);
   get_forwards_for_users2([H | T], Res) ->
       case get_forward_for_user(H) of
  -	error ->
  -	    error;
   	nomatch ->
   	    get_forwards_for_users2(T, Res);
   	Fwd ->
  
positive.code: %%--------------------------------------------------------------------
  %% Function: get_telephonenumber_for_user(User)
  %%           User = string()
  %% Descrip.: Return the telephone number for a user. We do this by
  %%           fetching all addresses for the user and then examining
  %%           them to see if any of them is a tel: URL, or has a
  %%           user part which is all numeric or is an E.164 number.
  %%           The numbering plan in the number return is not specified.
  %% Returns : Number  |
  %%           nomatch
  %%           Number = string()
  %%--------------------------------------------------------------------
  get_telephonenumber_for_user(User) ->
      case phone:get_numbers_for_user(User) of
  	{atomic, [FirstNumber | _]} ->
  	    FirstNumber;
  	_ ->
  	    nomatch
      end.
  
  %%--------------------------------------------------------------------
  
negative.code: %%           is allowed to call to, through a pstnproxy. What class a
  %%           PSTN number is in is determined through pstnproxy
  %%           configuration.
  %% Returns : Classes |
  %%           nomatch |
  %%           error
  %%           Classes = list() of atom()
  %%--------------------------------------------------------------------
  get_classes_for_user(User) ->
      case phone:get_user(User) of
  	{atomic, []} ->
  	    logger:log(debug, "userdb-mnesia: No such user ~p when fetching classes", [User]),
  	    nomatch;
  	{atomic, [{_Password, _Flags, Classes}]} ->
  	    Classes;
  	Unknown ->
  	    logger:log(error, "userdb-mnesia: Unexpected result from phone:get_user(), user ~p result : ~p",
  