- Timestamp:
- May 18, 2009 5:49:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/sipit24/pjnath/src/pjnath/ice_strans.c
r2705 r2707 159 159 pj_ice_strans_cb cb; /**< Application callback. */ 160 160 pj_lock_t *init_lock; /**< Initialization mutex. */ 161 pj_ice_sess_options opt; /**< ICE session options */162 161 163 162 pj_ice_sess *ice; /**< ICE session. */ … … 198 197 pj_stun_sock_cfg_default(&cfg->stun.cfg); 199 198 pj_turn_alloc_param_default(&cfg->turn.alloc_param); 199 200 pj_ice_sess_options_default(&cfg->opt); 200 201 201 202 cfg->af = pj_AF_INET(); … … 449 450 ice_st->obj_name = pool->obj_name; 450 451 ice_st->user_data = user_data; 451 452 pj_ice_sess_options_default(&ice_st->opt);453 452 454 453 PJ_LOG(4,(ice_st->obj_name, … … 661 660 { 662 661 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)); 664 663 return PJ_SUCCESS; 665 664 } … … 672 671 { 673 672 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)); 675 674 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); 677 676 return PJ_SUCCESS; 678 677 } … … 715 714 716 715 /* 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); 718 717 719 718 /* If default candidate for components are SRFLX one, upload a custom
Note: See TracChangeset
for help on using the changeset viewer.