Browse code

*** empty log message ***

Andrei Pelinescu-Onciul authored on 14/02/2002 17:41:30
Showing 6 changed files
... ...
@@ -60,7 +60,7 @@ ARCH = $(shell uname -m |sed -e s/i.86/i386/ -e s/sun4u/sparc64/ )
60 60
 DEFS+= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
61 61
 	 -DOS='"$(OS)"' -DCOMPILER='"$(CC_VER)"'\
62 62
 	 -DDNS_IP_HACK  -DPKG_MALLOC -DSHM_MEM  -DSHM_MMAP \
63
-	 -DUSE_SYNONIM -DF_MALLOC \
63
+	 -DUSE_SYNONIM #-DF_MALLOC \
64 64
 	 #-DEXTRA_DEBUG 
65 65
 	 #-DVQ_MALLOC  -DDBG_LOCK  #-DSTATS
66 66
 	 #-DDBG_QM_MALLOC #-DNO_DEBUG
... ...
@@ -307,7 +307,7 @@ int main_loop()
307 307
 		pids[0]=getpid();
308 308
 		process_bit = 1;
309 309
 		process_no=0; /*main process number*/
310
-		udp_rcv_loop();
310
+		return udp_rcv_loop();
311 311
 	}else{
312 312
 		for(r=0;r<addresses_no;r++){
313 313
 			/* create the listening socket (for each address)*/
... ...
@@ -329,7 +329,7 @@ int main_loop()
329 329
 						pids[i+1]=pid; /*should be in shared mem.*/
330 330
 				}
331 331
 			}
332
-			/*close(udp_sock);*/ /*parent*/
332
+			close(udp_sock); /*parent*/
333 333
 		}
334 334
 	}
335 335
 	/*this is the main process*/
... ...
@@ -177,9 +177,9 @@ do { \
177 177
 
178 178
 #define shm_status() \
179 179
 do { \
180
-		shm_lock(); \
180
+		/*shm_lock();*/ \
181 181
 		MY_STATUS(shm_block); \
182
-		shm_unlock(); \
182
+		/*shm_unlock();*/ \
183 183
 }while(0)
184 184
 
185 185
 
... ...
@@ -23,7 +23,7 @@ int old_hash( str  call_id, str cseq_nr )
23 23
    int  hash_code = 0;
24 24
    int  i;
25 25
 	
26
-#ifdef i386
26
+#if 0 /*def i386*/
27 27
    int ci_len, cs_len;
28 28
    char *ci, *cs;
29 29
    
... ...
@@ -48,7 +48,7 @@ int old_hash( str  call_id, str cseq_nr )
48 48
       for( i=0 ; i<call_id.len ; hash_code+=call_id.s[i++]  );
49 49
 #endif
50 50
 
51
-#ifdef i386
51
+#if 0 /*def i386*/
52 52
 
53 53
 		int dummy2;
54 54
 		if (cseq_nr.len>=4){
... ...
@@ -13,14 +13,14 @@ log_stderror=yes # (cmd line: -E)
13 13
 #log_stderror=no	# (cmd line: -E)
14 14
 
15 15
 
16
-children=4
16
+children=2
17 17
 check_via=no     # (cmd. line: -v)
18 18
 dns=off           # (cmd. line: -r)
19 19
 rev_dns=off      # (cmd. line: -R)
20 20
 #port=5070
21
-#listen=10.0.0.179
21
+listen=10.0.0.179
22 22
 #listen=127.0.0.1
23
-listen=192.168.57.33
23
+#listen=192.168.57.33
24 24
 loop_checks=0
25 25
 # for more info: sip_router -h
26 26
 
... ...
@@ -17,7 +17,7 @@ check_via=no     # (cmd. line: -v)
17 17
 dns=off           # (cmd. line: -r)
18 18
 rev_dns=off      # (cmd. line: -R)
19 19
 #port=5070
20
-#listen=10.0.0.179
20
+listen=10.0.0.179
21 21
 #listen=192.168.57.33
22 22
 loop_checks=0
23 23
 # for more info: sip_router -h