Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 12/06/2002 12:06:49
Showing 4 changed files
... ...
@@ -88,6 +88,7 @@ DEFS+= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
88 88
 	 -DSILENT_FR \
89 89
 	 -DUSE_IPV6 \
90 90
 	 -DNOISY_REPLIES -DVERY_NOISY_REPLIES\
91
+	 -DPINGTEL_TAG_HACK\
91 92
  	 #-DUSE_SYNONIM\
92 93
 	 #-DNO_DEBUG \
93 94
 	 #-DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=0 \
... ...
@@ -213,7 +213,7 @@ char* parse_to_param(char *buffer, char *end, struct to_body *to_b,
213 213
 					case S_EQUAL:
214 214
 					case S_PARA_VALUE:
215 215
 						if (param->type==TAG_PARAM)
216
-							param->value.s = tmp-1;
216
+							param->value.s = tmp;
217 217
 						else {
218 218
 							LOG( L_ERR , "ERROR: parse_to_param : unexpected "
219 219
 								"char [%c] in status %d: <<%.*s>> .\n",
... ...
@@ -222,7 +222,7 @@ char* parse_to_param(char *buffer, char *end, struct to_body *to_b,
222 222
 						}
223 223
 #endif
224 224
 					case PARA_VALUE_TOKEN:
225
-						param->value.len=tmp-param->value.s-1;
225
+						param->value.len=tmp-param->value.s;
226 226
 						add_param(param,to_b);
227 227
 					case PARA_START:
228 228
 						*tmp=0;
... ...
@@ -413,15 +413,11 @@ char* parse_to_param(char *buffer, char *end, struct to_body *to_b,
413 413
 
414 414
 endofheader:
415 415
 #ifdef PINGTEL_TAG_HACK
416
-	if (param->type==TAG_PARAM ) {
417
-		if (saved_status==S_EQUAL||saved_status==S_PARA_VALUE) {
416
+	if (param->type==TAG_PARAM 
417
+	&& (saved_status==S_EQUAL||saved_status==S_PARA_VALUE) ) {
418 418
 			saved_status = E_PARA_VALUE;
419 419
 			param->value.s=(char*)param->value.len=0;
420 420
 			add_param(param, to_b);
421
-		} else {
422
-			DBG("HELLO\n");
423
-			goto error;
424
-		}
425 421
 	}
426 422
 #endif
427 423
 	*returned_status=saved_status;
... ...
@@ -674,7 +670,6 @@ char* parse_to(char* buffer, char *end, struct to_body *to_b)
674 674
 	}/*for*/
675 675
 
676 676
 endofheader:
677
-	DBG("DEBUG: status = %d \n",status);
678 677
 	status=saved_status;
679 678
 	DBG("end of header reached, state=%d\n", status);
680 679
 	/* check if error*/
... ...
@@ -1,7 +1,7 @@
1 1
 MESSAGE sip:cucu@iptel.org SIP/2.0
2 2
 Via: SIP/2.0/UDP 195.37.78.169:11457
3 3
 From: "bogdan" <sip:bogdan@iptel.org>;tag=0e99b1e7-ff50-4875-94ef-4ca5c27e2705
4
-To: sip:cucu@sms.iptel.org;tag=
4
+To: sip:cucu@sms.iptel.org;cucu=bau;tag=xyz
5 5
 Call-ID: 02b1191c-447e-4bd0-b771-c039fc0d9d84@195.37.78.169
6 6
 CSeq: 7 MESSAGE
7 7
 Contact: <sip:195.37.78.169:11457>
... ...
@@ -6,8 +6,8 @@
6 6
 
7 7
 
8 8
 debug=9          # debug level (cmd line: -dddddddddd)
9
-fork=yes          # (cmd. line: -D)
10
-#fork=no
9
+#fork=yes          # (cmd. line: -D)
10
+fork=no
11 11
 log_stderror=yes  # (cmd line: -E)
12 12
 #log_stderror=no   # (cmd line: -E)
13 13
 
... ...
@@ -38,6 +38,8 @@ loadmodule "modules/pike/pike.so"
38 38
 #modparam("sms","networks","  D1 [c=491710765000;m=10] ;d2[ c=3456;m=20]")
39 39
 #modparam("sms","links","NOKIA[D1;d2]")
40 40
 
41
+modparam("pike","timeout",30)
42
+
41 43
 route{
42 44
 	sl_filter_ACK();
43 45