anchor.diff:  		stale ->
   		    {stale, none, Class};
   		{authenticated, User} ->
  -		    UserAllowedToUseAddress = local:can_use_address(User, Address),
  +		    UserAllowedToUseAddress = local:can_use_address(User, URL),
   		    AllowedCallToNumber = local:is_allowed_pstn_dst(User, ToNumber, Header, Class),
   		    if
   			UserAllowedToUseAddress /= true ->
   			    logger:log(normal, "Auth: User ~p is not allowed to use address ~p (when placing PSTN "
  -				       "call to ~s (class ~p))", [User, Address, ToNumber, Class]),
  +				       "call to ~s (class ~p))", [User, sipurl:print(URL), ToNumber, Class]),
   			    {false, User, Class};
   			AllowedCallToNumber /= true ->
   			    logger:log(normal, "Auth: User ~p not allowed to call ~p in class ~p",
  
positive.code:     end.
  
  %%--------------------------------------------------------------------
  %% Function: can_use_address(User, Address)
  %%           User    = string()
  %%           Address = string()
  %% Descrip.:
  %% Returns : true  |
  %%           false |
  %%           R
  %%           R = local:can_use_address_detail() result
  %%
  %% Note    : Should be changed to just return true or false
  %%--------------------------------------------------------------------
  can_use_address(User, Address) ->
      case local:can_use_address_detail(User, Address) of
  	{Verdict, _} -> Verdict;
  	R -> R
      end.
  
  %%--------------------------------------------------------------------
  %% Function: can_use_address_detail(User, Address)
  %%           User    = string()
  %%           Address = string()
  %% Descrip.: Check if a given User may use address Address as From:
  %% Returns : {Verdict, Reason}
  %%           Verdict = true | false
  %%           Reason  = ok | eperm | nomatch | error
  %%--------------------------------------------------------------------
  can_use_address_detail(User, Address) when list(User), list(Address) ->
      URL = sipurl:parse(Address),
      case local:get_users_for_url(URL) of
  	[User] ->
  	    logger:log(debug, "Auth: User ~p is allowed to use address ~p",
  
negative.code: %%           User    = string(), SIP authentication username
  %%           Class   = atom(), the class that this ToNumberIn matched
  %%--------------------------------------------------------------------
  pstn_call_check_auth(Method, Header, URL, ToNumberIn, Classdefs)
    when is_list(Method), is_record(Header, keylist), is_record(URL, sipurl), is_list(ToNumberIn) ->
      ToNumber = case local:rewrite_potn_to_e164(ToNumberIn) of
  		   error -> ToNumberIn;
  		   N -> N
  