- sock_lists completely re-organized
[sip-router] / test / test.cfg
index 0c39238..1ff0c5f 100644 (file)
@@ -1,29 +1,41 @@
-debug=9          # debug level (cmd line: -dddddddddd)
-check_via=1      # (cmd. line: -v)
-dns=on           # (cmd. line: -r)
-rev_dns=yes      # (cmd. line: -R)
-fork=no          # (cmd. line: -D)
-log_stderror=yes # (cmd line: -E)
-# for more info: sip_router -h
+#
+# configuration for stress testing
+#
+# $ID: $
+#
 
-route{
 
-       (src_ip=~'(dorian)|(ekina)|(terix)' & method=~'^inv') \
-                               forward(centauri.fokus.gmd.de);
-       src_ip=~"^192\.168\.[0-9]{1,3}\.[0-9]{1,3}$"  \
-                               log(1,"msg. from a private network\n"); route(1);
-       src_ip==0.0.0.0/0   setuserpass("andrei:test"); log(1, " test msg\n"); forward(192.168.46.55);setuser("foo");sethostport("bar.com:6000");forward(192.168.46.69);drop;
-}
+#debug=9          # debug level (cmd line: -dddddddddd)
+#fork=yes          # (cmd. line: -D)
+#log_stderror=yes # (cmd line: -E)
+#log_stderror=no       # (cmd line: -E)
 
-route[1]{
-       src_ip==192.168.46.61  log("possible loop, dropping\n"); drop;
-       (src_ip==192.168.46.0/24) log("routing with rt2\n");route(2); log("we're back\n");
-       src_ip==0.0.0.0/0 log(1, "we'll drop this one too\n"); drop;
-}
 
-route[2]{
-       (method=~'^ACK' and uri=~'.*fokus') forward("fox.iptel.org");
-       ! method=~'^INV' forward(193.175.135.179); /* dorian */
-       method=~'.' log("spying...\n"); send(dorian,8000); \
-                                               forward("fox.iptel.org");
+#children=2
+check_via=no     # (cmd. line: -v)
+dns=off           # (cmd. line: -r)
+rev_dns=off      # (cmd. line: -R)
+#port=5070
+#listen=10.0.0.179 lo  dorian
+#listen=eth0
+#listen=127.0.0.1
+#listen=192.168.57.33
+#listen=192.168.57.72
+#loop_checks=0
+# for more info: sip_router -h
+alias=iptel.org
+alias="foo.bar"
+fifo="/tmp/ser_fifo"
+listen= tcp:10.0.0.179:5065
+alias=  tcp:all:5065
+
+#modules
+
+
+route{
+       if (myself==uri){
+               log("\n\nfrom myself\n\n");
+       };
+       log(" continue \n\n");
+       forward(uri:host, uri:port);
 }