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