anchor.diff:              case local:incomingproxy_challenge_before_relay(Origin, Request, Dst) of
                   false ->
                       logger:log(debug, "Relay: Failed authentication, but local policy says we should not challenge"),
  -                    sippipe:start(THandler, none, Request, Dst, 900);
  +                    sippipe:start(THandler, none, Request, Dst, ?SIPPIPE_TIMEOUT);
                   _ ->
   		    logger:log(debug, "Relay: Failed authentication, sending challenge"),
   		    logger:log(normal, "~s: incomingproxy: Relay ~s -> 407 Proxy Authorization Required",
  
positive.code: 	{authenticated, User} ->
  	    logger:log(debug, "Relay: User ~p is authenticated", [User]),
  	    logger:log(normal, "~s: incomingproxy: Relay ~s (authenticated)", [LogTag, relay_dst2str(Dst)]),
  	    sippipe:start(THandler, none, Request, Dst, 900);
  	{stale, User} ->
  	    case local:incomingproxy_challenge_before_relay(Origin, Request, Dst) of
  		false ->
  		    logger:log(debug, "Relay: STALE authentication (user ~p), but local policy says we "
  			       "should not challenge", [User]),
  		    sippipe:start(THandler, none, Request, Dst, 900);
  		true ->
  		    logger:log(debug, "Relay: STALE authentication, sending challenge"),
  		    logger:log(normal, "~s: incomingproxy: Relay ~s -> STALE authentication (user ~p) ->"
  
negative.code: %%--------------------------------------------------------------------
  -include("siprecords.hrl").
  -include("sipsocket.hrl").
  
  %%--------------------------------------------------------------------
  %% Macros
  %%--------------------------------------------------------------------
  -define(SIPPIPE_TIMEOUT, 900).
  
  %%====================================================================
  %% Behaviour functions
  