Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 15/02/2002 12:48:05
Showing 2 changed files
... ...
@@ -39,6 +39,7 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
39 39
    struct lump          *lump_chain, *lump_tmp, **lump_anchor, **lump_anchor2;
40 40
    struct lump_rpl    *rpl_lump, **rpl_lump_anchor;
41 41
    char                       *p,*foo;
42
+   int k1=0,k2=0,k3=0,k4=0,k5=0,k6=0;
42 43
 
43 44
 
44 45
    /*computing the length of entire sip_msg structure*/
... ...
@@ -76,32 +77,32 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
76 77
                    break;
77 78
       }
78 79
    }
79
-   /* length of the data lump structures
80
+   /* length of the data lump structures */
80 81
    if (org_msg->first_line.type==SIP_REQUEST)
81 82
       lump_chain = org_msg->add_rm;
82 83
    else
83 84
       lump_chain = org_msg->repl_add_rm;
84 85
    while (lump_chain)
85
-   {
86
+   {  k1++;
86 87
       len += lump_len( lump_chain );
87 88
       lump_tmp = lump_chain->before;
88 89
       while ( lump_tmp )
89
-      {
90
+      {  k2++;
90 91
          len += lump_len( lump_tmp );
91 92
          lump_tmp = lump_tmp->before;
92 93
       }
93 94
       lump_tmp = lump_chain->after;
94 95
       while ( lump_tmp )
95
-      {
96
+      {  k3++;
96 97
          len += lump_len( lump_tmp );
97 98
          lump_tmp = lump_tmp->after;
98 99
       }
99 100
       lump_chain = lump_chain->next;
100 101
    }
101 102
 
102
-   /*length of reply lump structures/
103
+   /*length of reply lump structures*/
103 104
    for(rpl_lump=org_msg->reply_lump;rpl_lump;rpl_lump=rpl_lump->next)
104
-       len+=rpl_lump->text.len;*/
105
+       len+=rpl_lump->text.len;
105 106
 
106 107
    p=(char *)sh_malloc(len);foo=p;
107 108
    if (!p)
... ...
@@ -261,7 +262,7 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
261 262
 
262 263
    }
263 264
 
264
-   /* clonning data lump
265
+   /* clonning data lump */
265 266
    if (org_msg->first_line.type==SIP_REQUEST) {
266 267
       lump_chain = org_msg->add_rm;
267 268
       lump_anchor = &(new_msg->add_rm);
... ...
@@ -270,22 +271,22 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
270 271
       lump_anchor = &(new_msg->repl_add_rm);
271 272
    }
272 273
    while (lump_chain)
273
-   {
274
+   {  k4++;
274 275
       lump_clone( (*lump_anchor) , lump_chain , p );
275
-      /*before list/
276
+      /*before list*/
276 277
       lump_tmp = lump_chain->before;
277 278
       lump_anchor2 = &((*lump_anchor)->before);
278 279
       while ( lump_tmp )
279
-      {
280
+      {  k5++;
280 281
          lump_clone( (*lump_anchor2) , lump_tmp , p );
281 282
          lump_anchor2 = &((*lump_anchor2)->before);
282 283
          lump_tmp = lump_tmp->before;
283 284
       }
284
-      /*after list/
285
+      /*after list*/
285 286
       lump_tmp = lump_chain->after;
286 287
       lump_anchor2 = &((*lump_anchor)->after);
287 288
       while ( lump_tmp )
288
-      {
289
+      {  k6++;
289 290
          lump_clone( (*lump_anchor2) , lump_tmp , p );
290 291
          lump_anchor2 = &((*lump_anchor2)->after);
291 292
          lump_tmp = lump_tmp->after;
... ...
@@ -294,7 +295,7 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
294 295
       lump_chain = lump_chain->next;
295 296
    }
296 297
 
297
-   /*cloning reply lump structures/
298
+   /*cloning reply lump structures*/
298 299
    rpl_lump_anchor = &(new_msg->reply_lump);
299 300
    for(rpl_lump=org_msg->reply_lump;rpl_lump;rpl_lump=rpl_lump->next)
300 301
    {
... ...
@@ -306,7 +307,9 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
306 307
        memcpy((*rpl_lump_anchor)->text.s,rpl_lump->text.s,rpl_lump->text.len);
307 308
        (*rpl_lump_anchor)->next=0;
308 309
        rpl_lump_anchor = &((*rpl_lump_anchor)->next);
309
-   }*/
310
+   }
311
+    DBG("DEBUG:cloner (  %d < %d,%d> )  ---  ( %d < %d , %d > )\n",
312
+       k1,k2,k3,k4,k5,k6);
310 313
     DBG("DEBUG:cloner --------<%d>---------<%d>-------------\n",len,p-foo);
311 314
    return new_msg;
312 315
 }
... ...
@@ -32,7 +32,7 @@ loadmodule "modules/sl/sl.so"
32 32
 loadmodule "modules/cpl/cpl.so"
33 33
 
34 34
 
35
-route{
35
+route{    /*
36 36
              sl_filter_ACK();
37 37
 
38 38
              if ( mf_is_maxfwd_present() )
... ...
@@ -49,7 +49,7 @@ route{
49 49
              }else{
50 50
                    mf_add_maxfwd_header( "10" );
51 51
              };
52
-
52
+                 */
53 53
 
54 54
              /*
55 55
              if (method=="INVITE")