anchor.diff:      end.
   
   %% part of fetch_actions_for_users/1
  -fetch_users_locations_as_actions(Users) ->
  -    Locations = local:get_locations_for_users(Users),
  +fetch_users_locations_as_actions(Users, Proto) ->
  +    URL = sipurl:new([{proto, Proto}]),
  +    Locations = local:lookupuser_locations(Users, URL),
       locations_to_actions(Locations).
   
   %%--------------------------------------------------------------------
  
positive.code: %% Returns : Actions = list() of sipproxy_action record()
  %%--------------------------------------------------------------------
  fetch_actions_for_users(Users, Proto) ->
      Actions = fetch_users_locations_as_actions(Users),
      case local:get_forwards_for_users(Users) of
  	nomatch ->
  	    Actions;
  
negative.code: locations_to_actions2([], Res) ->
      lists:reverse(Res);
  
  locations_to_actions2([H | T], Res) when is_record(H, siplocationdb_e) ->
      Timeout = sipserver:get_env(appserver_call_timeout, 40),
      URL = siplocation:to_url(H),
      CallAction = #sipproxy_action{action=call,
  				  requri=URL,
  				  timeout=Timeout},
  