- new test cfgs
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Thu, 31 Jan 2002 19:08:23 +0000 (19:08 +0000)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Thu, 31 Jan 2002 19:08:23 +0000 (19:08 +0000)
- makefile w/ gcc-3.0 optimizations

Makefile.defs
test/stateless.cfg [new file with mode: 0644]
test/th-uri-2.cfg [new file with mode: 0644]
test/th-uri-8.cfg [new file with mode: 0644]
test/th-uri-fast.cfg [new file with mode: 0644]
test/th-uri.cfg

index 568b19c..124cc3f 100644 (file)
@@ -73,14 +73,18 @@ mode = release
 
 
 #common
-CC=gcc
-LD=gcc
+CC=gcc-3.0
+LD=gcc-3.0
 MKDEP=gcc -MM $(DEFS)
 MKTAGS=ctags-exuberant -R .
 
 ifeq ($(mode), release)
-       CFLAGS=-O2 -Wcast-align $(PROFILE) -Winline#-Wmissing-prototypes 
-       LDFLAGS=-Wl,-O2 -Wl,-E $(PROFILE)
+       CFLAGS=-O9 -funroll-loops  -Wcast-align $(PROFILE) -Winline\
+                       -malign-double -malign-loops=4 -minline-all-stringops \
+                       -march=athlon -mcpu=athlon
+       #-Wmissing-prototypes 
+       LDFLAGS=-Wl,-O2 -Wl,-E $(PROFILE)\
+                        -march=athlon
        # we need -fPIC -DPIC only for shared objects, we don't need them for
        # the executable file, because it's always loaded at a fixed address
        # -andrei
diff --git a/test/stateless.cfg b/test/stateless.cfg
new file mode 100644 (file)
index 0000000..26ad014
--- /dev/null
@@ -0,0 +1,30 @@
+#
+# configuration for TurboSIP testing
+#
+# $ID: $
+#
+
+
+debug=1          # debug level (cmd line: -dddddddddd)
+#fork=yes          # (cmd. line: -D)
+fork=no
+log_stderror=yes # (cmd line: -E)
+#log_stderror=no       # (cmd line: -E)
+
+
+children=8
+check_via=no     # (cmd. line: -v)
+dns=on           # (cmd. line: -r)
+rev_dns=yes      # (cmd. line: -R)
+#port=5070
+listen=127.0.0.1
+#listen=195.37.77.101
+loop_checks=0
+# for more info: sip_router -h
+
+#modules
+
+
+route{
+       forward(uri:host, uri:port);
+}
diff --git a/test/th-uri-2.cfg b/test/th-uri-2.cfg
new file mode 100644 (file)
index 0000000..5073959
--- /dev/null
@@ -0,0 +1,63 @@
+#
+# configuration for TurboSIP testing
+#
+# $ID: $
+#
+
+
+debug=1          # debug level (cmd line: -dddddddddd)
+#fork=yes          # (cmd. line: -D)
+fork=yes
+log_stderror=yes # (cmd line: -E)
+#log_stderror=no       # (cmd line: -E)
+
+
+children=2
+check_via=no     # (cmd. line: -v)
+dns=on           # (cmd. line: -r)
+rev_dns=yes      # (cmd. line: -R)
+#port=5070
+listen=127.0.0.1
+#listen=195.37.77.101
+loop_checks=0
+# for more info: sip_router -h
+
+#modules
+#loadmodule "modules/print/print.so"
+loadmodule "modules/tm/tm.so"
+loadmodule "modules/rr/rr.so"
+loadmodule "modules/maxfwd/maxfwd.so"
+
+
+route{
+             if ( mf_is_maxfwd_present() )
+             {
+                   if ( !mf_decrement_maxfwd() )
+                   {
+                     log("SER : unable to decrement MAX_FORWARD!\n");
+                   };
+                   if ( mf_is_maxfwd_zero() )
+                   {
+                     log("SER: MAX FORWARD header is zero\n");
+                     drop();
+                   };
+             }else{
+                   mf_add_maxfwd_header( "10" );
+             };
+
+             #if ( !rewriteFromRoute() )
+             #{
+                log( " SER : no route found!\n");
+               # if ( method=="INVITE" )
+               # {
+                   #log ("SER : INVITE found - > adding RecordRoute!\n");
+                   #addRecordRoute();
+                #};
+             #}
+             #else
+             #{
+             #   log( "SER : ROUTE found! \n");
+             #};
+
+             t_relay();
+}
diff --git a/test/th-uri-8.cfg b/test/th-uri-8.cfg
new file mode 100644 (file)
index 0000000..53a1397
--- /dev/null
@@ -0,0 +1,63 @@
+#
+# configuration for TurboSIP testing
+#
+# $ID: $
+#
+
+
+debug=1          # debug level (cmd line: -dddddddddd)
+#fork=yes          # (cmd. line: -D)
+fork=yes
+log_stderror=yes # (cmd line: -E)
+#log_stderror=no       # (cmd line: -E)
+
+
+children=8
+check_via=no     # (cmd. line: -v)
+dns=on           # (cmd. line: -r)
+rev_dns=yes      # (cmd. line: -R)
+#port=5070
+listen=127.0.0.1
+#listen=195.37.77.101
+loop_checks=0
+# for more info: sip_router -h
+
+#modules
+#loadmodule "modules/print/print.so"
+loadmodule "modules/tm/tm.so"
+loadmodule "modules/rr/rr.so"
+loadmodule "modules/maxfwd/maxfwd.so"
+
+
+route{
+             if ( mf_is_maxfwd_present() )
+             {
+                   if ( !mf_decrement_maxfwd() )
+                   {
+                     log("SER : unable to decrement MAX_FORWARD!\n");
+                   };
+                   if ( mf_is_maxfwd_zero() )
+                   {
+                     log("SER: MAX FORWARD header is zero\n");
+                     drop();
+                   };
+             }else{
+                   mf_add_maxfwd_header( "10" );
+             };
+
+             #if ( !rewriteFromRoute() )
+             #{
+                log( " SER : no route found!\n");
+               # if ( method=="INVITE" )
+               # {
+                   #log ("SER : INVITE found - > adding RecordRoute!\n");
+                   #addRecordRoute();
+                #};
+             #}
+             #else
+             #{
+             #   log( "SER : ROUTE found! \n");
+             #};
+
+             t_relay();
+}
diff --git a/test/th-uri-fast.cfg b/test/th-uri-fast.cfg
new file mode 100644 (file)
index 0000000..c870e98
--- /dev/null
@@ -0,0 +1,63 @@
+#
+# configuration for TurboSIP testing
+#
+# $ID: $
+#
+
+
+debug=1          # debug level (cmd line: -dddddddddd)
+#fork=yes          # (cmd. line: -D)
+fork=no
+log_stderror=yes # (cmd line: -E)
+#log_stderror=no       # (cmd line: -E)
+
+
+children=8
+check_via=no     # (cmd. line: -v)
+dns=no          # (cmd. line: -r)
+rev_dns=no      # (cmd. line: -R)
+#port=5070
+listen=127.0.0.1
+#listen=195.37.77.101
+loop_checks=0
+# for more info: sip_router -h
+
+#modules
+#loadmodule "modules/print/print.so"
+loadmodule "modules/tm/tm.so"
+loadmodule "modules/rr/rr.so"
+loadmodule "modules/maxfwd/maxfwd.so"
+
+
+route{
+             if ( mf_is_maxfwd_present() )
+             {
+                   if ( !mf_decrement_maxfwd() )
+                   {
+                     log("SER : unable to decrement MAX_FORWARD!\n");
+                   };
+                   if ( mf_is_maxfwd_zero() )
+                   {
+                     log("SER: MAX FORWARD header is zero\n");
+                     drop();
+                   };
+             }else{
+                   mf_add_maxfwd_header( "10" );
+             };
+
+             #if ( !rewriteFromRoute() )
+             #{
+                log( " SER : no route found!\n");
+               # if ( method=="INVITE" )
+               # {
+                   #log ("SER : INVITE found - > adding RecordRoute!\n");
+                   #addRecordRoute();
+                #};
+             #}
+             #else
+             #{
+             #   log( "SER : ROUTE found! \n");
+             #};
+
+             t_relay();
+}
index d6c1d61..176d6df 100644 (file)
@@ -17,7 +17,7 @@ check_via=no     # (cmd. line: -v)
 dns=on           # (cmd. line: -r)
 rev_dns=yes      # (cmd. line: -R)
 #port=5070
-#listen=127.0.0.1
+listen=127.0.0.1
 #listen=195.37.77.101
 loop_checks=0
 # for more info: sip_router -h