anchor.diff:  	    false
       end.
   
  -is_me(Hostname) ->
  -    case homedomain(Hostname) of
  +homedomain(Domain) ->
  +    case util:casegrep(Domain, sipserver:get_env(homedomain, [])) of
   	true ->
   	    true;
   	_ ->
   	    HostnameList = lists:append(sipserver:get_env(myhostnames, []), [siphost:myip()]),
  -	    util:casegrep(Hostname, HostnameList)
  -    end.
  -
  -homedomain(Domain) ->
  -    util:casegrep(Domain, sipserver:get_env(homedomain, [])).
  +	    util:casegrep(Domain, HostnameList)
  +    end.
   
   get_remote_party_number(Key, URI, DstHost) ->
       {_, _, Host, _, _} = URI,
  
positive.code: 	    logger:log(debug, "Lookup: Address lookup of ~p -> ~p", [Key, Loc]),
  	    Loc;
  	{atomic, Locations} ->
  	    BestLocations = prioritize_locations(Locations),
  	    logger:log(debug, "Lookup: Best location(s) of ~p :~n~p", [Key, BestLocations]),
  	    % check if more than one location was found.
  	    case BestLocations of
  	        [] ->
  
negative.code: 	    none;
  	URL ->
  	    {E164User, _, E164Host, _, _} = sipurl:parse(URL),
  	    IsMe = homedomain(E164Host),
  	    NewE164 = rewrite_potn_to_e164(E164User),
  	    SameE164 = util:casecompare(NewE164, "+" ++ E164),
  	    if
  