Changeset 4040 for pjproject/trunk


Ignore:
Timestamp:
Apr 12, 2012 8:10:06 AM (13 years ago)
Author:
nanang
Message:

Re #1474: merged r4039

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

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

    r4038 r4040  
    422422    } 
    423423 
    424     /* Get CRC of account proxy setting */ 
    425     acc->local_route_crc = calc_proxy_crc(acc->cfg.proxy, acc->cfg.proxy_cnt); 
    426  
    427     /* Get CRC of global outbound proxy setting */ 
    428     acc->global_route_crc=calc_proxy_crc(pjsua_var.ua_cfg.outbound_proxy, 
    429                                          pjsua_var.ua_cfg.outbound_proxy_cnt); 
    430      
    431424    /* Check the route URI's and force loose route if required */ 
    432425    for (i=0; i<acc->cfg.proxy_cnt; ++i) { 
     
    438431        } 
    439432    } 
     433 
     434    /* Get CRC of account proxy setting */ 
     435    acc->local_route_crc = calc_proxy_crc(acc->cfg.proxy, acc->cfg.proxy_cnt); 
     436 
     437    /* Get CRC of global outbound proxy setting */ 
     438    acc->global_route_crc=calc_proxy_crc(pjsua_var.ua_cfg.outbound_proxy, 
     439                                         pjsua_var.ua_cfg.outbound_proxy_cnt); 
    440440 
    441441    status = initialize_acc(id); 
     
    773773            pj_list_push_back(&local_route, r); 
    774774        } 
     775 
     776        /* Recalculate the CRC again after route URI normalization */ 
     777        local_route_crc = calc_proxy_crc(acc_proxy, cfg->proxy_cnt); 
    775778    } 
    776779 
Note: See TracChangeset for help on using the changeset viewer.