anchor.diff:      end.
   
   
  -
  -
  +%% @private
  +parse(Resp) ->
  +    case catch nksip_parse:header({<<"Session-Expires">>, Resp}) of
  +        {error, undefied} -> undefined;
  +        {SE, Refresh} -> {SE, Refresh};
  +        _ -> invalid
  +    end.
  +
  +
  +
  +
  +
  +
  
positive.code:     nksip:response().
  
  proxy_response(Req, Resp) ->
      case nksip_parse:session_expires(Resp) of
          {ok, _, _} ->
              Resp;
          undefined ->
              case nksip_parse:session_expires(Req) of
                  {ok, SE, _} ->
                      case nksip_sipmsg:supported(Req, <<"timer">>) of
                          true ->
  
negative.code:              when Code>=200 andalso Code<300 ->
      #call{app_id=_AppId, opts=#call_opts{app_opts=AppOpts}} = Call,
      Default = nksip_config:get_cached(session_expires, AppOpts),
      {SE, Refresh} = case parse(Resp) of
          {ok, SE0, Refresh0} ->
              {SE0, Refresh0};
          undefined ->            
              case parse(Req) of
                  {ok, SE0, Refresh0} -> {SE0, Refresh0};
                  _ -> {Default, undefined}
              end;
  