Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 08/07/2002 14:18:27
Showing 3 changed files
... ...
@@ -11,7 +11,7 @@ auto_gen=lex.yy.c cfg.tab.c   #lexx, yacc etc
11 11
 include Makefile.sources
12 12
 
13 13
 exclude_modules=CVS 
14
-#mysql auth cpl im sms jabber acc pike tm
14
+#mysql auth cpl jabber acc tm usrloc
15 15
 static_modules=
16 16
 static_modules_path=$(addprefix modules/, $(static_modules))
17 17
 extra_sources=$(wildcard $(addsuffix /*.c, $(static_modules_path)))
... ...
@@ -88,9 +88,8 @@ DEFS+= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
88 88
 	 -DUSE_IPV6 \
89 89
 	 -DNOISY_REPLIES -DVERY_NOISY_REPLIES\
90 90
 	 -DPINGTEL_TAG_HACK\
91
-	 -DDBG_QM_MALLOC
92
-	 #-DF_MALLOC \
93
- 	 #-DUSE_SYNONIM\
91
+ 	 -DUSE_SYNONIM\
92
+	 -DDBG_QM_MALLOC\
94 93
 	 #-DNO_DEBUG \
95 94
 	 #-DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=0 \
96 95
 	 #-DNOSMP \
... ...
@@ -1,9 +1,3 @@
1
-#
2
-# configuration for TurboSIP testing
3
-#
4
-# $ID: $
5
-#
6
-
7 1
 
8 2
 debug=9          # debug level (cmd line: -dddddddddd)
9 3
 #fork=yes          # (cmd. line: -D)
... ...
@@ -29,16 +23,17 @@ loadmodule "modules/textops/textops.so"
29 29
 #loadmodule "modules/rr/rr.so"
30 30
 loadmodule "modules/maxfwd/maxfwd.so"
31 31
 loadmodule "modules/sl/sl.so"
32
-loadmodule "modules/sms/sms.so"
32
+#loadmodule "modules/sms/sms.so"
33 33
 #loadmodule "modules/cpl/cpl.so"
34
-#loadmodule "modules/pike/pike.so"
34
+loadmodule "modules/ext/ext.so"
35 35
 
36 36
 
37
-modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=10;r=2] ")
38
-modparam("sms","networks","D1[c=491710765000;m=10]")
39
-modparam("sms","links","Falcom[D1]")
40
-#modparam("sms","domain","fesarius.fokus.gmd.de")
41
-modparam("sms","max_sms_parts",3)
37
+#modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=10;r=2] ")
38
+#modparam("sms","networks","D1[c=491710765000;m=10]")
39
+#modparam("sms","links","Falcom[D1]")
40
+#modparam("sms","domain","hope.fokus.gmd.de")
41
+#modparam("sms","max_sms_parts",3)
42
+#modparam("sms","use_contact",1)
42 43
 
43 44
 #modparam("pike","timeout",30)
44 45
 
... ...
@@ -51,48 +46,18 @@ route{
51 51
 		drop();
52 52
 	};
53 53
 
54
-/*
55
-	if (method=="INVITE")
54
+	/*
55
+	if (uri=~"sip:([0-9]+@)?fesarius\.fokus\.gmd\.de")
56 56
 	{
57
-		log("SER : runing CPL!! :)\n");
58
-		if ( !cpl_run_script() )
59
-		{
60
-			log("SER : Error during running CPL script!\n");
61
-		}else{
62
-			if ( cpl_is_response_reject() ) {
63
-				sl_send_reply("603","I am not available!");
64
-				drop();
65
-			}else if ( cpl_is_response_redirect() ) {
66
-				log("SER : redirect\n");
67
-				cpl_update_contact();
68
-				sl_send_reply("302","Moved temporarily");
69
-				drop();
70
-			};
57
+		if (uri=~"sip:1@") {
58
+			seturi("sip:491756078181@fesarius.fokus.gmd.de");
71 59
 		};
72
-	};
73
-*/
74
-/*	if (method=="INVITE" && uri=~"sip:alpha@iptel.org")
75
-	{
76
-		t_fork_to_uri("sip:haha@iptel.org");
77
-	};
78
-	if (method=="INVITE" && uri=~"sip:bogdan@iptel.org" )
79
-	{
80
-		t_fork_on_no_response("sip:haha@iptel.org");
81
-	};
82
-	if (method=="INVITE" && uri=~"sip:haha@iptel.org")
83
-	{
84
-		t_fork_to_uri("sip:bogdan@iptel.org");
85
-	};
86
-*/
87
-
88
-	if (uri=~"sip:.*fesarius\.fokus\.gmd\.de")
89
-	{
90 60
 		if (method=="MESSAGE")
91 61
 		{
92 62
 			log("MESSAGE received -> sending as sms\n");
93 63
 			if (sms_send_msg_to_net("D1"))
94 64
 			{
95
-				sl_send_reply("202","Accepted");
65
+				sl_send_reply("200","Accepted");
96 66
 			}else{
97 67
 				sl_send_reply("502","Bad gateway");
98 68
 			};
... ...
@@ -101,8 +66,9 @@ route{
101 101
 			sl_send_reply("501","Not implemented");
102 102
 		};
103 103
 		break;
104
-	};
104
+	};*/
105 105
 
106
+	ext_rewriteuri("./echo.pl");
106 107
 
107 108
 #	pike_check_req();
108 109
 	forward(uri:host,uri:port);