瀏覽代碼

new config files

Jiri Kuthan 24 年之前
父節點
當前提交
2cecf50faf
共有 2 個文件被更改,包括 91 次插入0 次删除
  1. 52 0
      test/td.cfg
  2. 39 0
      test/tp.cfg

+ 52 - 0
test/td.cfg

@@ -0,0 +1,52 @@
+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)
+port=5080
+listen=192.168.99.100
+loop_checks=1
+# for more info: sip_router -h
+
+#modules
+loadmodule "modules/print/print.so"
+loadmodule "modules/tm/tm.so"
+
+route{
+	log("trying forward to uri");
+#	setuser("jiri");
+#	forward(uri:host,uri:port);
+#	forward(127.0.0.1, 5090);
+	log("after forward");
+
+	if ( t_lookup_request()) {
+		if ( method=="ACK" )	{
+			log("SER: ACK received -> t_release\n");
+			t_release();
+		} else {
+			t_retransmit_reply();
+			log("SER: yet another annoying retranmission\n");
+		};
+	} else {
+		t_add_transaction();
+		if (method=="CANCEL") {
+			log("SER: new CANCEL\n");
+			# XXX ... it wants me to put status code in ""
+			t_send_reply( "200", "glad to cancel");
+		} else {
+			log("SER: new transaction\n");
+			t_send_reply("100", "trying -- your call is important to us");
+		};
+		#rewritehost("xy.com");
+		# XXX ... it wants me to put port nr in ""
+		#t_forward("benetnash.fokus.gmd.de", "5080" );
+
+		t_forward("iptel.org", "5060" );
+#		t_forward("195.37.78.146", "5060" );
+		# XXX ... it doesn't like default port numbers
+		# t_forward("fox.iptel.org" );
+		# XXX t_forward_uri ... not done yet
+	};
+		
+}

+ 39 - 0
test/tp.cfg

@@ -0,0 +1,39 @@
+debug=9          # debug level (cmd line: -dddddddddd)
+log_stderror=yes # (cmd line: -E)
+check_via=yes     # (cmd. line: -v)
+dns=on           # (cmd. line: -r)
+rev_dns=yes      # (cmd. line: -R)
+fork=no          # (cmd. line: -D)
+port=5080
+listen=192.168.99.100
+loop_checks=1
+# for more info: sip_router -h
+
+#modules
+loadmodule "modules/print/print.so"
+loadmodule "modules/tm/tm.so"
+
+route{
+	if ( t_lookup_request()) {
+		if ( method=="ACK" )	{
+			t_release();
+			t_forward("195.37.77.100", "5090" );
+		} else {
+			t_retransmit_reply();
+		};
+	} else {
+		if (method=="ACK") {
+			forward(195.37.77.100, 5090 );
+		} else {
+			t_add_transaction();
+			if (method=="CANCEL") {
+				log("SER: new CANCEL\n");
+				t_send_reply( "200", "glad to cancel");
+			} else {
+				t_send_reply("100", "trying -- your call is important to us");
+			};
+			t_forward("195.37.77.100", "5090" );
+		};
+	};
+		
+}