#
# configuration for stress testing
#
#

debug=3          # debug level (cmd line: -dddddddddd)
fork=yes          # (cmd. line: -D)
#fork=no
#log_stderror=yes # (cmd line: -E)
log_stderror=yes	# (cmd line: -E)


children=8
check_via=no     # (cmd. line: -v)
#dns=on           # (cmd. line: -r)
#rev_dns=yes      # (cmd. line: -R)
port=5080
#listen=127.0.0.1
listen=195.37.77.101
loop_checks=0
# for more info: sip_router -h

#modules
loadmodule "modules/print/print.so"
loadmodule "modules/tm/tm.so"

#route[0]{
#	if (method=="BYE") { forward("bat.iptel.org", 5000); }
#	else forward("bat.iptel.org", 5090);
#	else t_forward("bat.iptel.org", "9" );
#	break;
#}

route[0]{
	log("SER: new request reveived\n");
	if (method=="BYE") {
		t_relay_to( "bat.iptel.org", "5000" );
	}
	else {
		t_relay_to( "bat.iptel.org", "5090" );
	};
#	break;
}

