Changeset 5718 for pjproject


Ignore:
Timestamp:
Dec 31, 2017 9:08:56 AM (7 years ago)
Author:
riza
Message:

Re #2059 (misc): Update account tp_type when transport_id is changed on pjsua_acc_modify().
Thanks to Oded Arbel for the report.

File:
1 edited

Legend:

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

    r5649 r5718  
    10461046    if (acc->cfg.transport_id != cfg->transport_id) { 
    10471047        acc->cfg.transport_id = cfg->transport_id; 
     1048 
     1049        if (acc->cfg.transport_id != PJSUA_INVALID_ID) 
     1050            acc->tp_type = pjsua_var.tpdata[acc->cfg.transport_id].type; 
     1051        else 
     1052            acc->tp_type = PJSIP_TRANSPORT_UNSPECIFIED; 
     1053 
    10481054        update_reg = PJ_TRUE; 
    10491055        unreg_first = PJ_TRUE; 
Note: See TracChangeset for help on using the changeset viewer.