Browse Source

*** empty log message ***

Bogdan-Andrei Iancu 24 năm trước cách đây
mục cha
commit
cb969d2104
3 tập tin đã thay đổi với 3 bổ sung54 xóa
  1. 3 5
      Makefile
  2. 0 1
      modules/tm/h_table.c
  3. 0 48
      modules/tm/tm.c

+ 3 - 5
Makefile

@@ -7,7 +7,7 @@
 
 auto_gen=lex.yy.c cfg.tab.c   #lexx, yacc etc
 exclude_modules=CVS
-sources=$(filter-out $(auto_gen), $(wildcard *.c)) $(auto_gen) 
+sources=$(filter-out $(auto_gen), $(wildcard *.c)) $(auto_gen)
 objs=$(sources:.c=.o)
 depends=$(sources:.c=.d)
 modules=$(filter-out $(addprefix modules/, $(exclude_modules)), \
@@ -33,10 +33,8 @@ NAME=ser
 # PKG_MALLOC uses a faster malloc (exclusive w/ USE_SHM_MEM)
 # USE_SHM_MEM all pkg_malloc => shm_malloc (most mallocs use a common sh. mem.
 #           segment); don't define PKG_MALLOC if you want this!
-DEFS=-DTHREAD -DNOCR -DMACROEATER -DDNS_IP_HACK  -DSHM_MEM \
-	 -DPKG_MALLOC -DNO_DEBUG
-# -DUSE_SHM_MEM
-#-DNO_DEBUG 
+DEFS=-DTHREAD -DNOCR -DMACROEATER -DDNS_IP_HACK  -DSHM_MEM -DUSE_SHM_MEM \
+	 -DPKG_MALLOC  -DNO_DEBUG
 #-DPKG_MALLOC
 #-DNO_DEBUG#-DSTATS -DNO_DEBUG 
 #-DNO_LOG

+ 0 - 1
modules/tm/h_table.c

@@ -105,7 +105,6 @@ struct s_table* init_hash_table()
    for(  i=0 ; i<NR_OF_TIMER_LISTS ; i++ )
       init_timerlist_lock( hash_table, i );
 
-   return hash_table;
 //#ifdef THREAD
    /* starts the timer thread/ process */
    pthread_create( &thread, NULL, timer_routine, hash_table );

+ 0 - 48
modules/tm/tm.c

@@ -215,54 +215,6 @@ static int w_t_send_reply(struct sip_msg* msg, char* str, char* str2)
 
 
 
-#if 0
-static int test_f(struct sip_msg* msg, char* s1, char* s2)
-{
-	struct sip_msg* tst;
-	struct hdr_field* hf;
-
-	DBG("in test_f\n");
-
-	tst=sip_msg_cloner(msg);
-	DBG("after cloner...\n");
-	DBG("first_line: <%s> <%s> <%s>\n", 
-			tst->first_line.u.request.method.s,
-			tst->first_line.u.request.uri.s,
-			tst->first_line.u.request.version.s
-		);
-	if (tst->h_via1)
-		DBG("via1: <%s> <%s>\n", tst->h_via1->name.s, tst->h_via1->body.s);
-	if (tst->h_via2)
-		DBG("via2: <%s> <%s>\n", tst->h_via2->name.s, tst->h_via2->body.s);
-	if (tst->callid)
-		DBG("callid: <%s> <%s>\n", tst->callid->name.s, tst->callid->body.s);
-	if (tst->to)
-		DBG("to: <%s> <%s>\n", tst->to->name.s, tst->to->body.s);
-	if (tst->cseq)
-		DBG("cseq: <%s> <%s>\n", tst->cseq->name.s, tst->cseq->body.s);
-	if (tst->from)
-		DBG("from: <%s> <%s>\n", tst->from->name.s, tst->from->body.s);
-	if (tst->contact)
-		DBG("contact: <%s> <%s>\n", tst->contact->name.s,tst->contact->body.s);
-
-	DBG("headers:\n");
-	for (hf=tst->headers; hf; hf=hf->next){
-		DBG("header %d: <%s> <%s>\n", hf->type, hf->name.s, hf->body.s);
-	}
-	if (tst->eoh!=0) return;
-	DBG("parsing all...\n"); 
-	if (parse_headers(tst, HDR_EOH)==-1)
-		DBG("error\n");
-	else{
-		DBG("new headers...");
-		for (hf=tst->headers; hf; hf=hf->next){
-			DBG("header %d: <%s> <%s>\n", hf->type, hf->name.s, hf->body.s);
-		}
-	}
 
-	free(tst);
-}
-
-#endif