Ignore:
Timestamp:
Feb 7, 2006 6:48:01 PM (18 years ago)
Author:
bennylp
Message:

Tested initial implementation: basic UAC, client registration, authentication, etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_util.c

    r139 r141  
    442442    const pjsip_cseq_hdr *cseq_hdr; 
    443443    const pjsip_hdr *hdr; 
     444    pjsip_hdr *via; 
    444445    pjsip_to_hdr *to; 
    445446    pj_status_t status; 
    446447 
    447     /* rdata must be a final response. */ 
     448    /* rdata must be a non-2xx final response. */ 
    448449    pj_assert(rdata->msg_info.msg->type==PJSIP_RESPONSE_MSG && 
    449450              rdata->msg_info.msg->line.status.code >= 300); 
     
    488489    pj_strdup(ack->pool, &to->tag, &rdata->msg_info.to->tag); 
    489490 
     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 
    490496    /* Must contain single Via, just as the original INVITE. */ 
    491497    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) ); 
    495499 
    496500    /* If the original INVITE has Route headers, those header fields MUST  
Note: See TracChangeset for help on using the changeset viewer.