anchor.diff:  -module(nksip_uac_lib).
   -author('Carlos Gonzalez <carlosj.gf@gmail.com>').
   
  --export([make/4, make_cancel/1, is_stateless/2]).
  +-export([make/5, make_cancel/1, is_stateless/2]).
   -include("nksip.hrl").
    
   
  
positive.code:             FromTag -> 
                  FromOpts = From#uri.ext_opts
          end,
          case nksip_lib:get_binary(user_agent, Opts) of
              <<>> -> UserAgent = <<"NkSIP ", ?VERSION>>;
              UserAgent -> ok
          end,
          Headers = 
                  proplists:get_all_values(pre_headers, Opts) ++
                  nksip_lib:get_value(headers, Opts, []) ++
                  proplists:get_all_values(post_headers, Opts),
          Body = nksip_lib:get_value(body, Opts, <<>>),
          Headers1 = nksip_headers:update(Headers, [
              {default_single, <<"User-Agent">>, UserAgent},
              case lists:member(make_allow, Opts) of
                  true -> {default_single, <<"Allow">>, nksip_sipapp_srv:allowed(AppId)};
                  false -> []
              end,
              case lists:member(make_supported, Opts) of
                  true -> {default_single, <<"Supported">>, ?SUPPORTED};
                  false -> []
              end,
              case lists:member(make_accept, Opts) of
                  true -> {default_single, <<"Accept">>, ?ACCEPT};
                  false -> []
              end,
              case lists:member(make_date, Opts) of
                  true -> {default_single, <<"Date">>, nksip_lib:to_binary(
                                                      httpd_util:rfc1123_date())};
                  false -> []
  
negative.code:                     Routes -> ok
                  end
          end,
          case nksip_lib:get_value(contact, FullOpts, []) of
              [] ->
                  Contacts = [];
              ContactSpec ->
  