Browse code

- more cleanup

Andrei Pelinescu-Onciul authored on 24/03/2004 11:08:14
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,92 +0,0 @@
1
-# Note: config file options takes precedence over command-line
2
-#
3
-#
4
-#
5
-
6
-# don't want to be too noisy when measuring speed
7
-#debug=9
8
-debug=1
9
-# disable all checks for speed
10
-check_via=0
11
-dns=off
12
-rev_dns=off
13
-#
14
-#fork=no
15
-# launch many processes for speed
16
-fork=yes
17
-#
18
-#log_stderror=yes
19
-# do not print out anything to stderr -- that would slow down
20
-log_stderror=no
21
-# many children will help to serve even if some block
22
-children=64
23
-# allow for a huge buffer size as long as OS allows
24
-maxbuffer=999999
25
-# port on which the server will be listening
26
-port=5062
27
-
28
-# listen on a specific interface
29
-#listen=1.2.3.4
30
-
31
-# debug settings
32
-#
33
-#debug=9          # debug level (cmd line: -dddddddddd)
34
-#check_via=1      # (cmd. line: -v)
35
-#dns=on           # (cmd. line: -r)
36
-#rev_dns=yes      # (cmd. line: -R)
37
-#fork=no          # (cmd. line: -D)
38
-#log_stderror=yes # (cmd line: -E)
39
-#port=5062
40
-
41
-
42
-
43
-# for more info: sip_router -h
44
-
45
-
46
-
47
-#loadmodule "modules/textops/textops.so"
48
-
49
-
50
-
51
-
52
-route{
53
-
54
-
55
-#	use syslog facility to report something
56
-#       log("entered"); 
57
-
58
-#	change requrest-URI
59
-       rewritehostport("newdomain.com:5062");
60
-#	other rewrites: sethost, setuser, setuserpass, setport, sethosport (set==rewrite too)
61
-
62
-# 	forward to address in current URI (the rewritten one now!)
63
-#       forward(uri:host, uri:port);  
64
-	forward( "localhost", 6666);
65
-
66
-# 	condition with regular expression matching (case-insensitive)
67
-#        if (method=="REGISTER" & uri=~"^sip:.*@iptel.org" & src_ip==192.68.99.0/24 ) 
68
-#		forward to a fixed destination
69
-#                forward("fox.iptel.org", 5555 )
70
-#        else forward ("bat.iptel.org");
71
-
72
-
73
-# 	pass request to an external program
74
-#        exec('/bin/ls >/tmp/x');        
75
-
76
-
77
-# 	textops module (requires the module to be loaded!)
78
-#        replace('^User-Agent:.*$', "User-Agent: ser 0.8.x");
79
-#        search_append('To:.*$', "Foo Bar");
80
-
81
-
82
-# 	route ... kindof goto , see route[1] bellow
83
-#        route(1);
84
-}
85
-
86
-
87
-
88
-#route[1] {
89
-#        log("route 1 hit");
90
-#} 
91
-
92
-
Browse code

more examples in demo.cfg

Jiri Kuthan authored on 14/11/2001 05:55:45
Showing 1 changed files
... ...
@@ -1,4 +1,6 @@
1
-# performance settings for speed
1
+# Note: config file options takes precedence over command-line
2
+#
3
+#
2 4
 #
3 5
 
4 6
 # don't want to be too noisy when measuring speed
... ...
@@ -55,6 +57,7 @@ route{
55 57
 
56 58
 #	change requrest-URI
57 59
        rewritehostport("newdomain.com:5062");
60
+#	other rewrites: sethost, setuser, setuserpass, setport, sethosport (set==rewrite too)
58 61
 
59 62
 # 	forward to address in current URI (the rewritten one now!)
60 63
 #       forward(uri:host, uri:port);  
Browse code

Commented Demonstration Config File

Jiri Kuthan authored on 12/11/2001 22:48:59
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,89 @@
1
+# performance settings for speed
2
+#
3
+
4
+# don't want to be too noisy when measuring speed
5
+#debug=9
6
+debug=1
7
+# disable all checks for speed
8
+check_via=0
9
+dns=off
10
+rev_dns=off
11
+#
12
+#fork=no
13
+# launch many processes for speed
14
+fork=yes
15
+#
16
+#log_stderror=yes
17
+# do not print out anything to stderr -- that would slow down
18
+log_stderror=no
19
+# many children will help to serve even if some block
20
+children=64
21
+# allow for a huge buffer size as long as OS allows
22
+maxbuffer=999999
23
+# port on which the server will be listening
24
+port=5062
25
+
26
+# listen on a specific interface
27
+#listen=1.2.3.4
28
+
29
+# debug settings
30
+#
31
+#debug=9          # debug level (cmd line: -dddddddddd)
32
+#check_via=1      # (cmd. line: -v)
33
+#dns=on           # (cmd. line: -r)
34
+#rev_dns=yes      # (cmd. line: -R)
35
+#fork=no          # (cmd. line: -D)
36
+#log_stderror=yes # (cmd line: -E)
37
+#port=5062
38
+
39
+
40
+
41
+# for more info: sip_router -h
42
+
43
+
44
+
45
+#loadmodule "modules/textops/textops.so"
46
+
47
+
48
+
49
+
50
+route{
51
+
52
+
53
+#	use syslog facility to report something
54
+#       log("entered"); 
55
+
56
+#	change requrest-URI
57
+       rewritehostport("newdomain.com:5062");
58
+
59
+# 	forward to address in current URI (the rewritten one now!)
60
+#       forward(uri:host, uri:port);  
61
+	forward( "localhost", 6666);
62
+
63
+# 	condition with regular expression matching (case-insensitive)
64
+#        if (method=="REGISTER" & uri=~"^sip:.*@iptel.org" & src_ip==192.68.99.0/24 ) 
65
+#		forward to a fixed destination
66
+#                forward("fox.iptel.org", 5555 )
67
+#        else forward ("bat.iptel.org");
68
+
69
+
70
+# 	pass request to an external program
71
+#        exec('/bin/ls >/tmp/x');        
72
+
73
+
74
+# 	textops module (requires the module to be loaded!)
75
+#        replace('^User-Agent:.*$', "User-Agent: ser 0.8.x");
76
+#        search_append('To:.*$', "Foo Bar");
77
+
78
+
79
+# 	route ... kindof goto , see route[1] bellow
80
+#        route(1);
81
+}
82
+
83
+
84
+
85
+#route[1] {
86
+#        log("route 1 hit");
87
+#} 
88
+
89
+