Ignore:
Timestamp:
May 18, 2009 5:49:37 AM (15 years ago)
Author:
bennylp
Message:

More ticket #851: propagated ICE regular nomination option up to pjsua

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/sipit24/pjsip-apps/src/samples/icedemo.c

    r2705 r2707  
    312312        icedemo.ice_cfg.stun.max_host_cands = icedemo.opt.max_host; 
    313313 
     314    /* Nomination strategy */ 
     315    if (icedemo.opt.regular) 
     316        icedemo.ice_cfg.opt.aggressive = PJ_FALSE; 
     317    else 
     318        icedemo.ice_cfg.opt.aggressive = PJ_TRUE; 
     319 
    314320    /* Configure STUN/srflx candidate resolution */ 
    315321    if (icedemo.opt.stun_srv.slen) { 
     
    377383{ 
    378384    pj_ice_strans_cb icecb; 
    379     pj_ice_sess_options opt; 
    380385    pj_status_t status; 
    381386 
     
    402407    else 
    403408        PJ_LOG(3,(THIS_FILE, "ICE instance successfully created")); 
    404  
    405     status = pj_ice_strans_get_options(icedemo.icest, &opt); 
    406     pj_assert(status == PJ_SUCCESS); 
    407  
    408     if (icedemo.opt.regular) 
    409         opt.aggressive = PJ_FALSE; 
    410     else 
    411         opt.aggressive = PJ_TRUE; 
    412  
    413     status = pj_ice_strans_set_options(icedemo.icest, &opt); 
    414     pj_assert(status == PJ_SUCCESS); 
    415409} 
    416410 
Note: See TracChangeset for help on using the changeset viewer.