Browse code

ser.cfg moved to test to avoid confusions with default etc/ser.cfg

Jiri Kuthan authored on 04/09/2002 11:43:37
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,55 +0,0 @@
1
-debug=9          # debug level (cmd line: -dddddddddd)
2
-check_via=1      # (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
-fifo=/tmp/ser_fifo
8
-# for more info: sip_router -h
9
-
10
-
11
-route{
12
-
13
-	if false and forward("mobile69") { log("forwarded ok\n"); break; }
14
-	else log("error forwarding\n");
15
-	
16
-	if false log("if\n")
17
-	else log("else\n");
18
-	
19
-	if { log("test\n"); break; log("test2\n"); } log ("if {}");
20
-	
21
-	if (src_ip=~'(dorian)|(ekina)|(terix)' & method=~'^inv')
22
-				forward(centauri.fokus.gmd.de);
23
-	if src_ip=~"^192\.168\.[0-9]{1,3}\.[0-9]{1,3}$" {
24
-			log(1,"msg. from a private network\n");
25
-			route(1);
26
-			log(1, "after route(1)\n");
27
-			break;
28
-	};
29
-	if src_ip==0.0.0.0/0 {
30
-		setuserpass("andrei:test");
31
-		log(1, " test msg\n"); forward(192.168.46.55);
32
-		setuser("foo");sethostport("bar.com:6000");
33
-		forward(192.168.46.69);drop;
34
-	};
35
-	log("default route[0]\n");
36
-}
37
-
38
-route[1]{
39
-	if src_ip==192.168.46.61 { log("possible loop, dropping\n"); drop; };
40
-	if (src_ip==192.168.46.0/24) { 
41
-			log("routing with rt2\n");route(2); log("we're back\n");
42
-			break;
43
-	};
44
-	if src_ip==0.0.0.0/0 { log(1, "we'll drop this one too\n"); drop; };
45
-	log("default route[1]\n");
46
-}
47
-
48
-route[2]{
49
-	if (method=~'^ACK' and uri=~'.*fokus') forward("fox.iptel.org");
50
-	if ! method=~'^INV' forward(193.175.135.179); /* dorian */
51
-	if method=~'.' { log("spying...\n"); send(dorian,8000);/* raw sip packet */
52
-						forward("fox.iptel.org");
53
-					};
54
-	log("default route[2]\n");
55
-}
Browse code

added fifo option

Jiri Kuthan authored on 19/08/2002 19:34:57
Showing 1 changed files
... ...
@@ -4,6 +4,7 @@ dns=on           # (cmd. line: -r)
4 4
 rev_dns=yes      # (cmd. line: -R)
5 5
 fork=no          # (cmd. line: -D)
6 6
 log_stderror=yes # (cmd line: -E)
7
+fifo=/tmp/ser_fifo
7 8
 # for more info: sip_router -h
8 9
 
9 10
 
Browse code

database module interface moved.

Jan Janak authored on 09/07/2002 09:08:25
Showing 1 changed files
... ...
@@ -6,6 +6,7 @@ fork=no          # (cmd. line: -D)
6 6
 log_stderror=yes # (cmd line: -E)
7 7
 # for more info: sip_router -h
8 8
 
9
+
9 10
 route{
10 11
 
11 12
 	if false and forward("mobile69") { log("forwarded ok\n"); break; }
Browse code

*** empty log message ***

Andrei Pelinescu-Onciul authored on 24/10/2001 19:20:49
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,53 @@
1
+debug=9          # debug level (cmd line: -dddddddddd)
2
+check_via=1      # (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
+# for more info: sip_router -h
8
+
9
+route{
10
+
11
+	if false and forward("mobile69") { log("forwarded ok\n"); break; }
12
+	else log("error forwarding\n");
13
+	
14
+	if false log("if\n")
15
+	else log("else\n");
16
+	
17
+	if { log("test\n"); break; log("test2\n"); } log ("if {}");
18
+	
19
+	if (src_ip=~'(dorian)|(ekina)|(terix)' & method=~'^inv')
20
+				forward(centauri.fokus.gmd.de);
21
+	if src_ip=~"^192\.168\.[0-9]{1,3}\.[0-9]{1,3}$" {
22
+			log(1,"msg. from a private network\n");
23
+			route(1);
24
+			log(1, "after route(1)\n");
25
+			break;
26
+	};
27
+	if src_ip==0.0.0.0/0 {
28
+		setuserpass("andrei:test");
29
+		log(1, " test msg\n"); forward(192.168.46.55);
30
+		setuser("foo");sethostport("bar.com:6000");
31
+		forward(192.168.46.69);drop;
32
+	};
33
+	log("default route[0]\n");
34
+}
35
+
36
+route[1]{
37
+	if src_ip==192.168.46.61 { log("possible loop, dropping\n"); drop; };
38
+	if (src_ip==192.168.46.0/24) { 
39
+			log("routing with rt2\n");route(2); log("we're back\n");
40
+			break;
41
+	};
42
+	if src_ip==0.0.0.0/0 { log(1, "we'll drop this one too\n"); drop; };
43
+	log("default route[1]\n");
44
+}
45
+
46
+route[2]{
47
+	if (method=~'^ACK' and uri=~'.*fokus') forward("fox.iptel.org");
48
+	if ! method=~'^INV' forward(193.175.135.179); /* dorian */
49
+	if method=~'.' { log("spying...\n"); send(dorian,8000);/* raw sip packet */
50
+						forward("fox.iptel.org");
51
+					};
52
+	log("default route[2]\n");
53
+}