- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjmedia/src/pjmedia/transport_ice.c
r4949 r5513 51 51 pjmedia_transport base; 52 52 pj_pool_t *pool; 53 int af;54 53 unsigned options; /**< Transport options. */ 55 54 … … 236 235 tp_ice = PJ_POOL_ZALLOC_T(pool, struct transport_ice); 237 236 tp_ice->pool = pool; 238 tp_ice->af = cfg->af;239 237 tp_ice->options = options; 240 238 tp_ice->comp_cnt = comp_cnt; … … 823 821 pj_sockaddr rem_conn_addr, rtcp_addr; 824 822 unsigned i; 823 int rem_af = 0; 825 824 pj_status_t status; 826 825 … … 849 848 850 849 /* Verify address family matches */ 850 /* 851 851 if ((tp_ice->af==pj_AF_INET() && 852 852 pj_strcmp(&rem_conn->addr_type, &STR_IP4)!=0) || … … 856 856 return PJMEDIA_SDP_ETPORTNOTEQUAL; 857 857 } 858 */ 859 860 /* Get remote address family */ 861 if (pj_strcmp(&rem_conn->addr_type, &STR_IP4)==0) 862 rem_af = pj_AF_INET(); 863 else if (pj_strcmp(&rem_conn->addr_type, &STR_IP6)==0) 864 rem_af = pj_AF_INET6(); 865 else 866 pj_assert(!"Unsupported address family"); 858 867 859 868 /* Assign remote connection address */ 860 status = pj_sockaddr_init( tp_ice->af, &rem_conn_addr, &rem_conn->addr,869 status = pj_sockaddr_init(rem_af, &rem_conn_addr, &rem_conn->addr, 861 870 (pj_uint16_t)rem_m->desc.port); 862 871 if (status != PJ_SUCCESS) … … 884 893 if (rtcp_attr.addr.slen) { 885 894 /* Verify address family matches */ 895 /* 886 896 if ((tp_ice->af==pj_AF_INET() && 887 897 pj_strcmp(&rtcp_attr.addr_type, &STR_IP4)!=0) || … … 891 901 return PJMEDIA_SDP_ETPORTNOTEQUAL; 892 902 } 903 */ 893 904 894 905 /* Assign RTCP address */ 895 status = pj_sockaddr_init( tp_ice->af, &rtcp_addr,906 status = pj_sockaddr_init(rem_af, &rtcp_addr, 896 907 &rtcp_attr.addr, 897 908 (pj_uint16_t)rtcp_attr.port); … … 901 912 } else { 902 913 /* Assign RTCP address */ 903 status = pj_sockaddr_init( tp_ice->af, &rtcp_addr,914 status = pj_sockaddr_init(rem_af, &rtcp_addr, 904 915 NULL, 905 916 (pj_uint16_t)rtcp_attr.port);
Note: See TracChangeset
for help on using the changeset viewer.