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
+