Changeset 2746


Ignore:
Timestamp:
Jun 4, 2009 5:35:10 PM (10 years ago)
Author:
bennylp
Message:

Ticket #861: IPv6: when an IPv6 URI has ";transport=udp" parameter, the resolver will use IPv4 transport and it will fail to resolve the URI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_util.c

    r2724 r2746  
    805805        PJ_TODO(SUPPORT_REQUEST_ADDR_RESOLUTION_FOR_TEL_URI); 
    806806        return PJSIP_EINVALIDSCHEME; 
     807    } 
     808 
     809    /* Handle IPv6 (http://trac.pjsip.org/repos/ticket/861) */ 
     810    if (dest_info->type != PJSIP_TRANSPORT_UNSPECIFIED &&  
     811        pj_strchr(&dest_info->addr.host, ':')) 
     812    { 
     813        dest_info->type |= PJSIP_TRANSPORT_IPV6; 
    807814    } 
    808815 
Note: See TracChangeset for help on using the changeset viewer.