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 76
                    break;
77 77
       }
78 78
    }
79
-   /* length of the data lump structures
79
+   /* length of the data lump structures */
80 80
    if (org_msg->first_line.type==SIP_REQUEST)
81 81
       lump_chain = org_msg->add_rm;
82 82
    else
83 83
       lump_chain = org_msg->repl_add_rm;
84 84
    while (lump_chain)
85
-   {
85
+   {  k1++;
86 86
       len += lump_len( lump_chain );
87 87
       lump_tmp = lump_chain->before;
88 88
       while ( lump_tmp )
89
-      {
89
+      {  k2++;
90 90
          len += lump_len( lump_tmp );
91 91
          lump_tmp = lump_tmp->before;
92 92
       }
93 93
       lump_tmp = lump_chain->after;
94 94
       while ( lump_tmp )
95
-      {
95
+      {  k3++;
96 96
          len += lump_len( lump_tmp );
97 97
          lump_tmp = lump_tmp->after;
98 98
       }
99 99
       lump_chain = lump_chain->next;
100 100
    }
101 101
 
102
-   /*length of reply lump structures/
102
+   /*length of reply lump structures*/
103 103
    for(rpl_lump=org_msg->reply_lump;rpl_lump;rpl_lump=rpl_lump->next)
104
-       len+=rpl_lump->text.len;*/
104
+       len+=rpl_lump->text.len;
105 105
 
106 106
    p=(char *)sh_malloc(len);foo=p;
107 107
    if (!p)
... ...
@@ -261,7 +262,7 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
261 261
 
262 262
    }
263 263
 
264
-   /* clonning data lump
264
+   /* clonning data lump */
265 265
    if (org_msg->first_line.type==SIP_REQUEST) {
266 266
       lump_chain = org_msg->add_rm;
267 267
       lump_anchor = &(new_msg->add_rm);
... ...
@@ -270,22 +271,22 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
270 270
       lump_anchor = &(new_msg->repl_add_rm);
271 271
    }
272 272
    while (lump_chain)
273
-   {
273
+   {  k4++;
274 274
       lump_clone( (*lump_anchor) , lump_chain , p );
275
-      /*before list/
275
+      /*before list*/
276 276
       lump_tmp = lump_chain->before;
277 277
       lump_anchor2 = &((*lump_anchor)->before);
278 278
       while ( lump_tmp )
279
-      {
279
+      {  k5++;
280 280
          lump_clone( (*lump_anchor2) , lump_tmp , p );
281 281
          lump_anchor2 = &((*lump_anchor2)->before);
282 282
          lump_tmp = lump_tmp->before;
283 283
       }
284
-      /*after list/
284
+      /*after list*/
285 285
       lump_tmp = lump_chain->after;
286 286
       lump_anchor2 = &((*lump_anchor)->after);
287 287
       while ( lump_tmp )
288
-      {
288
+      {  k6++;
289 289
          lump_clone( (*lump_anchor2) , lump_tmp , p );
290 290
          lump_anchor2 = &((*lump_anchor2)->after);
291 291
          lump_tmp = lump_tmp->after;
... ...
@@ -294,7 +295,7 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
294 294
       lump_chain = lump_chain->next;
295 295
    }
296 296
 
297
-   /*cloning reply lump structures/
297
+   /*cloning reply lump structures*/
298 298
    rpl_lump_anchor = &(new_msg->reply_lump);
299 299
    for(rpl_lump=org_msg->reply_lump;rpl_lump;rpl_lump=rpl_lump->next)
300 300
    {
... ...
@@ -306,7 +307,9 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
306 306
        memcpy((*rpl_lump_anchor)->text.s,rpl_lump->text.s,rpl_lump->text.len);
307 307
        (*rpl_lump_anchor)->next=0;
308 308
        rpl_lump_anchor = &((*rpl_lump_anchor)->next);
309
-   }*/
309
+   }
310
+    DBG("DEBUG:cloner (  %d < %d,%d> )  ---  ( %d < %d , %d > )\n",
311
+       k1,k2,k3,k4,k5,k6);
310 312
     DBG("DEBUG:cloner --------<%d>---------<%d>-------------\n",len,p-foo);
311 313
    return new_msg;
312 314
 }
... ...
@@ -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")