Browse code

final version!! I hope :))

Bogdan-Andrei Iancu authored on 04/12/2001 08:03:22
Showing 3 changed files
... ...
@@ -334,7 +334,7 @@ void sh_clean_hdr_field(struct hdr_field* hf)
334 334
       switch(hf->type)
335 335
       {
336 336
          case HDR_VIA:
337
-   DBG("DEBUG: sh_clean_hdr_field : via headers\n");
337
+   DBG("DEBUG: sh_clean_hdr_field: sip_msg_free : via headers\n");
338 338
                sh_free_via_list(hf->parsed);
339 339
              break;
340 340
          case HDR_CSEQ:
... ...
@@ -357,7 +357,7 @@ void sh_free_hdr_field_lst(struct hdr_field* hf)
357 357
 
358 358
    while(hf)
359 359
     {
360
-      DBG("DEBUG: free_hdr_field_lst : %s [%d]\n",hf->name.s, hf->type);
360
+      DBG("DEBUG: free_hdr_field_lst : %s [%d] (adr=%x)\n",hf->name.s, hf->type,hf);
361 361
        foo=hf;
362 362
        hf=hf->next;
363 363
        sh_clean_hdr_field(foo);
... ...
@@ -397,6 +397,7 @@ int t_on_reply_received( struct sip_msg  *p_msg )
397 397
 
398 398
    global_msg_id = p_msg->id;
399 399
 
400
+   parse_headers( p_msg , HDR_EOH ); /*????*/
400 401
    /* we use label-matching to lookup for T */
401 402
    t_reply_matching( hash_table , p_msg , &T , &branch  );
402 403
 
... ...
@@ -839,9 +840,11 @@ nomatch:
839 840
   */
840 841
 int t_store_incoming_reply( struct cell* Trans, unsigned int branch, struct sip_msg* p_msg )
841 842
 {
843
+   DBG("DEBUG: t_store_incoming_reply: starting [%d]....\n",branch);
842 844
    /* if there is a previous reply, replace it */
843 845
    if ( Trans->inbound_response[branch] )
844
-      free_sip_msg( Trans->inbound_response[branch] ) ;
846
+      sip_msg_free( Trans->inbound_response[branch] ) ;
847
+   DBG("DEBUG: t_store_incoming_reply: sip_msg_free done....\n");
845 848
    /* force parsing all the needed headers*/
846 849
    if ( parse_headers(p_msg, HDR_VIA1|HDR_VIA2|HDR_TO )==-1 ||
847 850
         !p_msg->via1 || !p_msg->via2 || !p_msg->to )
... ...
@@ -12,7 +12,7 @@ enum lists { RETRASMISSIONS_LIST, FR_TIMER_LIST, WT_TIMER_LIST, DELETE_LIST, NR_
12 12
 
13 13
 /* FINAL_RESPONSE_TIMER ... tells how long should the transaction engine
14 14
    wait if no final response comes back*/
15
-#define FR_TIME_OUT     8
15
+#define FR_TIME_OUT     64
16 16
 
17 17
 /* WAIT timer ... tells how long state should persist in memory after
18 18
    a transaction was finalized*/