Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 21/06/2002 15:30:53
Showing 3 changed files
... ...
@@ -27,14 +27,13 @@ listen=195.37.77.100
27 27
 loadmodule "../sip_router/modules/sl/sl.so"
28 28
 loadmodule "../sip_router/modules/print/print.so"
29 29
 loadmodule "../sip_router/modules/tm/tm.so"
30
-loadmodule "../sip_router/modules/rr/rr.so"
31 30
 loadmodule "../sip_router/modules/maxfwd/maxfwd.so"
32 31
 loadmodule "../sip_router/modules/sms/sms.so"
33 32
 
34 33
 # ----------------- setting module-specific parameters ---------------
35 34
 
36 35
 # -- sms params --
37
-modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=10;r=2]")
36
+modparam("sms","modems","Falcom [d=/dev/ttyS0;b=9600;p=9254;m=new;l=10;r=2]")
38 37
 modparam("sms","networks","D1[c=491710765000;m=10]")
39 38
 modparam("sms","links","Falcom[D1]")
40 39
 
... ...
@@ -63,18 +62,18 @@ route{
63 63
 		sl_send_reply("483","Too Many Hops");
64 64
 		break;
65 65
 	};
66
-
66
+	
67 67
 	# accept only req coming from iptel.org
68
-	if (src_ip!=195.37.77.101 |
69
-	!( uri=~"[0-9]*@sms.iptel.org" | uri=~"[0-9]*@195\.37\.77\.100" )
68
+	if (!src_ip==195.37.77.101 |
69
+	!( uri=~"[0-9]*@sms.iptel.org" | uri=~"[0-9]*@195\.37\.77\.100" ))
70 70
 	{
71
-		LOG("SER:Forbidden request: wrong src_ip or req_uri\n");
71
+		log("SER:Forbidden request: wrong src_ip or req_uri\n");
72 72
 		sl_send_reply("403","Forbidden");
73 73
 		break;
74 74
 	};
75 75
 
76 76
 	#accept only MESSAGE requests
77
-	if (method!="MESSAGE")
77
+	if (!method=="MESSAGE")
78 78
 	{
79 79
 		sl_send_reply("501","Not Implemented");
80 80
 		break;
... ...
@@ -1,5 +1,5 @@
1
-MESSAGE sip:cucu@iptel.org SIP/2.0
2
-Via: SIP/2.0/UDP 195.37.78.169:11457
1
+MESSAGE sip:01756843@sms.iptel.org SIP/2.0
2
+Via: SIP/2.0/UDP fesarius.fokus.gmd.de:5000
3 3
 From: "bogdan" <sip:bogdan@iptel.org>;tag=0e99b1e7-ff50-4875-94ef-4ca5c27e2705
4 4
 To: sip:cucu@sms.iptel.org;cucu=bau;tag=xyz
5 5
 Call-ID: 02b1191c-447e-4bd0-b771-c039fc0d9d84@195.37.78.169
... ...
@@ -37,6 +37,8 @@ loadmodule "modules/sms/sms.so"
37 37
 modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=10;r=2] ")
38 38
 modparam("sms","networks","D1[c=491710765000;m=10]")
39 39
 modparam("sms","links","Falcom[D1]")
40
+#modparam("sms","domain","fesarius.fokus.gmd.de")
41
+modparam("sms","max_sms_parts",2)
40 42
 
41 43
 #modparam("pike","timeout",30)
42 44
 
... ...
@@ -83,7 +85,7 @@ route{
83 83
 	};
84 84
 */
85 85
 
86
-	if (uri=~"sip:.*@sms\.iptel\.org")
86
+	if (uri=~"sip:.*fesarius\.fokus\.gmd\.de")
87 87
 	{
88 88
 		if (method=="MESSAGE")
89 89
 		{