Changeset 4412 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Mar 5, 2013 3:12:32 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r4373 r4412 744 744 /* Copy binding port setting to STUN setting */ 745 745 pj_sockaddr_init(ice_cfg.af, &ice_cfg.stun.cfg.bound_addr, 746 &cfg->bound_addr, cfg->port);747 ice_cfg.stun.cfg.port_range = cfg->port_range;746 &cfg->bound_addr, (pj_uint16_t)cfg->port); 747 ice_cfg.stun.cfg.port_range = (pj_uint16_t)cfg->port_range; 748 748 if (cfg->port != 0 && ice_cfg.stun.cfg.port_range == 0) 749 ice_cfg.stun.cfg.port_range = pjsua_var.ua_cfg.max_calls * 10; 749 ice_cfg.stun.cfg.port_range = 750 (pj_uint16_t)(pjsua_var.ua_cfg.max_calls * 10); 750 751 751 752 /* Copy QoS setting to STUN setting */ … … 777 778 /* Copy binding port setting to TURN setting */ 778 779 pj_sockaddr_init(ice_cfg.af, &ice_cfg.turn.cfg.bound_addr, 779 &cfg->bound_addr, cfg->port);780 ice_cfg.turn.cfg.port_range = cfg->port_range;780 &cfg->bound_addr, (pj_uint16_t)cfg->port); 781 ice_cfg.turn.cfg.port_range = (pj_uint16_t)cfg->port_range; 781 782 if (cfg->port != 0 && ice_cfg.turn.cfg.port_range == 0) 782 ice_cfg.turn.cfg.port_range = pjsua_var.ua_cfg.max_calls * 10; 783 ice_cfg.turn.cfg.port_range = 784 (pj_uint16_t)(pjsua_var.ua_cfg.max_calls * 10); 783 785 } 784 786
Note: See TracChangeset
for help on using the changeset viewer.