- Timestamp:
- Jun 29, 2016 9:19:01 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_resolve.c
r5349 r5369 218 218 * explicitly set. 219 219 */ 220 #if defined(PJ_HAS_IPV6) && PJ_HAS_IPV6==1 220 221 if ((ip_addr_ver == 6) || (type & PJSIP_TRANSPORT_IPV6)) 221 222 af = pj_AF_INET6(); 222 223 else if (ip_addr_ver == 4) 223 224 af = pj_AF_INET(); 225 #else 226 /* IPv6 is disabled, will resolving IPv6 address be useful? */ 227 af = pj_AF_INET(); 228 #endif 224 229 225 230 /* Set the transport type if not explicitly specified. … … 431 436 /* Resolve DNS A record if address family is not fixed to IPv6 */ 432 437 if (af != pj_AF_INET6()) { 438 439 /* If there will be DNS AAAA query too, let's setup a dummy one 440 * here, otherwise app callback may be called immediately (before 441 * DNS AAAA query is sent) when DNS A record is available in the 442 * cache. 443 */ 444 if (af == pj_AF_UNSPEC()) 445 query->object6 = (pj_dns_async_query*)0x1; 446 433 447 status = pj_dns_resolver_start_query(resolver->res, 434 448 &query->naptr[0].name,
Note: See TracChangeset
for help on using the changeset viewer.