Changes between Version 17 and Version 18 of IPv6


Ignore:
Timestamp:
Dec 11, 2017 6:10:17 AM (21 months ago)
Author:
nanang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IPv6

    v17 v18  
    142142=== Adding SIP Account === 
    143143 
     144As described in #1926, it is recommended to explicitly bind an IPv6 account to an IPv6 SIP transport, i.e: via {{{pjsua_acc_config.transport_id}}} or {{{pjsua_acc_set_transport()}}}. Also, IPv6 usage must be explicitly set for media transport, i.e: via {{{pjsua_acc_config.ipv6_media_use}}}. 
     145 
    144146Here is sample code for setting up account using IPv6 SIP server. 
    145147 
     
    162164acc_cfg.cred_info[0].data      = pj_str(SIP_PASSWD); 
    163165 
    164 /* 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 */ 
    165 /* 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"); 
    168  
    169 /* Update: by ticket #1926, hostname resolution is now supported, also by ticket #1927, DNS resolver now supports DNS SRV and AAAA resolutions, 
    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  */ 
     166/* Bind the account to IPv6 transport */ 
    173167acc_cfg.transport_id = udp6_tp_id; // udp6_tp_id is an UDP IPv6 transport ID, e.g: outputed by 
    174168                                   // pjsua_transport_create(PJSIP_TRANSPORT_UDP6, ..., &udp6_tp_id)