Ignore:
Timestamp:
Jan 25, 2018 7:00:42 AM (6 years ago)
Author:
nanang
Message:

Fix #2085:

  • Do not override Via header of a CANCEL request, its values are copied from the original INVITE already.
  • Reset account's Via address & transport when SIP TCP/TLS transport is disconnected.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r5720 r5733  
    38333833            continue; 
    38343834 
     3835        /* Reset Account's via transport and via address */ 
     3836        if (acc->via_tp == (void*)tp) { 
     3837            pj_bzero(&acc->via_addr, sizeof(acc->via_addr)); 
     3838            acc->via_tp = NULL; 
     3839        } 
     3840 
    38353841        /* Release transport immediately if regc is using it 
    38363842         * See https://trac.pjsip.org/repos/ticket/1481 
Note: See TracChangeset for help on using the changeset viewer.