Changes between Version 11 and Version 12 of IPv6


Ignore:
Timestamp:
Jun 8, 2016 8:36:27 AM (3 years ago)
Author:
nanang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IPv6

    v11 v12  
    147147#define SIP_USER        "user" 
    148148#define SIP_SERVER      "example.com" 
    149 #define SIP_SERVER_IPv6 "[1234::5678]" 
     149//#define SIP_SERVER_IPv6 "[1234::5678]" 
    150150#define SIP_PASSWD      "pwd" 
    151151 
     
    164164/* As currently IPv6 DNS resolution is not supported yet, application should resolve it manually, e.g: using getaddrinfo(), and set the IPv6 address via proxy setting */ 
    165165/* Note that application may add 'hide' param to hide the proxy setting from the message (this is PJSIP proprietary feature) */ 
    166 acc_cfg.proxy_cnt = 1; 
    167 acc_cfg.proxy[0]  = pj_str("sip:" SIP_SERVER_IPv6 ";lr;hide"); 
     166//acc_cfg.proxy_cnt = 1; 
     167//acc_cfg.proxy[0]  = pj_str("sip:" SIP_SERVER_IPv6 ";lr;hide"); 
     168 
     169/* Update: by ticket #1926, hostname resolution is now supported (as long as DNS server, i.e: pjsua_config.nameserver, is *not* configured) 
     170 * so setting a hidden proxy as described above is no longer necessary. 
     171 * It is recommended to bind account to a specific IPv6 transport, i.e: via pjsua_acc_config.transport_id or pjsua_acc_set_transport(). 
     172 */ 
     173acc_cfg.transport_id = udp6_tp_id; // udp6_tp_id is an UDP IPv6 transport ID, e.g: outputed by 
     174                                   // pjsua_transport_create(PJSIP_TRANSPORT_UDP6, ..., &udp6_tp_id) 
    168175 
    169176/* Enable IPv6 in media transport */