Browse code

- new test cfgs - makefile w/ gcc-3.0 optimizations

Andrei Pelinescu-Onciul authored on 31/01/2002 19:08:23
Showing 6 changed files
... ...
@@ -73,14 +73,18 @@ mode = release
73 73
 
74 74
 
75 75
 #common
76
-CC=gcc
77
-LD=gcc
76
+CC=gcc-3.0
77
+LD=gcc-3.0
78 78
 MKDEP=gcc -MM $(DEFS)
79 79
 MKTAGS=ctags-exuberant -R .
80 80
 
81 81
 ifeq ($(mode), release)
82
-	CFLAGS=-O2 -Wcast-align $(PROFILE) -Winline#-Wmissing-prototypes 
83
-	LDFLAGS=-Wl,-O2 -Wl,-E $(PROFILE)
82
+	CFLAGS=-O9 -funroll-loops  -Wcast-align $(PROFILE) -Winline\
83
+			-malign-double -malign-loops=4 -minline-all-stringops \
84
+			-march=athlon -mcpu=athlon
85
+	#-Wmissing-prototypes 
86
+	LDFLAGS=-Wl,-O2 -Wl,-E $(PROFILE)\
87
+			 -march=athlon
84 88
 	# we need -fPIC -DPIC only for shared objects, we don't need them for
85 89
 	# the executable file, because it's always loaded at a fixed address
86 90
 	# -andrei
87 91
new file mode 100644
... ...
@@ -0,0 +1,30 @@
0
+#
1
+# configuration for TurboSIP testing
2
+#
3
+# $ID: $
4
+#
5
+
6
+
7
+debug=1          # debug level (cmd line: -dddddddddd)
8
+#fork=yes          # (cmd. line: -D)
9
+fork=no
10
+log_stderror=yes # (cmd line: -E)
11
+#log_stderror=no	# (cmd line: -E)
12
+
13
+
14
+children=8
15
+check_via=no     # (cmd. line: -v)
16
+dns=on           # (cmd. line: -r)
17
+rev_dns=yes      # (cmd. line: -R)
18
+#port=5070
19
+listen=127.0.0.1
20
+#listen=195.37.77.101
21
+loop_checks=0
22
+# for more info: sip_router -h
23
+
24
+#modules
25
+
26
+
27
+route{
28
+	forward(uri:host, uri:port);
29
+}
0 30
new file mode 100644
... ...
@@ -0,0 +1,63 @@
0
+#
1
+# configuration for TurboSIP testing
2
+#
3
+# $ID: $
4
+#
5
+
6
+
7
+debug=1          # debug level (cmd line: -dddddddddd)
8
+#fork=yes          # (cmd. line: -D)
9
+fork=yes
10
+log_stderror=yes # (cmd line: -E)
11
+#log_stderror=no	# (cmd line: -E)
12
+
13
+
14
+children=2
15
+check_via=no     # (cmd. line: -v)
16
+dns=on           # (cmd. line: -r)
17
+rev_dns=yes      # (cmd. line: -R)
18
+#port=5070
19
+listen=127.0.0.1
20
+#listen=195.37.77.101
21
+loop_checks=0
22
+# for more info: sip_router -h
23
+
24
+#modules
25
+#loadmodule "modules/print/print.so"
26
+loadmodule "modules/tm/tm.so"
27
+loadmodule "modules/rr/rr.so"
28
+loadmodule "modules/maxfwd/maxfwd.so"
29
+
30
+
31
+route{
32
+             if ( mf_is_maxfwd_present() )
33
+             {
34
+                   if ( !mf_decrement_maxfwd() )
35
+                   {
36
+                     log("SER : unable to decrement MAX_FORWARD!\n");
37
+                   };
38
+                   if ( mf_is_maxfwd_zero() )
39
+                   {
40
+                     log("SER: MAX FORWARD header is zero\n");
41
+                     drop();
42
+                   };
43
+             }else{
44
+                   mf_add_maxfwd_header( "10" );
45
+             };
46
+
47
+             #if ( !rewriteFromRoute() )
48
+             #{
49
+                log( " SER : no route found!\n");
50
+               # if ( method=="INVITE" )
51
+               # {
52
+                   #log ("SER : INVITE found - > adding RecordRoute!\n");
53
+                   #addRecordRoute();
54
+                #};
55
+             #}
56
+             #else
57
+             #{
58
+             #   log( "SER : ROUTE found! \n");
59
+             #};
60
+
61
+             t_relay();
62
+}
0 63
new file mode 100644
... ...
@@ -0,0 +1,63 @@
0
+#
1
+# configuration for TurboSIP testing
2
+#
3
+# $ID: $
4
+#
5
+
6
+
7
+debug=1          # debug level (cmd line: -dddddddddd)
8
+#fork=yes          # (cmd. line: -D)
9
+fork=yes
10
+log_stderror=yes # (cmd line: -E)
11
+#log_stderror=no	# (cmd line: -E)
12
+
13
+
14
+children=8
15
+check_via=no     # (cmd. line: -v)
16
+dns=on           # (cmd. line: -r)
17
+rev_dns=yes      # (cmd. line: -R)
18
+#port=5070
19
+listen=127.0.0.1
20
+#listen=195.37.77.101
21
+loop_checks=0
22
+# for more info: sip_router -h
23
+
24
+#modules
25
+#loadmodule "modules/print/print.so"
26
+loadmodule "modules/tm/tm.so"
27
+loadmodule "modules/rr/rr.so"
28
+loadmodule "modules/maxfwd/maxfwd.so"
29
+
30
+
31
+route{
32
+             if ( mf_is_maxfwd_present() )
33
+             {
34
+                   if ( !mf_decrement_maxfwd() )
35
+                   {
36
+                     log("SER : unable to decrement MAX_FORWARD!\n");
37
+                   };
38
+                   if ( mf_is_maxfwd_zero() )
39
+                   {
40
+                     log("SER: MAX FORWARD header is zero\n");
41
+                     drop();
42
+                   };
43
+             }else{
44
+                   mf_add_maxfwd_header( "10" );
45
+             };
46
+
47
+             #if ( !rewriteFromRoute() )
48
+             #{
49
+                log( " SER : no route found!\n");
50
+               # if ( method=="INVITE" )
51
+               # {
52
+                   #log ("SER : INVITE found - > adding RecordRoute!\n");
53
+                   #addRecordRoute();
54
+                #};
55
+             #}
56
+             #else
57
+             #{
58
+             #   log( "SER : ROUTE found! \n");
59
+             #};
60
+
61
+             t_relay();
62
+}
0 63
new file mode 100644
... ...
@@ -0,0 +1,63 @@
0
+#
1
+# configuration for TurboSIP testing
2
+#
3
+# $ID: $
4
+#
5
+
6
+
7
+debug=1          # debug level (cmd line: -dddddddddd)
8
+#fork=yes          # (cmd. line: -D)
9
+fork=no
10
+log_stderror=yes # (cmd line: -E)
11
+#log_stderror=no	# (cmd line: -E)
12
+
13
+
14
+children=8
15
+check_via=no     # (cmd. line: -v)
16
+dns=no          # (cmd. line: -r)
17
+rev_dns=no      # (cmd. line: -R)
18
+#port=5070
19
+listen=127.0.0.1
20
+#listen=195.37.77.101
21
+loop_checks=0
22
+# for more info: sip_router -h
23
+
24
+#modules
25
+#loadmodule "modules/print/print.so"
26
+loadmodule "modules/tm/tm.so"
27
+loadmodule "modules/rr/rr.so"
28
+loadmodule "modules/maxfwd/maxfwd.so"
29
+
30
+
31
+route{
32
+             if ( mf_is_maxfwd_present() )
33
+             {
34
+                   if ( !mf_decrement_maxfwd() )
35
+                   {
36
+                     log("SER : unable to decrement MAX_FORWARD!\n");
37
+                   };
38
+                   if ( mf_is_maxfwd_zero() )
39
+                   {
40
+                     log("SER: MAX FORWARD header is zero\n");
41
+                     drop();
42
+                   };
43
+             }else{
44
+                   mf_add_maxfwd_header( "10" );
45
+             };
46
+
47
+             #if ( !rewriteFromRoute() )
48
+             #{
49
+                log( " SER : no route found!\n");
50
+               # if ( method=="INVITE" )
51
+               # {
52
+                   #log ("SER : INVITE found - > adding RecordRoute!\n");
53
+                   #addRecordRoute();
54
+                #};
55
+             #}
56
+             #else
57
+             #{
58
+             #   log( "SER : ROUTE found! \n");
59
+             #};
60
+
61
+             t_relay();
62
+}
... ...
@@ -17,7 +17,7 @@ check_via=no     # (cmd. line: -v)
17 17
 dns=on           # (cmd. line: -r)
18 18
 rev_dns=yes      # (cmd. line: -R)
19 19
 #port=5070
20
-#listen=127.0.0.1
20
+listen=127.0.0.1
21 21
 #listen=195.37.77.101
22 22
 loop_checks=0
23 23
 # for more info: sip_router -h