Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 31/05/2002 18:51:53
Showing 1 changed files
... ...
@@ -25,7 +25,7 @@ loop_checks=0
25 25
 #modules
26 26
 loadmodule "modules/print/print.so"
27 27
 loadmodule "modules/textops/textops.so"
28
-loadmodule "modules/tm/tm.so"
28
+#loadmodule "modules/tm/tm.so"
29 29
 #loadmodule "modules/rr/rr.so"
30 30
 loadmodule "modules/maxfwd/maxfwd.so"
31 31
 loadmodule "modules/sl/sl.so"
... ...
@@ -33,6 +33,10 @@ loadmodule "modules/sms/sms.so"
33 33
 #loadmodule "modules/cpl/cpl.so"
34 34
 
35 35
 
36
+modparam("sms","networks","  D1 [1234 ] ;d2[ 3456]; E-plus [34]")
37
+modparam("sms","modems","/dev/ttyS1[ d1 , d2] ; /dev/ttyS2[e-plus] ")
38
+modparam("sms","looping_interval",30)
39
+
36 40
 route{
37 41
 	sl_filter_ACK();
38 42
 
... ...
@@ -81,7 +85,7 @@ route{
81 81
 		if (method=="MESSAGE")
82 82
 		{
83 83
 			log("MESSAGE received -> sending as sms\n");
84
-			if (sms_send_message())
84
+			if (sms_send_msg())
85 85
 			{
86 86
 				sl_send_reply("202","Accepted");
87 87
 			}else{
... ...
@@ -94,5 +98,6 @@ route{
94 94
 		break;
95 95
 	};
96 96
 
97
-	t_relay();
97
+	forward(uri:host,uri:port);
98
+	#t_relay();
98 99
 }