Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 28/10/2002 15:44:41
Showing 3 changed files
... ...
@@ -216,7 +216,9 @@ int t_uac( str *msg_type, str *dst,
216 216
 	callid[rand_len]=CID_SEP;
217 217
 	callid_s.s=callid;
218 218
 	callid_s.len=rand_len+callid_suffix_len;
219
-	DBG("DEBUG: NEW CALLID:%*s\n", callid_s.len, callid_s.s );
219
+	DBG("DEBUG: sufix_len = %d\n",callid_suffix_len);
220
+	DBG("DEBUG: NEW CALLID:%.*s[%d]:\n", callid_s.len, callid_s.s 
221
+		, callid_s.len);
220 222
 
221 223
 	new_cell = build_cell( NULL ) ; 
222 224
 	if (!new_cell) {
... ...
@@ -1,13 +1,14 @@
1
-MESSAGE sip:x@bat.iptel.org SIP/2.0
2
-Via: SIP/2.0/UDP bat.iptel.org:9
3
-From: sip:msilo@iptel.org;tag=16df4fe56e8782ecaa5d53ae36fb9240
4
-To: sip:dcm@iptel.org
1
+MESSAGE sip:+49160567535@fesarius.fokus.gmd.de SIP/2.0
2
+Via: SIP/2.0/UDP fesarius.fokus.gmde.de:9
3
+From: sip:bogdan@fesarius.fokus.gmd.de;tag=16df4fe56e8782ecaa5d53ae36fb9240
4
+To: sip:dcm@fesarius.fokus.gmd.de
5 5
 Call-ID: 02b1191c-447e-4bd0-b771-c039fc0d9d84@195.37.78.169
6 6
 CSeq: 7 MESSAGE
7 7
 Contact: <sip:195.37.78.169:11457>
8 8
 User-Agent: Windows RTC/1.0
9
-text/plain
10
-Content-Length: 013
11
-
12
-one two three
9
+Content-Type: text/plain
10
+Content-Length: 13
13 11
 
12
+cucu
13
+bau
14
+miau
... ...
@@ -10,48 +10,38 @@ children=2
10 10
 check_via=no      # (cmd. line: -v)
11 11
 dns=off           # (cmd. line: -r)
12 12
 rev_dns=off       # (cmd. line: -R)
13
-#port=5070
14
-#listen=10.0.0.179
15
-#listen=192.168.57.33
16
-loop_checks=0
13
+port=5070
14
+listen=193.175.132.142
17 15
 # for more info: sip_router -h
18 16
 
19 17
 #modules
20 18
 loadmodule "modules/print/print.so"
21 19
 loadmodule "modules/textops/textops.so"
22
-#loadmodule "modules/tm/tm.so"
23
-#loadmodule "modules/rr/rr.so"
24 20
 loadmodule "modules/maxfwd/maxfwd.so"
25 21
 loadmodule "modules/sl/sl.so"
26
-#loadmodule "modules/sms/sms.so"
27
-#loadmodule "modules/cpl/cpl.so"
28
-loadmodule "modules/ext/ext.so"
22
+loadmodule "modules/tm/tm.so"
23
+loadmodule "modules/im/im.so"
24
+loadmodule "modules/sms/sms.so"
29 25
 
30 26
 
31
-#modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=10;r=2] ")
32
-#modparam("sms","networks","D1[c=491710765000;m=10]")
33
-#modparam("sms","links","Falcom[D1]")
27
+modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=2;r=1] ")
28
+modparam("sms","networks","D1[c=491710765000;m=10]")
29
+modparam("sms","links","Falcom[D1] ")
34 30
 #modparam("sms","domain","hope.fokus.gmd.de")
35
-#modparam("sms","max_sms_parts",3)
36
-#modparam("sms","use_contact",1)
37
-
38
-#modparam("pike","timeout",30)
31
+modparam("sms","max_sms_parts",3)
32
+modparam("sms","use_contact",1)
33
+modparam("sms","sms_report_type",2)
39 34
 
40 35
 route{
41
-	sl_filter_ACK();
42
-
43 36
 	if ( !mf_process_maxfwd_header("10") )
44 37
 	{
45 38
 		sl_send_reply("483","To Many Hops");
46 39
 		drop();
47 40
 	};
48 41
 
49
-	/*
50
-	if (uri=~"sip:([0-9]+@)?fesarius\.fokus\.gmd\.de")
42
+	if (uri=~"sip:(\+[0-9]+@)?fesarius\.fokus\.gmd\.de"
43
+	  | uri=~"sip:(\+[0-9]+@)?193\.175\.132\.142")
51 44
 	{
52
-		if (uri=~"sip:1@") {
53
-			seturi("sip:491756078181@fesarius.fokus.gmd.de");
54
-		};
55 45
 		if (method=="MESSAGE")
56 46
 		{
57 47
 			log("MESSAGE received -> sending as sms\n");
... ...
@@ -66,11 +56,9 @@ route{
66 66
 			sl_send_reply("501","Not implemented");
67 67
 		};
68 68
 		break;
69
-	};*/
69
+	};
70 70
 
71
-	ext_rewriteuri("./echo.pl");
72 71
 
73
-#	pike_check_req();
74
-	forward(uri:host,uri:port);
75
-	#t_relay();
72
+	sl_send_reply("502","Not Implemented");
73
+	#forward(uri:host,uri:port);
76 74
 }