Changeset 5555


Ignore:
Timestamp:
Feb 20, 2017 1:12:21 AM (8 years ago)
Author:
ming
Message:

Fixed #1996: Via-Header mismatch in CANCEL

Thank you to Marcus Froeschl for the report

File:
1 edited

Legend:

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

    r5337 r5555  
    12151215 
    12161216        via->transport = pj_str(stateless_data->cur_transport->type_name); 
     1217        /* For Cancel request, do not update the Via address with 
     1218         * the new transport since it needs to match the original 
     1219         * request. 
     1220         */ 
    12171221        if (tdata->via_addr.host.slen > 0 && 
    1218             tdata->via_tp == (void *)stateless_data->cur_transport) 
     1222            (tdata->via_tp == (void *)stateless_data->cur_transport || 
     1223             tdata->msg->line.req.method.id == PJSIP_CANCEL_METHOD)) 
    12191224        { 
    12201225            via->sent_by = tdata->via_addr; 
Note: See TracChangeset for help on using the changeset viewer.