Changeset 5249 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
- Timestamp:
- Feb 29, 2016 8:24:58 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r5217 r5249 1646 1646 &recv_addr); 1647 1647 if (status == PJ_SUCCESS) { 1648 /* Compare the addresses as sockaddr according to the ticket above */ 1649 matched = (uri->port == rport && 1648 /* Compare the addresses as sockaddr according to the ticket above, 1649 * but only if they have the same family (ipv4 vs ipv4, or 1650 * ipv6 vs ipv6) 1651 */ 1652 matched = (contact_addr.addr.sa_family != recv_addr.addr.sa_family) || 1653 (uri->port == rport && 1650 1654 pj_sockaddr_cmp(&contact_addr, &recv_addr)==0); 1651 1655 } else { … … 3100 3104 */ 3101 3105 if (pj_strchr(&sip_uri->host, ':')) 3102 tp_type = (pjsip_transport_type_e)(((int)tp_type) + PJSIP_TRANSPORT_IPV6); 3106 tp_type = (pjsip_transport_type_e)(((int)tp_type) | 3107 PJSIP_TRANSPORT_IPV6); 3103 3108 3104 3109 flag = pjsip_transport_get_flag_from_type(tp_type); … … 3165 3170 af = (dinfo.type & PJSIP_TRANSPORT_IPV6)? PJ_AF_INET6 : PJ_AF_INET; 3166 3171 status = pj_getaddrinfo(af, &dinfo.addr.host, &cnt, &ai); 3172 if (cnt == 0) status = PJ_ENOTSUP; 3167 3173 } 3168 3174
Note: See TracChangeset
for help on using the changeset viewer.