Browse code

core - test: reorganized the old files in test folder

- moved to subfolders in test/misc
- keep content of the test folder cleaner for travis and unit tests

Daniel-Constantin Mierla authored on 26/11/2015 22:30:51
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,58 +0,0 @@
1
-debug=9          # debug level (cmd line: -dddddddddd)
2
-check_via=yes     # (cmd. line: -v)
3
-dns=on           # (cmd. line: -r)
4
-rev_dns=yes      # (cmd. line: -R)
5
-fork=no          # (cmd. line: -D)
6
-#children=5
7
-log_stderror=yes # (cmd line: -E)
8
-#port=5080
9
-#listen=192.168.99.100
10
-loop_checks=1
11
-# for more info: sip_router -h
12
-
13
-#modules
14
-loadmodule "modules/print/print.so"
15
-loadmodule "modules/tm/tm.so"
16
-
17
-route{
18
-	#rewritehost("iptel.org");
19
-	log("trying forward to uri");
20
-#	forward(uri:host,uri:port);
21
-#	forward(127.0.0.1, 5090);
22
-	log("after forward");
23
-
24
-	if ( t_lookup_request()) {
25
-		print("\nFOUND REQUEST\n");
26
-		if ( method=="ACK" )	{
27
-			log("SER: ACK received -> t_release\n");
28
-			t_release();
29
-		} else {
30
-			t_retransmit_reply();
31
-			log("SER: yet another annoying retranmission\n");
32
-		};
33
-	} else {
34
-		print("\nbefore add transaction\n");
35
-		t_add_transaction();
36
-		print("\nafter add transaction\n");
37
-		if (method=="CANCEL") {
38
-			log("SER: new CANCEL\n");
39
-			# XXX ... it wants me to put status code in ""
40
-			t_send_reply( "200", "glad to cancel");
41
-		} else {
42
-		print("\nELSE if method\n");
43
-			log("SER: new transaction\n");
44
-			t_send_reply("100", "trying -- your call is important to us");
45
-		};
46
-		print("\nbefore rewrite host\n");
47
-		rewritehost("iptel.org");
48
-		# XXX ... it wants me to put port nr in ""
49
-		#t_forward("benetnash.fokus.gmd.de", "5080" );
50
-		#t_forward("iptel.org", "5060" );
51
-		print("\nbefore forward uri\n");
52
-		t_forward_uri();
53
-		# XXX ... it doesn't like default port numbers
54
-		# t_forward("fox.iptel.org" );
55
-		# XXX t_forward_uri ... not done yet
56
-	};
57
-		
58
-}
Browse code

- changed malloc status to LOG(L_INFO) - fixed a malloc(0) in tm/sip_msg.c/*cloner (new_uri)

Andrei Pelinescu-Onciul authored on 06/12/2001 23:43:46
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,58 @@
1
+debug=9          # debug level (cmd line: -dddddddddd)
2
+check_via=yes     # (cmd. line: -v)
3
+dns=on           # (cmd. line: -r)
4
+rev_dns=yes      # (cmd. line: -R)
5
+fork=no          # (cmd. line: -D)
6
+#children=5
7
+log_stderror=yes # (cmd line: -E)
8
+#port=5080
9
+#listen=192.168.99.100
10
+loop_checks=1
11
+# for more info: sip_router -h
12
+
13
+#modules
14
+loadmodule "modules/print/print.so"
15
+loadmodule "modules/tm/tm.so"
16
+
17
+route{
18
+	#rewritehost("iptel.org");
19
+	log("trying forward to uri");
20
+#	forward(uri:host,uri:port);
21
+#	forward(127.0.0.1, 5090);
22
+	log("after forward");
23
+
24
+	if ( t_lookup_request()) {
25
+		print("\nFOUND REQUEST\n");
26
+		if ( method=="ACK" )	{
27
+			log("SER: ACK received -> t_release\n");
28
+			t_release();
29
+		} else {
30
+			t_retransmit_reply();
31
+			log("SER: yet another annoying retranmission\n");
32
+		};
33
+	} else {
34
+		print("\nbefore add transaction\n");
35
+		t_add_transaction();
36
+		print("\nafter add transaction\n");
37
+		if (method=="CANCEL") {
38
+			log("SER: new CANCEL\n");
39
+			# XXX ... it wants me to put status code in ""
40
+			t_send_reply( "200", "glad to cancel");
41
+		} else {
42
+		print("\nELSE if method\n");
43
+			log("SER: new transaction\n");
44
+			t_send_reply("100", "trying -- your call is important to us");
45
+		};
46
+		print("\nbefore rewrite host\n");
47
+		rewritehost("iptel.org");
48
+		# XXX ... it wants me to put port nr in ""
49
+		#t_forward("benetnash.fokus.gmd.de", "5080" );
50
+		#t_forward("iptel.org", "5060" );
51
+		print("\nbefore forward uri\n");
52
+		t_forward_uri();
53
+		# XXX ... it doesn't like default port numbers
54
+		# t_forward("fox.iptel.org" );
55
+		# XXX t_forward_uri ... not done yet
56
+	};
57
+		
58
+}