Changeset 141 for pjproject/trunk/pjsip/src/pjsip/sip_util.c
- Timestamp:
- Feb 7, 2006 6:48:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_util.c
r139 r141 442 442 const pjsip_cseq_hdr *cseq_hdr; 443 443 const pjsip_hdr *hdr; 444 pjsip_hdr *via; 444 445 pjsip_to_hdr *to; 445 446 pj_status_t status; 446 447 447 /* rdata must be a final response. */448 /* rdata must be a non-2xx final response. */ 448 449 pj_assert(rdata->msg_info.msg->type==PJSIP_RESPONSE_MSG && 449 450 rdata->msg_info.msg->line.status.code >= 300); … … 488 489 pj_strdup(ack->pool, &to->tag, &rdata->msg_info.to->tag); 489 490 491 492 /* Clear Via headers in the new request. */ 493 while ((via=pjsip_msg_find_hdr(ack->msg, PJSIP_H_VIA, NULL)) != NULL) 494 pj_list_erase(via); 495 490 496 /* Must contain single Via, just as the original INVITE. */ 491 497 hdr = pjsip_msg_find_hdr( invite_msg, PJSIP_H_VIA, NULL); 492 if (hdr) { 493 pjsip_msg_insert_first_hdr( ack->msg, pjsip_hdr_clone(ack->pool,hdr) ); 494 } 498 pjsip_msg_insert_first_hdr( ack->msg, pjsip_hdr_clone(ack->pool,hdr) ); 495 499 496 500 /* If the original INVITE has Route headers, those header fields MUST
Note: See TracChangeset
for help on using the changeset viewer.