Browse Source

*** empty log message ***

Bogdan-Andrei Iancu 23 years ago
parent
commit
c7b8fb6349
3 changed files with 28 additions and 37 deletions
  1. 3 1
      modules/tm/uac.c
  2. 9 8
      test/message03.sip
  3. 16 28
      test/th-uri.cfg

+ 3 - 1
modules/tm/uac.c

@@ -216,7 +216,9 @@ int t_uac( str *msg_type, str *dst,
 	callid[rand_len]=CID_SEP;
 	callid_s.s=callid;
 	callid_s.len=rand_len+callid_suffix_len;
-	DBG("DEBUG: NEW CALLID:%*s\n", callid_s.len, callid_s.s );
+	DBG("DEBUG: sufix_len = %d\n",callid_suffix_len);
+	DBG("DEBUG: NEW CALLID:%.*s[%d]:\n", callid_s.len, callid_s.s 
+		, callid_s.len);
 
 	new_cell = build_cell( NULL ) ; 
 	if (!new_cell) {

+ 9 - 8
test/message03.sip

@@ -1,13 +1,14 @@
-MESSAGE sip:[email protected] SIP/2.0
-Via: SIP/2.0/UDP bat.iptel.org:9
-From: sip:[email protected];tag=16df4fe56e8782ecaa5d53ae36fb9240
-To: sip:dcm@iptel.org
+MESSAGE sip:[email protected] SIP/2.0
+Via: SIP/2.0/UDP fesarius.fokus.gmde.de:9
+From: sip:[email protected];tag=16df4fe56e8782ecaa5d53ae36fb9240
+To: sip:dcm@fesarius.fokus.gmd.de
 Call-ID: [email protected]
 CSeq: 7 MESSAGE
 Contact: <sip:195.37.78.169:11457>
 User-Agent: Windows RTC/1.0
-text/plain
-Content-Length: 013
-
-one two three
+Content-Type: text/plain
+Content-Length: 13
 
+cucu
+bau
+miau

+ 16 - 28
test/th-uri.cfg

@@ -10,48 +10,38 @@ children=2
 check_via=no      # (cmd. line: -v)
 dns=off           # (cmd. line: -r)
 rev_dns=off       # (cmd. line: -R)
-#port=5070
-#listen=10.0.0.179
-#listen=192.168.57.33
-loop_checks=0
+port=5070
+listen=193.175.132.142
 # for more info: sip_router -h
 
 #modules
 loadmodule "modules/print/print.so"
 loadmodule "modules/textops/textops.so"
-#loadmodule "modules/tm/tm.so"
-#loadmodule "modules/rr/rr.so"
 loadmodule "modules/maxfwd/maxfwd.so"
 loadmodule "modules/sl/sl.so"
-#loadmodule "modules/sms/sms.so"
-#loadmodule "modules/cpl/cpl.so"
-loadmodule "modules/ext/ext.so"
+loadmodule "modules/tm/tm.so"
+loadmodule "modules/im/im.so"
+loadmodule "modules/sms/sms.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","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=2;r=1] ")
+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)
+modparam("sms","max_sms_parts",3)
+modparam("sms","use_contact",1)
+modparam("sms","sms_report_type",2)
 
 route{
-	sl_filter_ACK();
-
 	if ( !mf_process_maxfwd_header("10") )
 	{
 		sl_send_reply("483","To Many Hops");
 		drop();
 	};
 
-	/*
-	if (uri=~"sip:([0-9]+@)?fesarius\.fokus\.gmd\.de")
+	if (uri=~"sip:(\+[0-9]+@)?fesarius\.fokus\.gmd\.de"
+	  | uri=~"sip:(\+[0-9]+@)?193\.175\.132\.142")
 	{
-		if (uri=~"sip:1@") {
-			seturi("sip:[email protected]");
-		};
 		if (method=="MESSAGE")
 		{
 			log("MESSAGE received -> sending as sms\n");
@@ -66,11 +56,9 @@ route{
 			sl_send_reply("501","Not implemented");
 		};
 		break;
-	};*/
+	};
 
-	ext_rewriteuri("./echo.pl");
 
-#	pike_check_req();
-	forward(uri:host,uri:port);
-	#t_relay();
+	sl_send_reply("502","Not Implemented");
+	#forward(uri:host,uri:port);
 }