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/pjnath/src/pjnath/ice_strans.c

    r2705 r2707  
    159159    pj_ice_strans_cb         cb;        /**< Application callback.      */ 
    160160    pj_lock_t               *init_lock; /**< Initialization mutex.      */ 
    161     pj_ice_sess_options      opt;       /**< ICE session options        */ 
    162161 
    163162    pj_ice_sess             *ice;       /**< ICE session.               */ 
     
    198197    pj_stun_sock_cfg_default(&cfg->stun.cfg); 
    199198    pj_turn_alloc_param_default(&cfg->turn.alloc_param); 
     199 
     200    pj_ice_sess_options_default(&cfg->opt); 
    200201 
    201202    cfg->af = pj_AF_INET(); 
     
    449450    ice_st->obj_name = pool->obj_name; 
    450451    ice_st->user_data = user_data; 
    451  
    452     pj_ice_sess_options_default(&ice_st->opt); 
    453452 
    454453    PJ_LOG(4,(ice_st->obj_name,  
     
    661660{ 
    662661    PJ_ASSERT_RETURN(ice_st && opt, PJ_EINVAL); 
    663     pj_memcpy(opt, &ice_st->opt, sizeof(*opt)); 
     662    pj_memcpy(opt, &ice_st->cfg.opt, sizeof(*opt)); 
    664663    return PJ_SUCCESS; 
    665664} 
     
    672671{ 
    673672    PJ_ASSERT_RETURN(ice_st && opt, PJ_EINVAL); 
    674     pj_memcpy(&ice_st->opt, opt, sizeof(*opt)); 
     673    pj_memcpy(&ice_st->cfg.opt, opt, sizeof(*opt)); 
    675674    if (ice_st->ice) 
    676         pj_ice_sess_set_options(ice_st->ice, &ice_st->opt); 
     675        pj_ice_sess_set_options(ice_st->ice, &ice_st->cfg.opt); 
    677676    return PJ_SUCCESS; 
    678677} 
     
    715714 
    716715    /* Set options */ 
    717     pj_ice_sess_set_options(ice_st->ice, &ice_st->opt); 
     716    pj_ice_sess_set_options(ice_st->ice, &ice_st->cfg.opt); 
    718717 
    719718    /* If default candidate for components are SRFLX one, upload a custom 
Note: See TracChangeset for help on using the changeset viewer.