Browse code

new config files

Jiri Kuthan authored on 07/12/2001 03:28:29
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,52 @@
1
+debug=9          # debug level (cmd line: -dddddddddd)
2
+check_via=yes     # (cmd. line: -v)
3
+dns=on           # (cmd. line: -r)
4
+rev_dns=yes      # (cmd. line: -R)
5
+fork=no          # (cmd. line: -D)
6
+log_stderror=yes # (cmd line: -E)
7
+port=5080
8
+listen=192.168.99.100
9
+loop_checks=1
10
+# for more info: sip_router -h
11
+
12
+#modules
13
+loadmodule "modules/print/print.so"
14
+loadmodule "modules/tm/tm.so"
15
+
16
+route{
17
+	log("trying forward to uri");
18
+#	setuser("jiri");
19
+#	forward(uri:host,uri:port);
20
+#	forward(127.0.0.1, 5090);
21
+	log("after forward");
22
+
23
+	if ( t_lookup_request()) {
24
+		if ( method=="ACK" )	{
25
+			log("SER: ACK received -> t_release\n");
26
+			t_release();
27
+		} else {
28
+			t_retransmit_reply();
29
+			log("SER: yet another annoying retranmission\n");
30
+		};
31
+	} else {
32
+		t_add_transaction();
33
+		if (method=="CANCEL") {
34
+			log("SER: new CANCEL\n");
35
+			# XXX ... it wants me to put status code in ""
36
+			t_send_reply( "200", "glad to cancel");
37
+		} else {
38
+			log("SER: new transaction\n");
39
+			t_send_reply("100", "trying -- your call is important to us");
40
+		};
41
+		#rewritehost("xy.com");
42
+		# XXX ... it wants me to put port nr in ""
43
+		#t_forward("benetnash.fokus.gmd.de", "5080" );
44
+
45
+		t_forward("iptel.org", "5060" );
46
+#		t_forward("195.37.78.146", "5060" );
47
+		# XXX ... it doesn't like default port numbers
48
+		# t_forward("fox.iptel.org" );
49
+		# XXX t_forward_uri ... not done yet
50
+	};
51
+		
52
+}
0 53
new file mode 100644
... ...
@@ -0,0 +1,39 @@
1
+debug=9          # debug level (cmd line: -dddddddddd)
2
+log_stderror=yes # (cmd line: -E)
3
+check_via=yes     # (cmd. line: -v)
4
+dns=on           # (cmd. line: -r)
5
+rev_dns=yes      # (cmd. line: -R)
6
+fork=no          # (cmd. line: -D)
7
+port=5080
8
+listen=192.168.99.100
9
+loop_checks=1
10
+# for more info: sip_router -h
11
+
12
+#modules
13
+loadmodule "modules/print/print.so"
14
+loadmodule "modules/tm/tm.so"
15
+
16
+route{
17
+	if ( t_lookup_request()) {
18
+		if ( method=="ACK" )	{
19
+			t_release();
20
+			t_forward("195.37.77.100", "5090" );
21
+		} else {
22
+			t_retransmit_reply();
23
+		};
24
+	} else {
25
+		if (method=="ACK") {
26
+			forward(195.37.77.100, 5090 );
27
+		} else {
28
+			t_add_transaction();
29
+			if (method=="CANCEL") {
30
+				log("SER: new CANCEL\n");
31
+				t_send_reply( "200", "glad to cancel");
32
+			} else {
33
+				t_send_reply("100", "trying -- your call is important to us");
34
+			};
35
+			t_forward("195.37.77.100", "5090" );
36
+		};
37
+	};
38
+		
39
+}