Ignore:
Timestamp:
Dec 24, 2015 12:25:58 PM (9 years ago)
Author:
nanang
Message:

Misc (re #1882): Fixed bug STUN still being used in media transport UDP & ICE after STUN is disabled in account config (media_stun_use == PJSUA_STUN_USE_DISABLED).

File:
1 edited

Legend:

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

    r5188 r5217  
    24812481 
    24822482    return acc->cfg.sip_stun_use != PJSUA_STUN_USE_DISABLED && 
    2483             pjsua_var.ua_cfg.stun_srv_cnt != 0; 
     2483           pjsua_var.ua_cfg.stun_srv_cnt != 0; 
     2484} 
     2485 
     2486pj_bool_t pjsua_media_acc_is_using_stun(pjsua_acc_id acc_id) 
     2487{ 
     2488    pjsua_acc *acc = &pjsua_var.acc[acc_id]; 
     2489 
     2490    return acc->cfg.media_stun_use != PJSUA_STUN_USE_DISABLED && 
     2491           pjsua_var.ua_cfg.stun_srv_cnt != 0; 
    24842492} 
    24852493 
Note: See TracChangeset for help on using the changeset viewer.