Browse Source

*** empty log message ***

Bogdan-Andrei Iancu 23 years ago
parent
commit
006a62a3c0
3 changed files with 18 additions and 53 deletions
  1. 1 1
      Makefile
  2. 2 3
      Makefile.defs
  3. 15 49
      test/th-uri.cfg

+ 1 - 1
Makefile

@@ -11,7 +11,7 @@ auto_gen=lex.yy.c cfg.tab.c   #lexx, yacc etc
 include Makefile.sources
 
 exclude_modules=CVS 
-#mysql auth cpl im sms jabber acc pike tm
+#mysql auth cpl jabber acc tm usrloc
 static_modules=
 static_modules_path=$(addprefix modules/, $(static_modules))
 extra_sources=$(wildcard $(addsuffix /*.c, $(static_modules_path)))

+ 2 - 3
Makefile.defs

@@ -88,9 +88,8 @@ DEFS+= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
 	 -DUSE_IPV6 \
 	 -DNOISY_REPLIES -DVERY_NOISY_REPLIES\
 	 -DPINGTEL_TAG_HACK\
-	 -DDBG_QM_MALLOC
-	 #-DF_MALLOC \
- 	 #-DUSE_SYNONIM\
+ 	 -DUSE_SYNONIM\
+	 -DDBG_QM_MALLOC\
 	 #-DNO_DEBUG \
 	 #-DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=0 \
 	 #-DNOSMP \

+ 15 - 49
test/th-uri.cfg

@@ -1,9 +1,3 @@
-#
-# configuration for TurboSIP testing
-#
-# $ID: $
-#
-
 
 debug=9          # debug level (cmd line: -dddddddddd)
 #fork=yes          # (cmd. line: -D)
@@ -29,16 +23,17 @@ loadmodule "modules/textops/textops.so"
 #loadmodule "modules/rr/rr.so"
 loadmodule "modules/maxfwd/maxfwd.so"
 loadmodule "modules/sl/sl.so"
-loadmodule "modules/sms/sms.so"
+#loadmodule "modules/sms/sms.so"
 #loadmodule "modules/cpl/cpl.so"
-#loadmodule "modules/pike/pike.so"
+loadmodule "modules/ext/ext.so"
 
 
-modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=10;r=2] ")
-modparam("sms","networks","D1[c=491710765000;m=10]")
-modparam("sms","links","Falcom[D1]")
-#modparam("sms","domain","fesarius.fokus.gmd.de")
-modparam("sms","max_sms_parts",3)
+#modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=10;r=2] ")
+#modparam("sms","networks","D1[c=491710765000;m=10]")
+#modparam("sms","links","Falcom[D1]")
+#modparam("sms","domain","hope.fokus.gmd.de")
+#modparam("sms","max_sms_parts",3)
+#modparam("sms","use_contact",1)
 
 #modparam("pike","timeout",30)
 
@@ -51,48 +46,18 @@ route{
 		drop();
 	};
 
-/*
-	if (method=="INVITE")
+	/*
+	if (uri=~"sip:([0-9]+@)?fesarius\.fokus\.gmd\.de")
 	{
-		log("SER : runing CPL!! :)\n");
-		if ( !cpl_run_script() )
-		{
-			log("SER : Error during running CPL script!\n");
-		}else{
-			if ( cpl_is_response_reject() ) {
-				sl_send_reply("603","I am not available!");
-				drop();
-			}else if ( cpl_is_response_redirect() ) {
-				log("SER : redirect\n");
-				cpl_update_contact();
-				sl_send_reply("302","Moved temporarily");
-				drop();
-			};
+		if (uri=~"sip:1@") {
+			seturi("sip:[email protected]");
 		};
-	};
-*/
-/*	if (method=="INVITE" && uri=~"sip:[email protected]")
-	{
-		t_fork_to_uri("sip:[email protected]");
-	};
-	if (method=="INVITE" && uri=~"sip:[email protected]" )
-	{
-		t_fork_on_no_response("sip:[email protected]");
-	};
-	if (method=="INVITE" && uri=~"sip:[email protected]")
-	{
-		t_fork_to_uri("sip:[email protected]");
-	};
-*/
-
-	if (uri=~"sip:.*fesarius\.fokus\.gmd\.de")
-	{
 		if (method=="MESSAGE")
 		{
 			log("MESSAGE received -> sending as sms\n");
 			if (sms_send_msg_to_net("D1"))
 			{
-				sl_send_reply("202","Accepted");
+				sl_send_reply("200","Accepted");
 			}else{
 				sl_send_reply("502","Bad gateway");
 			};
@@ -101,8 +66,9 @@ route{
 			sl_send_reply("501","Not implemented");
 		};
 		break;
-	};
+	};*/
 
+	ext_rewriteuri("./echo.pl");
 
 #	pike_check_req();
 	forward(uri:host,uri:port);