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 @@
1
+#
2
+# configuration for TurboSIP testing
3
+#
4
+# $ID: $
5
+#
6
+
7
+
8
+debug=1          # debug level (cmd line: -dddddddddd)
9
+#fork=yes          # (cmd. line: -D)
10
+fork=no
11
+log_stderror=yes # (cmd line: -E)
12
+#log_stderror=no	# (cmd line: -E)
13
+
14
+
15
+children=8
16
+check_via=no     # (cmd. line: -v)
17
+dns=on           # (cmd. line: -r)
18
+rev_dns=yes      # (cmd. line: -R)
19
+#port=5070
20
+listen=127.0.0.1
21
+#listen=195.37.77.101
22
+loop_checks=0
23
+# for more info: sip_router -h
24
+
25
+#modules
26
+
27
+
28
+route{
29
+	forward(uri:host, uri:port);
30
+}
0 31
new file mode 100644
... ...
@@ -0,0 +1,63 @@
1
+#
2
+# configuration for TurboSIP testing
3
+#
4
+# $ID: $
5
+#
6
+
7
+
8
+debug=1          # debug level (cmd line: -dddddddddd)
9
+#fork=yes          # (cmd. line: -D)
10
+fork=yes
11
+log_stderror=yes # (cmd line: -E)
12
+#log_stderror=no	# (cmd line: -E)
13
+
14
+
15
+children=2
16
+check_via=no     # (cmd. line: -v)
17
+dns=on           # (cmd. line: -r)
18
+rev_dns=yes      # (cmd. line: -R)
19
+#port=5070
20
+listen=127.0.0.1
21
+#listen=195.37.77.101
22
+loop_checks=0
23
+# for more info: sip_router -h
24
+
25
+#modules
26
+#loadmodule "modules/print/print.so"
27
+loadmodule "modules/tm/tm.so"
28
+loadmodule "modules/rr/rr.so"
29
+loadmodule "modules/maxfwd/maxfwd.so"
30
+
31
+
32
+route{
33
+             if ( mf_is_maxfwd_present() )
34
+             {
35
+                   if ( !mf_decrement_maxfwd() )
36
+                   {
37
+                     log("SER : unable to decrement MAX_FORWARD!\n");
38
+                   };
39
+                   if ( mf_is_maxfwd_zero() )
40
+                   {
41
+                     log("SER: MAX FORWARD header is zero\n");
42
+                     drop();
43
+                   };
44
+             }else{
45
+                   mf_add_maxfwd_header( "10" );
46
+             };
47
+
48
+             #if ( !rewriteFromRoute() )
49
+             #{
50
+                log( " SER : no route found!\n");
51
+               # if ( method=="INVITE" )
52
+               # {
53
+                   #log ("SER : INVITE found - > adding RecordRoute!\n");
54
+                   #addRecordRoute();
55
+                #};
56
+             #}
57
+             #else
58
+             #{
59
+             #   log( "SER : ROUTE found! \n");
60
+             #};
61
+
62
+             t_relay();
63
+}
0 64
new file mode 100644
... ...
@@ -0,0 +1,63 @@
1
+#
2
+# configuration for TurboSIP testing
3
+#
4
+# $ID: $
5
+#
6
+
7
+
8
+debug=1          # debug level (cmd line: -dddddddddd)
9
+#fork=yes          # (cmd. line: -D)
10
+fork=yes
11
+log_stderror=yes # (cmd line: -E)
12
+#log_stderror=no	# (cmd line: -E)
13
+
14
+
15
+children=8
16
+check_via=no     # (cmd. line: -v)
17
+dns=on           # (cmd. line: -r)
18
+rev_dns=yes      # (cmd. line: -R)
19
+#port=5070
20
+listen=127.0.0.1
21
+#listen=195.37.77.101
22
+loop_checks=0
23
+# for more info: sip_router -h
24
+
25
+#modules
26
+#loadmodule "modules/print/print.so"
27
+loadmodule "modules/tm/tm.so"
28
+loadmodule "modules/rr/rr.so"
29
+loadmodule "modules/maxfwd/maxfwd.so"
30
+
31
+
32
+route{
33
+             if ( mf_is_maxfwd_present() )
34
+             {
35
+                   if ( !mf_decrement_maxfwd() )
36
+                   {
37
+                     log("SER : unable to decrement MAX_FORWARD!\n");
38
+                   };
39
+                   if ( mf_is_maxfwd_zero() )
40
+                   {
41
+                     log("SER: MAX FORWARD header is zero\n");
42
+                     drop();
43
+                   };
44
+             }else{
45
+                   mf_add_maxfwd_header( "10" );
46
+             };
47
+
48
+             #if ( !rewriteFromRoute() )
49
+             #{
50
+                log( " SER : no route found!\n");
51
+               # if ( method=="INVITE" )
52
+               # {
53
+                   #log ("SER : INVITE found - > adding RecordRoute!\n");
54
+                   #addRecordRoute();
55
+                #};
56
+             #}
57
+             #else
58
+             #{
59
+             #   log( "SER : ROUTE found! \n");
60
+             #};
61
+
62
+             t_relay();
63
+}
0 64
new file mode 100644
... ...
@@ -0,0 +1,63 @@
1
+#
2
+# configuration for TurboSIP testing
3
+#
4
+# $ID: $
5
+#
6
+
7
+
8
+debug=1          # debug level (cmd line: -dddddddddd)
9
+#fork=yes          # (cmd. line: -D)
10
+fork=no
11
+log_stderror=yes # (cmd line: -E)
12
+#log_stderror=no	# (cmd line: -E)
13
+
14
+
15
+children=8
16
+check_via=no     # (cmd. line: -v)
17
+dns=no          # (cmd. line: -r)
18
+rev_dns=no      # (cmd. line: -R)
19
+#port=5070
20
+listen=127.0.0.1
21
+#listen=195.37.77.101
22
+loop_checks=0
23
+# for more info: sip_router -h
24
+
25
+#modules
26
+#loadmodule "modules/print/print.so"
27
+loadmodule "modules/tm/tm.so"
28
+loadmodule "modules/rr/rr.so"
29
+loadmodule "modules/maxfwd/maxfwd.so"
30
+
31
+
32
+route{
33
+             if ( mf_is_maxfwd_present() )
34
+             {
35
+                   if ( !mf_decrement_maxfwd() )
36
+                   {
37
+                     log("SER : unable to decrement MAX_FORWARD!\n");
38
+                   };
39
+                   if ( mf_is_maxfwd_zero() )
40
+                   {
41
+                     log("SER: MAX FORWARD header is zero\n");
42
+                     drop();
43
+                   };
44
+             }else{
45
+                   mf_add_maxfwd_header( "10" );
46
+             };
47
+
48
+             #if ( !rewriteFromRoute() )
49
+             #{
50
+                log( " SER : no route found!\n");
51
+               # if ( method=="INVITE" )
52
+               # {
53
+                   #log ("SER : INVITE found - > adding RecordRoute!\n");
54
+                   #addRecordRoute();
55
+                #};
56
+             #}
57
+             #else
58
+             #{
59
+             #   log( "SER : ROUTE found! \n");
60
+             #};
61
+
62
+             t_relay();
63
+}
... ...
@@ -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