t_debug.cfg
8caad01d
 debug=9          # debug level (cmd line: -dddddddddd)
 check_via=yes     # (cmd. line: -v)
 dns=on           # (cmd. line: -r)
 rev_dns=yes      # (cmd. line: -R)
 fork=no          # (cmd. line: -D)
 log_stderror=yes # (cmd line: -E)
a4e93dc3
 #port=5080
 #listen=192.168.99.100
48ee6257
 loop_checks=1
8caad01d
 # for more info: sip_router -h
 
 #modules
a4e93dc3
 loadmodule "modules/print/print.so"
0468a81a
 loadmodule "modules/tm/tm.so"
8caad01d
 
 route{
 	log("trying forward to uri");
 #	forward(uri:host,uri:port);
f0631398
 #	forward(127.0.0.1, 5090);
8caad01d
 	log("after forward");
 
 	if ( t_lookup_request()) {
 		if ( method=="ACK" )	{
8b863d8c
 			log("SER: ACK received -> t_release\n");
d2dfebc9
 			t_release();
8caad01d
 		} else {
 			t_retransmit_reply();
68a3fc65
 			log("SER: yet another annoying retranmission\n");
8caad01d
 		};
 	} else {
 		t_add_transaction();
 		if (method=="CANCEL") {
68a3fc65
 			log("SER: new CANCEL\n");
8caad01d
 			# XXX ... it wants me to put status code in ""
 			t_send_reply( "200", "glad to cancel");
 		} else {
68a3fc65
 			log("SER: new transaction\n");
 			t_send_reply("100", "trying -- your call is important to us");
8caad01d
 		};
f0631398
 		#rewritehost("xy.com");
8caad01d
 		# XXX ... it wants me to put port nr in ""
f0631398
 		#t_forward("benetnash.fokus.gmd.de", "5080" );
b9eaa9ec
 		t_forward("iptel.org", "5060" );
8caad01d
 		# XXX ... it doesn't like default port numbers
 		# t_forward("fox.iptel.org" );
e0f6496d
 		# XXX t_forward_uri ... not done yet
8caad01d
 	};
 		
 }