test/th-uri-2.cfg
36afd9b3
 #
739de48c
 # tm test configuration, please don't touch
 # - andrei
36afd9b3
 #
739de48c
 # $Id$
36afd9b3
 #
739de48c
 #
 
36afd9b3
 
 
72381040
 debug=3          # debug level (cmd line: -dddddddddd)
84671d1b
 fork=yes          # (cmd. line: -D)
 #fork=no
36afd9b3
 log_stderror=yes # (cmd line: -E)
 #log_stderror=no	# (cmd line: -E)
 
 
b356e02c
 children=4
36afd9b3
 check_via=no     # (cmd. line: -v)
 dns=on           # (cmd. line: -r)
 rev_dns=yes      # (cmd. line: -R)
 #port=5070
72381040
 #listen=127.0.0.1
b356e02c
 #listen=192.168.57.33
6e94f57f
 #listen=192.168.57.72
733a6458
 #listen=10.0.0.179
36afd9b3
 loop_checks=0
 # for more info: sip_router -h
 
 #modules
 #loadmodule "modules/print/print.so"
 loadmodule "modules/tm/tm.so"
739de48c
 #loadmodule "modules/rr/rr.so"
36afd9b3
 loadmodule "modules/maxfwd/maxfwd.so"
 
 
 route{
              if ( mf_is_maxfwd_present() )
              {
                    if ( !mf_decrement_maxfwd() )
                    {
                      log("SER : unable to decrement MAX_FORWARD!\n");
                    };
                    if ( mf_is_maxfwd_zero() )
                    {
                      log("SER: MAX FORWARD header is zero\n");
                      drop();
                    };
              }else{
                    mf_add_maxfwd_header( "10" );
              };
 
              t_relay();
 }