Pārlūkot izejas kodu

to parsing by passed

Bogdan-Andrei Iancu 23 gadi atpakaļ
vecāks
revīzija
d0f3aa2e50
2 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. 1 1
      modules/tm/sip_msg.c
  2. 4 3
      msg_parser.c

+ 1 - 1
modules/tm/sip_msg.c

@@ -307,7 +307,7 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
        (*rpl_lump_anchor)->next=0;
        rpl_lump_anchor = &((*rpl_lump_anchor)->next);
    }
-
+    DBG("DEBUG:cloner --------<%d>---------<%d>-------------\n",len,p-foo);
    return new_msg;
 }
 

+ 4 - 3
msg_parser.c

@@ -254,18 +254,19 @@ char* get_hdr_field(char* buf, char* end, struct hdr_field* hdr)
 				goto error;
 			}
 			memset(to_b, 0, sizeof(struct to_body));
+			/*
 			hdr->body.s=tmp;
 			tmp=parse_to(tmp, end,to_b);
 			if (to_b->error==PARSE_ERROR){
 				LOG(L_ERR, "ERROR: get_hdr_field: bad to header\n");
 				pkg_free(to_b);
 				goto error;
-			}
-			hdr->parsed=to_b;
+			}*/
+			hdr->parsed=to_b;/*
 			hdr->body.len=tmp-hdr->body.s;
 			DBG("get_hdr_field: to <%s>: <%s>=[%d] <%c> [%d]\n",
 				hdr->name.s, to_b->body.s,to_b->body.len,*tmp,hdr->body.len);
-			break;
+			break;*/
 		case HDR_FROM:
 		case HDR_CALLID:
 		case HDR_CONTACT: